[Tkinter-discuss] How to set a constant in lambda

2009-01-27 Thread vtcodger
I came across a problem that probably has a simple, clever, answer -- but it is eluding me. I was trying to create a set of tab buttons on a Tkinter page using Buttons. These are created dynamically when the user loads a file. I don't know in advance how many files will get opened, so I want to

Re: [Tkinter-discuss] Creating a new widget class

2008-08-06 Thread vtcodger
Ron -- Thanks, I thought I was doing about what you describe, but apparently not as the tk attribute for the class objects is not getting set up. I'm a bit hazy on what the tk attribute does (other than making things work) and can't find much about it via Google. I'll go back and subclass from f

[Tkinter-discuss] Creating a new widget class

2008-08-03 Thread vtcodger
I wonder if someone who understands Python and Tkinter a bit better than I could help me out. Basically, I'm trying to encapsulate the kind of messy stuff associated with setting up a listbox with a scrollbar in a Python class. From my probably incredibly naive point of view, it doesn't look too