[root: Re: wxpython2.5 problem]

Yao Heling yaoheling at yahoo.com
Tue Dec 7 13:29:40 CET 2004


On Tue, Dec 07, 2004 at 12:19:47PM +0100, Bernhard
Herzog wrote:
> 
> I have no idea why ClassGroupPropertiesCtrl is
derived from both
> wxWindow and wxControl.  As you say, wxControl
should suffice.
> 
> Here's a patch that fixes it.  It works fine for me,
but I don't have a
> 2.5 installation to test this with, so please give
it a try.  If it
> works for you as well, I'll check it in later.
> 
Thanks for the patch. It does get rid of the MRO
error, but another
error pops up:

An unhandled exception occurred:
wxWindow, wxSizer, wxSize, or (w,h) expected for item
(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 73, in OnInit
    self.top = self.CreateMainWindow()
  File
"/root/src/cvs/thuban/thuban/Thuban/UI/application.py",
line 161, in CreateMainWindow
    size = (600, 400))
  File
"/root/src/cvs/thuban/thuban/Thuban/UI/mainwindow.py",
line 115, in __init__
    self.ShowLegend()
  File
"/root/src/cvs/thuban/thuban/Thuban/UI/mainwindow.py",
line 757, in ShowLegend
    self.ToggleLegend()
  File
"/root/src/cvs/thuban/thuban/Thuban/UI/mainwindow.py",
line 766, in ToggleLegend
    legend.LegendPanel(dialog, None, self)
  File
"/root/src/cvs/thuban/thuban/Thuban/UI/legend.py",
line 128, in __init__
    self.Create()
  File
"/root/src/cvs/thuban/thuban/Thuban/UI/dock.py", line
61, in Create
    self.parent.SetPanel(self)
  File
"/root/src/cvs/thuban/thuban/Thuban/UI/dock.py", line
145, in SetPanel
    self.__CreateBorder()
  File
"/root/src/cvs/thuban/thuban/Thuban/UI/dock.py", line
378, in __CreateBorder
    headerBox.Add(1, 5, 1, wxGROW)
  File
"/usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx/_core.py",
line 9154, in Add
    return _core_.Sizer_Add(*args, **kwargs)
TypeError: wxWindow, wxSizer, wxSize, or (w,h)
expected for item

As everyone seems to have thuban running, what's the
problem? 
I'm using the stock wxpython2.5.3 on debian sid, could
that be a source
of error? Does the above code have bugs?

Thanks very much,

Joseph



	
		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
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)