Package: wx2.6-examples
Version: 2.6.1.2
Severity: important

I have both python-wxgtk2.6 and libwxgtk2.4 2.4.3.1 installed. Under this
environment, the demo.py included with wx2.6-examples does not start:

252 [~/umn/r/refdb]$ pushd /usr/share/doc/wx2.6-examples/examples/wxPython/
259 [/usr/share/doc/wx2.6-examples/examples/wxPython]$ su
Password: 
reidster:/usr/share/doc/wx2.6-examples/examples/wxPython# gunzip *.gz
reidster:/usr/share/doc/wx2.6-examples/examples/wxPython# gunzip */*.gz
reidster:/usr/share/doc/wx2.6-examples/examples/wxPython# exit
260 [/usr/share/doc/wx2.6-examples/examples/wxPython]$ python demo.py
Traceback (most recent call last):
  File "demo.py", line 3, in ?
    import Main
  File "/usr/share/doc/wx2.6-examples/examples/wxPython/Main.py", line 1019, in 
?
    class DemoTaskBarIcon(wx.TaskBarIcon):
AttributeError: 'module' object has no attribute 'TaskBarIcon'

I believe this is because demo.py is finding wx 2.4 rather than 2.6. Adding:

  import wxversion
  wxversion.select("2.6")

to Main.py makes it start.

Thanks,

Reid

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.4.31
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to