[Tkinter-discuss] Canvas margins?
CarlG
carlgiesberts at hotmail.com
Sun Dec 9 22:36:19 CET 2007
I thought I'd paste the code I use:
root = Tk()
tk_bg = "#%02x%02x%02x" % (255, 255, 224) #beige background
root.config(bg=tk_bg, width=300, height=500)
canvas = Canvas(root,width=300, height=500,bg=tk_bg)
If I don't add the canvas, then the window is actually 300 by 500 and has
the background color. With the canvas, the canvas is that size, and
stretches the window a bit by having white borders/margins...
--
View this message in context: http://www.nabble.com/Canvas-margins--tp14242512p14243575.html
Sent from the Python - tkinter-discuss mailing list archive at Nabble.com.
More information about the Tkinter-discuss
mailing list