GTK and the wx.EventLoop

Gregory Bayard gregory.bayard at gmail.com
Mon Aug 27 12:49:31 PDT 2007


I recently upgraded my wx python installation and I am now experiencing
strange behavior/sluggishness of my user interface.  I run on SuSe SLES9 w/
wxGTK/wxWidgets 2.8.  The problem appears to be that I can no longer pump
the main wxApp instance's event loop manually.  To overcome this I create a
new wxEventLoop and I specify it as my wxApp's event loop, i.e.:

newEventLoop =3D new wxEventLoop();
wxEventLoop* oldLoop =3D wxEventLoop::GetActive();
wxEventLoop::SetActive( newEventLoop );

This seems to work fine, but I believe it is the source of the strange
behavior I am noticing.  The strange behaviors include fonts displaying
differently and general sluggishness of menus and button reactions.  My
suspicion is that the wxEventLoop class that I am creating is not platform
specific (and the defualt one is) and that is why the performance/look has
deteriorated since I moved to pumping my own event loop.  Does anyone have
any insight into pumping the wxEventLoop manually and how I could
instantiate a GTK specific wxEventLoop?  Looking through the wxWidgets
source, I saw code for creating windows specific wxEventLoop instances, but
I did not see the equivalent for GTK.  Is there a work around?

Thanks,
Greg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20070827/84c=
e90e5/attachment.htm


More information about the wx-users mailing list