0
TKのGui-Programmingのイベントについて何も見つかりません。ユーザーが "自動"ラジオボタンをクリックすると、他のラジオボタンは見えなくなります。ここTcl Tk hideユーザーがラジオボタンを押したときのオブジェクト
はコードです:ラジオボタンの変更にUIの応答を作る
set base .example1;
toplevel $base
wm geometry $base 1920x1080
set frame_RadioBtnAuto [labelframe $base.frame_RadioBtnAuto \
-text Search \
-font {Calibri -12 bold} ];
place $frame_RadioBtnAuto -x 250 -y 135;
set rbl [radiobutton $frame_RadioBtnAuto.rbl \
-text "Automatic"\
-variable "[namespace current]::optionVariable" -value one ];
#Standardwahl beim start
$frame_RadioBtnAuto.rbl select
pack $rbl -side left -anchor nw;
set rb2 [radiobutton $frame_RadioBtnAuto.rb2 \
-text "UserDef"\
-variable "[namespace current]::optionVariable" -value two ];
pack $rb2 -side top -anchor nw;
set frame_RadioBtnUserW1 [labelframe $base.frame_RadioBtnUserACC \
-text Window\ 1\
-font {Calibri -12 bold} ];
place $frame_RadioBtnUserACC -x 250 -y 170;
set rba1 [radiobutton $frame_RadioBtnUserW1.rba1 \
-text "Test1"\
-variable "[namespace current]::optionVariable1" -value three ];
pack $rba1 -side top -anchor nw;
set rba2 [radiobutton $frame_RadioBtnUserW1.rba2 \
-text "Test2"\
-variable "[namespace current]::optionVariable1" -value four ];
pack $rba2 -side top -anchor nw;
「自動」の選択を解除するにはどうすればよいですか? –
@DonalFellowsユーザがランダムアレンジをしたくない場合。彼は手動オプションを選択することができます。 – ManInTheMiddle