Tkinter / Aqua (OS X) question (canvas borders)

dmsbox2000-list1@yahoo.com dstark7 at gmail.com
Sat Feb 18 15:40:55 EST 2006


This is a beginner question.  I am using a Mac running OS X.  I have
TclTkAqua installed.  If I type:

import Tkinter

r = Tkinter.Tk()
c = Tkinter.Canvas(r)
c.pack()
c.create_line(0,0,100,0)

the line is not visible.  If I type:

c.create_line(3,4,100,4)

the line is visiable.  There appears to be an asymmetric "border"
around the inside of the canvas.  If I type

print c.cget('padx'), c.cget('pady')

I get zero.  How do I find out the size of the border?  Is this
specific to the Aqua version of Tk?

I have X Windows installed.  Would I be better off if I down loaded the
Unix version of Tk and Tkinter/python and compiled it for X?




More information about the Python-list mailing list