Has anyone done a non-trivial program entirely in the "import wx" style?
Yes. After a lot of searching and replacing, it took another hour or so to
track down a couple of things like:
from wxPython.lib.mixins.listctrl import wxListCtrlAutoWidthMixin
class ListCtrl(wxListCtrl, wxListCtrlAutoWidthMixin):
...
which became:
from wx.lib.mixins.listctrl import ListCtrlAutoWidthMixin
class ListCtrl(wx.ListCtrl, ListCtrlAutoWidthMixin):
...
The point, which is probably obvious, is that changing
wxListCtrlAutoWidthMixin to wx.ListCtrlAutoWidthMixin via global search &
replace isn't what you want in this particular case.
If you're using the calendar and change:
from wxPython.calendar import *
to
import wx.calendar
then event handling goes from:
EVT_CALENDAR(...)
to
wx.calendar.EVT_CALENDAR(...)
ยทยทยท
---------------------------------
Looking forward to `import wx` being the standard without the need to go
through the renaming process but it all seems to work fine and the renaming
happens without significantly affecting the startup time of the app that I
converted.