SunQuest
 
      Python
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Iron Speed
Go Back   Tutorialized ForumsWeb Design & DevelopmentPython

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old March 12th, 2008, 01:15 AM
sarabhjeet sarabhjeet is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 2 sarabhjeet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 14 sec
Reputation Power: 0
Post Wxtimer...I need to close a dialog after a particular time...

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.

Reply With Quote
Reply

Viewing: Tutorialized ForumsWeb Design & DevelopmentPython > Wxtimer...I need to close a dialog after a particular time...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway