set pb4 [gnocl::pixBuf load "wjg.jpg"]
set img1 [gnocl::image -image "%?$pb4"]
set but1 [gnocl::button \
-text "Turn" \
-onClicked { $img1 turn 90 } ]
set box1 [gnocl::box -orientation vertical]
$box1 add $but1
$box1 add $img1 -fill {1 1} -expand 1
set win1 [gnocl::window \
-child $box1 \
-widthRequest 200 \
-heightRequest 200 \
-allowShrink 0 \
-alllowGrow 0 ]
No comments:
Post a Comment