Tkinter pack w/o gutter

Phlip pplumlee at
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")


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

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.


More information about the Python-list mailing list