Here's my Tkinter class:
class TwoChoice:
def __init__(self, master):
frame = Frame(master)
frame.pack()
m = Label(root, text= maentry)
m.pack()
n = Label(root, text= fave)
n.pack()
self.button = Button(frame, text=home_team, command=
s
Hi all,
I'm trying to write a GUI that will put up multiple widgets in
succession. My problem is that each widget also contains the previous
widgets when they pop up. How do I reinitialize the widget each time so
that it doesn't contain earlier ones? Actually, another question I have
is, is there
Thanks for your help. Actually my idea was that command1 and command2
would be defined within the program, not the module, as I would have
different choices in different programs. Should I pass them in as a
parameter too?
Greg
Steve Holden wrote:
> [EMAIL PROTECTED] wrote:
> > Thanks, I got that
the class into each file, but that seems silly. I haven't had any
trouble using modules for functions, but for classes it is not working
right so far, and I'm having trouble finding examples to follow.
Greg
Marc 'BlackJack' Rintsch wrote:
> In <[EMAIL PROTECTED]>, g
Yep, that fixed it. Many thanks.
Greg
Dennis Lee Bieber wrote:
> On 27 Oct 2006 09:22:00 -0700, [EMAIL PROTECTED] declaimed the
> following in comp.lang.python:
>
> > It's supposed to just make a Tkinter window with two choices. The
> > problem is that when I import it from a module, I get the fo
Hi all,
I'm trying to import a class from a module. The class looks like this:
class App:
def __init__(self, master):
frame = Frame(master)
frame.pack()
self.button = Button(frame, text=text_1, command= self.comm_1)
self.button.pack(side=LEFT)
self.h