The app window is the correct sige h = 200, w = 400 if I don't add a button to the script. The weird thing is, the minute I add a button widget the main app window completely ignores the size configuration and becomes very small.
I've been trying to crack this problem for ages but nothing seem to work. Could someone please tell me how I keep my main app window the given size even with a button widget.
Comment out the button widget and you'll be able to see what I mean.
Regards
Chew
Expand|Select|Wrap|Line Numbers
- from Tkinter import *
- def theCall():
- app.quit()
- app = Tk()
- testb = Button(app, text = "test", command = theCall)
- testb.pack()
- app.config(height = 200, width = 400)
- app.mainloop()