diff options
Diffstat (limited to 'ext/tk/lib/tk/frame.rb')
-rw-r--r-- | ext/tk/lib/tk/frame.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/tk/lib/tk/frame.rb b/ext/tk/lib/tk/frame.rb index 6636fef5b5..263b160f29 100644 --- a/ext/tk/lib/tk/frame.rb +++ b/ext/tk/lib/tk/frame.rb @@ -3,7 +3,7 @@ # require 'tk' -class TkFrame<TkWindow +class Tk::Frame<TkWindow TkCommandNames = ['frame'.freeze].freeze WidgetClassName = 'Frame'.freeze WidgetClassNames[WidgetClassName] = self @@ -126,3 +126,6 @@ class TkFrame<TkWindow end end end + +#TkFrame = Tk::Frame unless Object.const_defined? :TkFrame +Tk.__set_toplevel_aliases__(:Tk, Tk::Frame, :TkFrame) |