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 [code] self.MB = wx.Dialog(self,-1,"hello",pos=(-1,-1),size=(200,100),style=wx.NO_3D) 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) [code] Is this code is not correct or what? Please help me. -- View this message in context: http://www.nabble.com/wxtimer...I-need-to-close-a-dialog-after-a-particular-time...-tp15998330p15998330.html Sent from the BangPypers - Bangalore Python Users Group mailing list archive at Nabble.com. _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers