Hi I need to call a widget from a button in WXPYTHON. I've tried to
this from a function like this, but when push the button, the program
opens a window and do error.
Any idea?
......
def DialogRRHH(self ,event):
prog = wx.PySimpleApp( 0)
wx.InitAllImage Handlers()
DialogRRHH = MTRRHH(None, -1, "")
prog.SetTopWind ow(DialogRRHH)
DialogRRHH.Show ()
prog.MainLoop()
class MTRRHH(wx.Frame ):
........
if __name__ == "__main__":
app = wx.PySimpleApp( 0)
wx.InitAllImage Handlers()
tasques = tasques(None, -1, "")
app.SetTopWindo w(tasques)
tasques.Show()
app.MainLoop()
this from a function like this, but when push the button, the program
opens a window and do error.
Any idea?
......
def DialogRRHH(self ,event):
prog = wx.PySimpleApp( 0)
wx.InitAllImage Handlers()
DialogRRHH = MTRRHH(None, -1, "")
prog.SetTopWind ow(DialogRRHH)
DialogRRHH.Show ()
prog.MainLoop()
class MTRRHH(wx.Frame ):
........
if __name__ == "__main__":
app = wx.PySimpleApp( 0)
wx.InitAllImage Handlers()
tasques = tasques(None, -1, "")
app.SetTopWindo w(tasques)
tasques.Show()
app.MainLoop()
Comment