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.

_______________________________________________
Tkinter-discuss mailing list
[email protected]
http://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to