Re: [Tutor] Print Output Location in Windows XP

2005-09-02 Thread geon
t . i means "stay interactive after run". example : python -i myfile.py Hope this helps -- geon ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How can I make this run right?

2005-08-15 Thread geon
is yours (and a bit of mine :-) ) -- geon ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Event handler for optionmenu

2005-08-15 Thread geon
IONS = ["en","pt","es","it","fr","de"], how much it is intended) Shoudnt be there varValue = self.startw.getvar(name)? - just guessing - I can not check cause the indentation i scorrupted ;-) geon ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Event handler for optionmenu

2005-08-15 Thread geon
le('w', callbackFunc)   # var.trace('w', callbackFunc) # this works, too w = OptionMenu (root, var, *OPTIONS) w.pack() root.mainloop() Hope its what you asked for :-) -- geon ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] help

2005-08-11 Thread geon
ewwin).pack(side=LEFT, expand=YES, fill=BOTH)# creates button that says 'your name'. see newwin callback for output. widget = Button(win, text='quit all', command=win.quit).pack(side=BOTTOM, expand=YES, fill=BOTH) widget = Button(win, text='quit', command=win.destroy).pack(side=RIGHT, expand=YES, fill=BOTH) widget = Button(win, text='area', command=area).pack(side=LEFT, expand=YES, fill=BOTH) win.title('my program') #end of program -- geon ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Corrupt files

2005-08-02 Thread geon
r not >the file is corrupt or not? > > > Until you are provided with, say, md5 checksum, there is no other way than comparing sizes, I think ... -- geon ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] time.sleep() error

2005-08-02 Thread geon
geon napsal(a): sunny sunny napsal(a): Hi all, I am using time.sleep to stop my program execution for some time. I have imported time and am able to use it sucessfully in the main program. However if I use it in any function I get the following error: the time.sleep(1) command

Re: [Tutor] time.sleep() error

2005-08-02 Thread geon
is not callable In this case you "overwrite" the original function sleep() with your/my variable sleep Solution: rename your/my variable sleep to f.e. notAwake=10 :-) -- geon ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Tkinter event for changing OptionMenu items

2005-07-21 Thread geon
S = [ "egg", "bunny", "chicken" ] def callmeagain(): global state if state!=var.get(): print var.get() state=var.get() root.after(1000, callmeagain) root = Tk() var = StringVar() var.set(OPTIONS[2]) # default value sta

Re: [Tutor] OFFLIST Re: replaying

2005-07-18 Thread geon
I might reapeted myself: the mailing should support collaboration in public, sharing the wisdom. Not just solving trouble of a single man, not substitue private chats. Of course, its all up to you, I open this thread only because it was so unusualy from all what I have seen up to now, that I j

Re: [Tutor] replaying

2005-07-18 Thread geon
do it? Why should he want me just for him? To be able to read your replay pls use easy english ;-) -- geon Vyjímka je pravidlo. Rekurzivní. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] replaying

2005-07-18 Thread geon
Hi, Seems to me as very unuseful thing in this phorum, when I choose Replay to any message, the field "to whom or Receiver" is all the time not tutor@python.org but the original sender! Why? I can not understand that? It sould be prefferably posted back to mailing list IMHO.

Re: [Tutor] ListBox in Tkinter

2005-07-18 Thread geon
orly or only in original Tk documentation. -- geon Vyjímka je pravidlo. Rekurzivní. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] ListBox in Tkinter

2005-07-18 Thread geon
Hi, I would like to ask if it is possible to create such a listbox (attached) in TKinter itself or must have pmw ot tix...or ... Thank you -- geon Vyjímka je pravidlo. Rekurzivní. ___ Tutor maillist - Tutor@python.org http://mail.python.org

Re: [Tutor] Tk -- which label clicked

2005-07-14 Thread geon
#x27;text'] ? what else you can put into brackets?: print event.widget.keys() what else can be after event.?: dir(event) -- geon Vyjímka je pravidlo. Rekurzivní. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Why does my code show this?

2005-07-10 Thread geon
the other trouble might be on the last line - note that "if" is not "while". :-) before creating your own program would be better to go through some nice tutorial,  to get some experience. nice pytime geon ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] "And" function

2005-07-05 Thread geon
gordnjen napsal(a): Message I need to write a program that will do the following:   Ask the user's age. If their age is below 1 yr old, it prints "you are old enought to eat baby food" If they are over 16, it prints "You are old enough to drive" If they are over 65, it p