Lonnie Princehouse wrote: > Tkinter takes strings as its arguments; it's TCL's legacy.
geometry strings are an X windows thing...
> 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))
note that "+%ld" (why bother with the l, btw? Python's not C) will
misbehave if you pass in a negative offset. better use "%+d".
</F>
--
http://mail.python.org/mailman/listinfo/python-list
