How to get the wiki SplitterWindow example to work ?

(Python 2.3.4, wxPython 2.4.2.4u for P2.3 on XP)

I'm trying to get the wiki splitterwindow example to work, but it bombs
on the line "wx.SplitterWindow.__init__(...". Has something changed ?
How does it work now ?

Thanks

Ray Pasco wrote:

(Python 2.3.4, wxPython 2.4.2.4u for P2.3 on XP)

I'm trying to get the wiki splitterwindow example to work, but it bombs
on the line "wx.SplitterWindow.__init__(...". Has something changed ?
How does it work now ?

How does it bomb? Is there an exception?

It works here with 2.5.4 with a couple tweaks.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Robin Dunn wrote:

Ray Pasco wrote:

(Python 2.3.4, wxPython 2.4.2.4u for P2.3 on XP)

I'm trying to get the wiki splitterwindow example to work, but it bombs
on the line "wx.SplitterWindow.__init__(...". Has something changed ?
How does it work now ?

How does it bomb? Is there an exception?

It works here with 2.5.4 with a couple tweaks.

The exception I'm getting is:

Traceback (most recent call last):
  File "splitter.py", line 145, in ?
    myFrame = MainFrame (None, -1, 'Image File Conversion Utility')
  File "splitter.py", line 113, in __init__
    self.split1 = ProportionalSplitter (self, wx.NewId(), size=(600, 400), proportion=0.5)
  File "splitter.py", line 12, in __init__
    wx.SplitterWindow.__init__ (self, parent, id, style=wx.NO_3D|wx.SP_3D)
  File "C:\Python23\Lib\site-packages\wxPython\windows2.py", line 235, in __init__
    self.this = windows2c.new_wxSplitterWindow(*_args,**_kwargs)
TypeError: Type error in argument 1 of new_wxSplitterWindow. Expected _wxWindow_p.

The full file listing is at: http://www.gimpdoc.org/misc/SPLITTER.PY

The parent is a frame. I tried version 2.5.4 with the same results. I can't use a later
version of Python because I'm also using PIL which is only compatible with ver 2.3.

What are the "couple of tweaks" you speak of ? I'm guessing they are critical !

Thanks,
Ray Pasco

Ray Pasco wrote:

Robin Dunn wrote:

Ray Pasco wrote:

(Python 2.3.4, wxPython 2.4.2.4u for P2.3 on XP)

I'm trying to get the wiki splitterwindow example to work, but it bombs
on the line "wx.SplitterWindow.__init__(...". Has something changed ?
How does it work now ?

How does it bomb? Is there an exception?

It works here with 2.5.4 with a couple tweaks.

The exception I'm getting is:

Traceback (most recent call last):
File "splitter.py", line 145, in ?
   myFrame = MainFrame (None, -1, 'Image File Conversion Utility')
File "splitter.py", line 113, in __init__
   self.split1 = ProportionalSplitter (self, wx.NewId(), size=(600, 400), proportion=0.5)
File "splitter.py", line 12, in __init__
   wx.SplitterWindow.__init__ (self, parent, id, style=wx.NO_3D|wx.SP_3D)
File "C:\Python23\Lib\site-packages\wxPython\windows2.py", line 235, in __init__
   self.this = windows2c.new_wxSplitterWindow(*_args,**_kwargs)
TypeError: Type error in argument 1 of new_wxSplitterWindow. Expected _wxWindow_p.

The full file listing is at: http://www.gimpdoc.org/misc/SPLITTER.PY

The parent is a frame. I tried version 2.5.4 with the same results.

You forgot to call wx.Frame.__init__. It still won't run though because you don't have a self.rightpanel and etc. yet.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!