[Tutor] Problems with frame size

Alexandre Passos alextp@ig.com.br
Fri, 07 Apr 2000 19:41:46 -0300


In the same program, I noticed that it doesn't takes the frame size it
should and the window takes just the Label widget's size and not the
size it should.

#! /usr/bin/env python
from Tkinter import *

root = Tk()

class All:
    def __init__(self):
        self.main_screen=Frame(root, width=600, height=200, bg='',
colormap='new' )
        self.main_screen.grid()
        Label(self.main_screen, text="Nothing will be here when the
program is done").grid(row=0, column=1)
        self.title = Label(self.main_screen, text="Frame_Title")        
        self.title.grid(row=0, column=0)
        self.title.bind('<1>',self.callback)

    def callback(self, event):
        self.title.grid_configure(column=2)
all=All()
root.mainloop()





"The thruth is out there"
X-Files