tkinter and listbox

Matthew Dixon Cowles matt at mondoinfo.com
Fri May 25 14:39:36 EDT 2001


On 25 May 2001 18:14:04 GMT, Uwe Schmitt <schmitt at num.uni-sb.de>
wrote:

>i'm using a listbox which has nubers as entrys. so i'd like to use a
>fixed width font in this listbox... is this possible ? if yes, how ?

Just use the listbox's font option:

l=Listbox(self.root,font="courier")

You can find more detail about listboxes, fonts, and most everything
else in Tkinter in Fredrik Lunds's excellent An Introduction to
Tkinter:

http://www.pythonware.com/library/tkinter/introduction/index.htm

Regards,
Matt



More information about the Python-list mailing list