TKinter Entry question

Laura Creighton lac at strakt.com
Fri Jan 31 09:39:47 CET 2003


> Q1 can I put some pre text in the entry box?. How?
> Q2 how do I know when/if to get the users entry?
> 		does Python/tk set a flag.
> Im trying to achieve a simple GUI(within a frame of other buttons etc)
> entry box, that i can shove some pre text in(default) but allow a user
> to modify.
> 
> Status=ActivePython,xp,newbie
> 
> Im having trouble with the Entry code in TK
> <snip>
> self.e_fanon=Entry(frame,width=5)
> self.e_fanon.grid(row=l_row,column=1,sticky=W)
> <endsnip>
> 
> ta
> 
> -- 
> http://mail.python.org/mailman/listinfo/python-list

You need to bookmark this: 
http://www.pythonware.com/library/an-introduction-to-tkinter.htm

http://www.pythonware.com/library/tkinter/introduction/x4338-methods.htm
explains how to use the insert method to insert text in your entry
widget.

Another useful Tkinter doc is 
http://www.nmt.edu/tcc/help/lang/python/tkinter.html

HTH,
Laura





More information about the Python-list mailing list