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)
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)
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)
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.
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.