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
is yours (and a bit of
mine :-) )
--
geon
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
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
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
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
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
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
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
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
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
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
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.
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
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
#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
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
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
17 matches
Mail list logo