[root: Re: wxpython2.5 problem]

Yao Heling yaoheling at yahoo.com
Tue Dec 7 15:26:03 CET 2004


On Tue, Dec 07, 2004 at 03:03:45PM +0100, Bernhard
Herzog wrote:

> AFAICT from the wxPython sources, even in wxPython
2.4, the form
> currently used in Thuban is only supported for
backwards compatibility.
> Apparently support for it was removed in 2.5.
> 
> The attached patch contains the necessary change. 
Again, if it works
> for you with 2.5 I'll apply it later.
> 
Thanks! This change removed the orginal error, but I
got another. It
makes wonder how come the others can use thuban with
wxpython2.3, could
someone pls shed some light on this?

The error msgs are:

An unhandled exception occurred:
TreeCtrl_GetFirstChild() takes exactly 2 arguments (3
given)
(please report to
http://thuban.intevation.org/bugtracker.html)

Traceback (most recent call last):
  File "./thuban.py", line 23, in ?
    Thuban.UI.main.main()
  File
"/root/src/cvs/thuban/thuban/Thuban/UI/main.py", line
31, in main
    app = ThubanApplication(0)
  File
"/usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx/_core.py",
line 5311, in __init__
    self._BootstrapApp()
  File
"/usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx/_core.py",
line 4990, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File
"/root/src/cvs/thuban/thuban/Thuban/UI/application.py",
line 76, in OnInit
    self.maps_changed()
  File
"/root/src/cvs/thuban/thuban/Thuban/UI/application.py",
line 279, in maps_changed
    self.top.SetMap(self.session.Maps()[0])
  File
"/root/src/cvs/thuban/thuban/Thuban/UI/mainwindow.py",
line 456, in SetMap
    dialog.GetPanel().SetMap(self.Map())
  File
"/root/src/cvs/thuban/thuban/Thuban/UI/legend.py",
line 137, in SetMap
    self.tree.SetMap(map)
  File
"/root/src/cvs/thuban/thuban/Thuban/UI/legend.py",
line 325, in SetMap
    self.__FillTree(self.map)
  File
"/root/src/cvs/thuban/thuban/Thuban/UI/legend.py",
line 539, in __FillTree
    self.DeleteAllItems()
  File
"/root/src/cvs/thuban/thuban/Thuban/UI/legend.py",
line 601, in DeleteAllItems
    id, cookie = self.GetFirstChild(pid, 123)
  File
"/usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx/_controls.py",
line 5215, in GetFirstChild
    return _controls_.TreeCtrl_GetFirstChild(*args,
**kwargs)
TypeError: TreeCtrl_GetFirstChild() takes exactly 2
arguments (3 given)


Thanks,

Joseph



		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail




More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)