Hello all,
Actually i need to close a dialog automatically after 5-6 seconds.
For it what should i do,please help me.I am using wxTimer
self.MB = wx.Dialog(self,-1,"hello",pos=(-1,-1),size=(200,100),style=wx.NO_3D)
self.SB = wx.StaticBox(self.MB,"Here description of atelier will come")
self.MB.Show(True)
self.timer = wx.Timer(5,self.Step(self))
self.timer.Start()
def Step:
if self.timer.IsRunning():
print ""
else:
self.MB.Close(True)
Is this code is not correct or what?
Please help me.