Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

the button can not change its form

Status
Not open for further replies.

waistcoat

Programmer
Aug 2, 2003
15
CN
Hi,all
I want to draw a picture on the button,but the button in the program can not change its form .
The width(height) can not change.
set w .main
toplevel $w
button $w.1 -width 20 -height 5 -relief ridge -text ""
set c $w.1.frame.c
frame $w.1.frame
pack $w.1.frame
canvas $c -width 10 -height 5 -bg yellow -relief raised
$c create oval 1 2 3 4 -fill blue
grid $c
grid columnconfigure $c 0 -weight 1
pack $w.1
Another question can tcl\tk draw a picture easily and
beautiful.
Thanks!


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top