[wxPython-dev] wxPython preview build
Robin Dunn
robin at alldunn.com
Thu May 3 10:00:37 PDT 2007
Robin Dunn wrote:
> Andrea Gavana wrote:
>> Uhm, sorry to spam the list, but...
>>
>> TreeMixin demo:
>>
>> No module named treemixin, I got an ImportError... might it be that my
>> installation is screwed?
>
> No, I just forgot to double check the import when I got the last update
> for the treemixin code.
>
>
Here is the fix:
Index: wxPython/demo/TreeMixin.py
===================================================================
RCS file: /pack/cvsroots/wxwidgets/wxWidgets/wxPython/demo/TreeMixin.py,v
retrieving revision 1.1.2.8
diff -u -4 -r1.1.2.8 TreeMixin.py
--- wxPython/demo/TreeMixin.py 2007/04/24 20:50:36 1.1.2.8
+++ wxPython/demo/TreeMixin.py 2007/05/03 16:59:31
@@ -1,7 +1,11 @@
import wx, wx.lib.customtreectrl, wx.gizmos
-import treemixin
+try:
+ import treemixin
+except ImportError:
+ from wx.lib.mixins import treemixin
+overview = treemixin.__doc__
class TreeModel(object):
''' TreeModel holds the domain objects that are shown in the different
tree controls. Each domain object is simply a two-tuple consisting of
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-dev
mailing list