Re: [Tkinter-discuss] Tkinter Menu

2006-07-11 Thread Metz, Bobby W, WWCS
yeh, you won't find it in a lot of tkinter references...at least my initial queries for such a feature turned up squat months ago. The "end" word should work as well, but I've always used "last". Bobby -Original Message- From: Fuzzyman [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 11,

Re: [Tkinter-discuss] System Font Size

2006-07-11 Thread Metz, Bobby W, WWCS
Tk font sizes are independent of Windows so looking for a win32com means of querying the system font sizes may be required. As to your combobox question, I don't use pmw but the combobox should be fairly simple to create. To refresh my mem on it I looked up examples of the two types, simple & dro

Re: [Tkinter-discuss] System Font Size

2006-07-11 Thread Fuzzyman
Jeff Epler wrote: >If you want to find the default font used for a particular item, create >one and interrogate it: >>>> b = Tkinter.Button(app) >>>> b.cget("font") >'-monotype-arial-medium-r-normal-*-12-*-*-*-p-*-iso8859-15' > > Wow, on windows I get : '{MS Sans Serif} 8' That

Re: [Tkinter-discuss] System Font Size

2006-07-11 Thread Jeff Epler
If you want to find the default font used for a particular item, create one and interrogate it: >>> b = Tkinter.Button(app) >>> b.cget("font") '-monotype-arial-medium-r-normal-*-12-*-*-*-p-*-iso8859-15' (in this case, it's a Linux system with the fonts coming from the X resource databas

[Tkinter-discuss] System Font Size

2006-07-11 Thread Fuzzyman
Hello all, I'm creating a windows application, with a Tkinter GUI. I currently happily set the font sizes using tuples ``font=("name", "size", "weight")``. (or something like that.) I use a couple of different sizes for titles, subtitles, body text and buttons. I would like to detect the system

Re: [Tkinter-discuss] Tkinter Menu

2006-07-11 Thread Fuzzyman
Metz, Bobby W, WWCS wrote: >Deleting is easiest using the index feature. In your case: > >if menu.index("last") is not None: > menu.delete(0, menu.index("last") - 2) > > Cool, I didn't know you could do that. Thanks Fuzzyman http://www.voidspace.org.uk/python/index.shtml >Bobby > >---