2013-04-18 3 views
0

나는 개인 라디오 버튼에 대한 Toolbutton 스타일을 설정할 수 있습니다ttk 라디오 버튼을 기본적으로 스타일 도구 버튼으로 만들 수 있습니까?

#!/bin/sh 
# \ 
exec /usr/bin/wish "$0" "[email protected]" 
set X11 /usr/X11/include/X11/bitmaps 
image create bitmap LeftImage -file "$X11/left_ptr" 
image create bitmap RightImage -file "$X11/right_ptr" 
ttk::radiobutton .left -variable Foo -image LeftImage -style Toolbutton 
ttk::radiobutton .right -variable Foo -image RightImage 
pack .left .right 

하지만 별도로 각 하나를 지정하지 않고, 그들 모두, 즉 기본적으로 Toolbutton 스타일을 만드는 방법을 알아낼 수 없습니다.

답변

0

라디오 버튼의 기본 스타일 인 'TRadiobutton'스타일을 지정할 수 있습니다.

+0

잘 모르겠습니다. 예를 들어, 이것은 작동하지 않습니다.'ttk :: style configure TRadiobutton -style Toolbutton'. 나는 스타일을 처음 사용합니다 ... –

+0

ttk :: style configure TRadiobutton -background magenta –

관련 문제