Import Tk 8.6.10
This commit is contained in:
@@ -27,7 +27,7 @@ focus .s
|
||||
|
||||
proc center {x y} {
|
||||
set a [.s size]
|
||||
.s position [expr $x-($a/2)] [expr $y-($a/2)]
|
||||
.s position [expr {$x-($a/2)}] [expr {$y-($a/2)}]
|
||||
}
|
||||
|
||||
# The procedures below provide a simple form of animation where
|
||||
|
||||
Reference in New Issue
Block a user