Post Tue Mar 11, 2008 10:52 pm

wxtimer...I need to close a dialog after a particular

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.timer = wx.Timer(5,self.Step(self))

def Step:
if self.timer.IsRunning():
print ""
Is this code is not correct or what?
Please help me.