diff options
Diffstat (limited to 'ext/tk/lib/tk/checkbutton.rb')
-rw-r--r-- | ext/tk/lib/tk/checkbutton.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ext/tk/lib/tk/checkbutton.rb b/ext/tk/lib/tk/checkbutton.rb index d76d99c0f2..b1186a87ed 100644 --- a/ext/tk/lib/tk/checkbutton.rb +++ b/ext/tk/lib/tk/checkbutton.rb @@ -4,7 +4,7 @@ require 'tk' require 'tk/radiobutton' -class TkCheckButton<TkRadioButton +class Tk::CheckButton<Tk::RadioButton TkCommandNames = ['checkbutton'.freeze].freeze WidgetClassName = 'Checkbutton'.freeze WidgetClassNames[WidgetClassName] = self @@ -22,4 +22,9 @@ class TkCheckButton<TkRadioButton self end end -TkCheckbutton = TkCheckButton + +Tk::Checkbutton = Tk::CheckButton +#TkCheckButton = Tk::CheckButton unless Object.const_defined? :TkCheckButton +#TkCheckbutton = Tk::Checkbutton unless Object.const_defined? :TkCheckbutton +Tk.__set_toplevel_aliases__(:Tk, Tk::CheckButton, + :TkCheckButton, :TkCheckbutton) |