wxWizard and Listbox

Hello Robin,

Please distill it down to a complete sample that shows the problem.

----------------------------snip------------------------------------
#!/usr/bin/env python
from wxPython.wx import *
from wxPython.wizard import *

app = wxPySimpleApp()

wizard = wxWizard(None, -1, "Just A Wizard")

page1 = wxWizardPageSimple(wizard)
txt = wxStaticText(page1, -1, "Hello Wizard")

vals = ['foo', 'bar']
page2 = wxWizardPageSimple(wizard)
lb = wxListBox(page2, -1, choices = vals)

wxWizardPageSimple_Chain(page1, page2)
wizard.FitToPage(page1)

# starting on page1, switching to page2 results in an empty
# listbox
wizard.RunWizard(page1)

# starting on page2 shows the listbox with values...
# wizard.RunWizard(page2)

wizard.Destroy()

app.MainLoop()
----------------------------snap------------------------------------

Philip Weinke <philip.weinke@ddd.de> writes:

----------------------------snip------------------------------------
#!/usr/bin/env python

From wxPython.wx import *
From wxPython.wizard import *

app = wxPySimpleApp()

wizard = wxWizard(None, -1, "Just A Wizard")

page1 = wxWizardPageSimple(wizard)
txt = wxStaticText(page1, -1, "Hello Wizard")

vals = ['foo', 'bar']
page2 = wxWizardPageSimple(wizard)
lb = wxListBox(page2, -1, choices = vals)

wxWizardPageSimple_Chain(page1, page2)
wizard.FitToPage(page1)

# starting on page1, switching to page2 results in an empty
# listbox
wizard.RunWizard(page1)

# starting on page2 shows the listbox with values...
# wizard.RunWizard(page2)

wizard.Destroy()

app.MainLoop()
----------------------------snap------------------------------------

Accordingly to the comments above, I should expect nothing on the
second page of the wizard.

I ran the exactly same code you posted and on Linux I could see the
list on the second page with no problems at all.

I'm running

wxPythonGTK 2.4.1.2
Python 2.2.2

On a Conectiva Linux 9 + updates.

Starting on page 2 showed the same list here, so I can say it worked
fine on both cases.

Is it possible that it is a bug on your installation or port?

I'm sorry but I don't remember the beginning of this thread...

See you,

···

--
Godoy. <godoy@metalab.unc.edu>

Hello,

Accordingly to the comments above, I should expect nothing on the
second page of the wizard.

Well, not exactly nothing but an empty listbox.

Is it possible that it is a bug on your installation or port?

I updated last week from wxPython 2.4.1.2 and Python 2.2.2 to wxPython 2.4.2.4
and Python 2.3.2. It 'bugged' on both configurations. I'm using a much older
wxPython (don't remember which exactly) with Python 2.1 at home... still the
same.

Regards
Philip Weinke

> Is it possible that it is a bug on your installation or port?

I updated last week from wxPython 2.4.1.2 and Python 2.2.2 to wxPython
2.4.2.4
and Python 2.3.2. It 'bugged' on both configurations. I'm using a much older
wxPython (don't remember which exactly) with Python 2.1 at home... still the
same.

I just tried it on an Win32 machine with wxPython 2.4.1.2 and Python 2.2.1...
without a bug. Well, I think I have to downgrade....

Philip Weinke wrote:

Hello Robin,

Please distill it down to a complete sample that shows the problem.

----------------------------snip------------------------------------
#!/usr/bin/env python
from wxPython.wx import *
from wxPython.wizard import *

app = wxPySimpleApp()

wizard = wxWizard(None, -1, "Just A Wizard")

page1 = wxWizardPageSimple(wizard)
txt = wxStaticText(page1, -1, "Hello Wizard")

vals = ['foo', 'bar']
page2 = wxWizardPageSimple(wizard)
lb = wxListBox(page2, -1, choices = vals)

wxWizardPageSimple_Chain(page1, page2)
wizard.FitToPage(page1)

# starting on page1, switching to page2 results in an empty
# listbox
wizard.RunWizard(page1)

# starting on page2 shows the listbox with values...
# wizard.RunWizard(page2)

wizard.Destroy()

app.MainLoop()

It works fine for me both ways, on both XP and Linux using 2.4.2.4.

···

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