Tkinter pack w/o gutter

Phlip pplumlee at celterra.com
Wed Oct 3 20:13:15 CEST 2001


Hypo Nt:

Try this snip:

  from Tkinter import *
  tk = Tk()
 
  for side in ('left', 'right'):
	canvas = Canvas(tk, background='blue', width = 100, height = 100)
	canvas.pack(side = side, padx = "0m")

  mainloop()

Observe how there is a gutter of 2 pixels (one per canvas) between
them.

How do I get rid of this gutter?

'padx = 2' stretches the gutter out, but 'padx = 0' does not get rid
of it. Other experiments, such as with 'ipadx', don't work.

-- 
Phlip

http://www.greencheese.org/MakeItSo



More information about the Python-list mailing list