GUI problems

Siggy Brentrup bsb at winnegan.de
Fri Jul 6 16:18:40 CEST 2001


brakedon at hotmail.com (eric_brake) writes:

> I don't know what happened, but this is how it's supposed to look
> ("command=frame.quit" under "Button" was on the next line. Thanks for
> any help

That's an easy one, see below:

> brakedon at hotmail.com (eric_brake) wrote in message news:<7b515e0f.0107051455.4194a679 at posting.google.com>...
> > Why doesn't this TKinter script work? The blank window will come up,
> > but the "quit" button doesn't appear inside it. Thanks for any help.
> > 
> > import dice_gui #ignore this
> > from Tkinter import *
> > class fibon_gui:
> >      def __init__(self, master):
> >           frame = Frame(master)
> >           frame.pack()
> >           button = Button(frame, text="QUIT", fg="red", command=frame.quit)
> >           button.pack(side=LEFT)
> > root = Tk()
> > root.title('Play Dice')
    fibon_gui(root)
> > root.mainloop()
> -- 
> http://mail.python.org/mailman/listinfo/python-list
> 

-- 
Siggy Brentrup - bsb at winnegan.de - http://www.winnegan.de/
****** ceterum censeo javascriptum esse restrictam *******




More information about the Python-list mailing list