Tkinter takes strings as its arguments; it's TCL's legacy. You can use string formatting for this:
x = width/2-40 y = height/2-30 root.geometry('%ldx%ld+%ld+%ld' % (width, height, x, y)) -- http://mail.python.org/mailman/listinfo/python-list
Tkinter takes strings as its arguments; it's TCL's legacy. You can use string formatting for this:
x = width/2-40 y = height/2-30 root.geometry('%ldx%ld+%ld+%ld' % (width, height, x, y)) -- http://mail.python.org/mailman/listinfo/python-list