diff options
Diffstat (limited to 'ext/tk/sample/demos-en/ttkbut.rb')
-rw-r--r-- | ext/tk/sample/demos-en/ttkbut.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/tk/sample/demos-en/ttkbut.rb b/ext/tk/sample/demos-en/ttkbut.rb index f2fcbcc7ba..e308cdd23f 100644 --- a/ext/tk/sample/demos-en/ttkbut.rb +++ b/ext/tk/sample/demos-en/ttkbut.rb @@ -89,17 +89,17 @@ Tk.pack(e, sep1, c1, c2, sep2, c3, c4, :fill=>:x, :pady=>2) ## Set up the radiobutton group radios = Ttk::Labelframe.new(base_frame, :text=>'Radiobuttons') -happyness = TkVariable.new +happiness = TkVariable.new -r1 = Ttk::Radiobutton.new(radios, :variable=>happyness, +r1 = Ttk::Radiobutton.new(radios, :variable=>happiness, :text=>'Great', :value=>'great') -r2 = Ttk::Radiobutton.new(radios, :variable=>happyness, +r2 = Ttk::Radiobutton.new(radios, :variable=>happiness, :text=>'Good', :value=>'good') -r3 = Ttk::Radiobutton.new(radios, :variable=>happyness, +r3 = Ttk::Radiobutton.new(radios, :variable=>happiness, :text=>'Ok', :value=>'ok') -r4 = Ttk::Radiobutton.new(radios, :variable=>happyness, +r4 = Ttk::Radiobutton.new(radios, :variable=>happiness, :text=>'Poor', :value=>'poor') -r5 = Ttk::Radiobutton.new(radios, :variable=>happyness, +r5 = Ttk::Radiobutton.new(radios, :variable=>happiness, :text=>'Awful', :value=>'awful') Tk.pack(r1, r2, r3, r4, r5, :fill=>:x, :padx=>3, :pady=>2) @@ -115,7 +115,7 @@ Ttk::Frame.new(base_frame) {|frame| showVars(base_frame, ['enabled', enabled], ['cheese', cheese], ['tomato', tomato], ['basil', basil], ['oregano', oregano], - ['happyness', happyness]) + ['happiness', happiness]) }), Ttk::Button.new(frame, :text=>'See Code', :image=>$image['view'], :compound=>:left, |