I suppose I could have just made a new widget class that created my Button and my Entries (call it buttonMinMax class) and looped through creating instances of this new class and given it methods to get the values from the min and max Enties. Then iterated through a single-dimensional array of...
Well, turns out it looks like I can't do what I wanted to do. So I cheated and found a way around it. In case anyone else runs up against this, here's how I did it.
self.madeButtons = []
for i in range(1, int(numOfScenes) + 1):
sceneName = ("sc_" + str(i).zfill(padding))...
Hello,
I want to create a loop that creates Buttons and Entries. I figured I'd loop through giving them iterative names; button1 entry1Min entry1Max button2 entry2Min entry2Max and so forth.
I've got it making the widgets:
for i in range(1, int(numOfScenes) + 1):
sceneName = ("Sc_" +...
This code seems to work for me. Naturally you'd want to change the interval times and have it actually call your daemon function. Haven't found a way to stop it yet though. It is effectively infinite until you kill the process.
This was fun, I'd never thought of doing that before. Thanks for...
Never done this myself, but I think a timer object might come in handy for that.
http://www.python.org/doc/2.4.2/lib/timer-objects.html
Find a way to check the system time, probably using the time module (http://www.python.org/doc/2.4.2/lib/module-time.html) and based on what time you find...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.