×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    1

    Post Help 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.

  2. #2
    Regular Contributor
    Join Date
    Jan 2004
    Location
    Helsinki
    Posts
    376

    Re: Help wxtimer...I need to close a dialog after a particular time...

    Quote Originally Posted by singh0783 View Post
    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.
    Are you sure that wxtimer module is avaialble in Python for Series60?
    Mikko Ohtamaa

    http://mfabrik.com
    http://blog.mfabrik.com

Similar Threads

  1. dialogs in SymbianOS/S60 a complete crock
    By leisti in forum Series 40 & S60 Platform Feedback Archive
    Replies: 5
    Last Post: 2008-01-18, 14:36
  2. frustrations in using dialogs and controls
    By leisti in forum Symbian User Interface
    Replies: 4
    Last Post: 2008-01-10, 22:26
  3. Should I delete my dialog?
    By ahlmans in forum Symbian User Interface
    Replies: 2
    Last Post: 2007-11-26, 04:39
  4. Wait dialog vs. Global note - problems...
    By bjorn.rudolfsson in forum Symbian User Interface
    Replies: 4
    Last Post: 2003-10-30, 10:48
  5. Wait dialog vs. Global note - problems...
    By bjorn.rudolfsson in forum Symbian
    Replies: 0
    Last Post: 2003-06-25, 15:40

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×