Calling a function every 1 hour in wx.python

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Elias Alhanatis
    New Member
    • Aug 2007
    • 56

    Calling a function every 1 hour in wx.python

    Hello friends!!!

    I am writing a program ( using wx.Python ) in which i want the mainloop
    to check every hour a certain database i have conected to the program.
    ( Most of the time the GUI is idle , events dont 'happen' all the time...)
    How can i imply this in my program? I dont want the code , just a hint about
    which functions i can use and where to place them in the code....

    Thank you for your help in advance!!!!!

    Elias
  • diegososa
    New Member
    • Oct 2007
    • 19

    #2
    Originally posted by Elias Alhanatis
    Hello friends!!!

    I am writing a program ( using wx.Python ) in which i want the mainloop
    to check every hour a certain database i have conected to the program.
    ( Most of the time the GUI is idle , events dont 'happen' all the time...)
    How can i imply this in my program? I dont want the code , just a hint about
    which functions i can use and where to place them in the code....

    Thank you for your help in advance!!!!!

    Elias
    Take a look at threading.Timer

    Comment

    • Elias Alhanatis
      New Member
      • Aug 2007
      • 56

      #3
      Exaclty what i needed!
      Thank you very much!!!!!!!

      Elias

      Comment

      Working...