First of all im very nub on programing and even more on wxpython.
I want to type a prog with the following gui structure.
1 mainframe with like 10 different panels each of them for certain
tasks, so following that objective i dont know how to kill/hide a
panel for the soft to show the next (when the user clicks certain
button).
The problem is that using this pattern
class marco(wx.Frame):
def __init__(self,parent,id,title):
wx.Frame.__init__(self,parent,id,title, size=(800,600),
pos=(60,60))
self.parent = parent
self.initialize()
def initialize(self):
marco = wx.Frame (None,-1)
if laser==1:
ventana1 = wx.Panel(self)
ventana1.SetBackgroundColour('Red')
ventana1.Show=(True)
self.Bind(wx.EVT_CLOSE, self.xventana)
self.Show(True)
botoncambio = wx.Button(ventana1, -1, 'Cambio',
pos=(680,510), size=(90,30))
self.Bind(wx.EVT_BUTTON, self.cambioboton, botoncambio)
else:
ventana2 = wx.Panel(self)
ventana2.SetBackgroundColour('Blue')
ventana.Show=(True)
self.Bind(wx.EVT_CLOSE, self.xventana)
#mostrar todo
self.Show(True)
def cambioboton(self,event):
global laser
laser +=1
self.ventana.Destroy()
self.initialize()
the trick isnt working ... just want you guys to consider give me a
guideline or maybe a library to sort this out...
thanks in advance!