Issue with wx.wizard.Wizard

Hi everyone,

I have the following issue using wx.wizard:
the button next is growing each time I click on the button “back” or the button “next”.
I’m using python 2.7 and wxpython3.0 on linux mint 16/17.

My code is:

#!/usr/bin/env python

-- coding: UTF-8 --

import wx
import wx.wizard

class TitledPage(wx.wizard.WizardPageSimple):
def init(self, parent):
wx.wizard.WizardPageSimple.init(self, parent)

class MyWizard(wx.wizard.Wizard):
def init(self,parent,title):
wx.wizard.Wizard.init(self,parent, -1, title)
self.page1 = TitledPage(self)
self.page2 = TitledPage(self)
# Set the initial order of the pages
self.page1.SetNext(self.page2)
self.page2.SetPrev(self.page1)
self.RunWizard(self.page1)

app = wx.App(False)
wizard = MyWizard(None, ‘Setup’)
wizard.Destroy()
app.MainLoop()

And I have attached the code and the hardcopy of the wizard (after several clicks).

What am I doing wrong?

Regards

Stephan

test_new_wizard.py (664 Bytes)

Wizard_issue.JPG

Hi,

Could someone test my script to see if the behavior is the same on other platform.

Best regards

···

Le mercredi 1 octobre 2014 00:11:05 UTC+10, Stephane Coint-bavarot a écrit :

Hi everyone,

I have the following issue using wx.wizard:
the button next is growing each time I click on the button “back” or the button “next”.
I’m using python 2.7 and wxpython3.0 on linux mint 16/17.

My code is:

#!/usr/bin/env python

-- coding: UTF-8 --

import wx
import wx.wizard

class TitledPage(wx.wizard.WizardPageSimple):
def init(self, parent):
wx.wizard.WizardPageSimple.init(self, parent)

class MyWizard(wx.wizard.Wizard):
def init(self,parent,title):
wx.wizard.Wizard.init(self,parent, -1, title)
self.page1 = TitledPage(self)
self.page2 = TitledPage(self)
# Set the initial order of the pages
self.page1.SetNext(self.page2)
self.page2.SetPrev(self.page1)
self.RunWizard(self.page1)

app = wx.App(False)
wizard = MyWizard(None, ‘Setup’)
wizard.Destroy()
app.MainLoop()

And I have attached the code and the hardcopy of the wizard (after several clicks).

What am I doing wrong?

Regards

Stephan

Hi,

Could someone test my script to see if the behavior is the same on other
platform.

Best regards

Works ok here.
Python 2.7, Win7, wx 3.0.0.0 classic

Michael

···

On Mon, 13 Oct 2014 14:26:52 +0200, Stephane Coint-bavarot <stephan.coint@gmail.com> wrote:

Le mercredi 1 octobre 2014 00:11:05 UTC+10, Stephane Coint-bavarot a écrit :

Hi everyone,

I have the following issue using wx.wizard:
the button next is growing each time I click on the button "back" or the
button "next".
I'm using python 2.7 and wxpython3.0 on linux mint 16/17.

My code is:

#!/usr/bin/env python
# -*- coding: UTF-8 -*-

import wx
import wx.wizard

class TitledPage(wx.wizard.WizardPageSimple):
    def __init__(self, parent):
        wx.wizard.WizardPageSimple.__init__(self, parent)

class MyWizard(wx.wizard.Wizard):
    def __init__(self,parent,title):
        wx.wizard.Wizard.__init__(self,parent, -1, title)
        self.page1 = TitledPage(self)
        self.page2 = TitledPage(self)
        # Set the initial order of the pages
        self.page1.SetNext(self.page2)
        self.page2.SetPrev(self.page1)
        self.RunWizard(self.page1)

app = wx.App(False)
wizard = MyWizard(None, 'Setup')
wizard.Destroy()
app.MainLoop()

And I have attached the code and the hardcopy of the wizard (after several
clicks).

What am I doing wrong?

Regards

Stephan

Hi Michael,
Thanks for your prompt feedback.

Regards

···

On 13/10/2014 10:52 PM, “Michael Ross” gmx@ross.cx wrote:

On Mon, 13 Oct 2014 14:26:52 +0200, Stephane Coint-bavarot stephan.coint@gmail.com wrote:

Hi,

Could someone test my script to see if the behavior is the same on other

platform.

Best regards

Works ok here.

Python 2.7, Win7, wx 3.0.0.0 classic

Michael

Le mercredi 1 octobre 2014 00:11:05 UTC+10, Stephane Coint-bavarot a écrit :

Hi everyone,

I have the following issue using wx.wizard:

the button next is growing each time I click on the button “back” or the

button “next”.

I’m using python 2.7 and wxpython3.0 on linux mint 16/17.

My code is:

#!/usr/bin/env python

-- coding: UTF-8 --

import wx

import wx.wizard

class TitledPage(wx.wizard.WizardPageSimple):

def __init__(self, parent):

    wx.wizard.WizardPageSimple.__init__(self, parent)

class MyWizard(wx.wizard.Wizard):

def __init__(self,parent,title):

    wx.wizard.Wizard.__init__(self,parent, -1, title)

    self.page1 = TitledPage(self)

    self.page2 = TitledPage(self)

    # Set the initial order of the pages

    self.page1.SetNext(self.page2)

    self.page2.SetPrev(self.page1)

    self.RunWizard(self.page1)

app = wx.App(False)

wizard = MyWizard(None, ‘Setup’)

wizard.Destroy()

app.MainLoop()

And I have attached the code and the hardcopy of the wizard (after several

clicks).

What am I doing wrong?

Regards

Stephan

You received this message because you are subscribed to a topic in the Google Groups “wxPython-users” group.

To unsubscribe from this topic, visit https://groups.google.com/d/topic/wxpython-users/I_14GaDTBjo/unsubscribe.

To unsubscribe from this group and all its topics, send an email to wxpython-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Stephane Coint-bavarot wrote:

Hi everyone,

I have the following issue using wx.wizard:
the button next is growing each time I click on the button "back" or the
button "next".
I'm using python 2.7 and wxpython3.0 on linux mint 16/17.

It also works fine for me on Linux, so it may be something to do with the GTK version or the active theme.

···

--
Robin Dunn
Software Craftsman

Hi Robin,

thanks for the check and for your reply. I’ll dig in that direction.

Regards

···

Le mardi 14 octobre 2014 10:11:29 UTC+10, Robin Dunn a écrit :

Stephane Coint-bavarot wrote:

Hi everyone,

I have the following issue using wx.wizard:

the button next is growing each time I click on the button “back” or the

button “next”.

I’m using python 2.7 and wxpython3.0 on linux mint 16/17.

It also works fine for me on Linux, so it may be something to do with
the GTK version or the active theme.


Robin Dunn

Software Craftsman

http://wxPython.org