GUI problems

Levente Sandor nospam at
Fri Jul 6 01:24:41 CEST 2001

Try to create an instance of your fibon_gui class.
Insert the 
fib_gui = fibon_gui(root)
line before
Maybe this helps :)


In article <7b515e0f.0107051455.4194a679 at>, eric_brake says...
>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",
>          button.pack(side=LEFT)
>root = Tk()
>root.title('Play Dice')

More information about the Python-list mailing list