User Profile

Collapse

Profile Sidebar

Collapse
stevemcc
stevemcc
Last Activity: Jan 23 '08, 05:24 AM
Joined: Sep 26 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • stevemcc
    replied to Using Timer incorrectly
    Oh, Timers just countdown once? I assumed they executed a method every x seconds. Was I wrong?...
    See more | Go to post

    Leave a comment:


  • stevemcc
    started a topic Using Timer incorrectly

    Using Timer incorrectly

    I am using a timer in an alarm clock application I am writing. I don't seem to understand how to use the timer.

    Code:
    import threading
    
    class MyClass:
        
        
        def __init__(self):
            self.t = threading.Timer(1, whatever)
            self.t.start()
        
        def whatever(self):
            print  "you got here!"
            return
    Can someone...
    See more | Go to post

  • Reload this Page PyGTK image bkg w/ widgets on top

    I am trying to make a game using pygtk. It requires that there be an image in the background and widgets that can go in front of the image. I have tried defining a background image for the Mainwindow but cant seem to do that and I have tried to pack widgets into an image but gtk.Image does not have the add attribute. What approach should I be taking?
    See more | Go to post
No activity results to display
Show More
Working...