I am trying to use Tkinter to provide a gui to a simple python script.
No matter what I try, my tkinter window always ends up maximised, filling the entire screen.
Specifying the height and width has no effect. I have tried a simple label, and tried putting the label inside a frame - in both cases specifying height and width - but to no avail.
To illustrate what I mean:
from tkinter import * l = Label(text='testing') l.pack() root = Tk() root.mainloop()
from tkinter import * l = Label(width=50, height= 20, text='testing') l.pack() root = Tk() root.mainloop()
both produce exactly the same thing - a tkinter window maximised, filling the screen, with 'testing' in the center.
Am I being really stupid here? (note: this is my first attempt at using tkinter, and I am not very confident with python generally yet)
The only thing I can think of is that I am doing this on a netbook running Ubuntu Netbook Remix, which includes a window manager called 'Maximus' that is supposed to make best use of the small screen by using as much space as possible for a window (e.g. it removes the usual titlebars). I know from experience that Maximus can mess windows up sometimes...
Help or thoughts much appreciated :)