Added 'C_C++/Tcl/width_vs_bg.tcl'
This commit is contained in:
parent
0ed4acc7be
commit
3b3b6d0da9
13
C_C++/Tcl/width_vs_bg.tcl
Normal file
13
C_C++/Tcl/width_vs_bg.tcl
Normal file
@ -0,0 +1,13 @@
|
||||
package require Tk
|
||||
set tileWidth 50
|
||||
set wallWidth 10
|
||||
|
||||
canvas .c11 -width $::tileWidth -height $::tileWidth
|
||||
.c11 create line 0 0 0 $::tileWidth -fill black -width $::wallWidth
|
||||
|
||||
#canvas .c12 -width $::wallWidth -height $::tileWidth -bg black
|
||||
canvas .c12 -width $::tileWidth -height $::tileWidth
|
||||
.c12 create line 0 0 0 $::tileWidth -fill black -width $::wallWidth
|
||||
|
||||
grid .c11 -row 1 -column 1
|
||||
grid .c12 -row 1 -column 2
|
Loading…
x
Reference in New Issue
Block a user