2009/1/9 Jonathan Balkind <find...@gmail.com>: > Hi tutor list, > I haven't been programming for long with Python, and I'm currently trying to > make a simple game using Tkinter. I was wondering whether it is possible to > submit a function to the mainloop so it will run every time the loop goes > around? I thought about adding the function to the event handler, but I was > hoping I could just submit the function to the mainloop.
Hi Jonathan, You can use the after() method. See here: http://www.pythonware.com/library/tkinter/introduction/x9507-alarm-handlers-and-other.htm -- John. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor