summaryrefslogtreecommitdiff
path: root/ext/tk/lib/tk/frame.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/lib/tk/frame.rb')
-rw-r--r--ext/tk/lib/tk/frame.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/tk/lib/tk/frame.rb b/ext/tk/lib/tk/frame.rb
index 6636fef5b5..471bb3cd00 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,5 @@ class TkFrame<TkWindow
end
end
end
+
+TkFrame = Tk::Frame unless Object.const_defined? :TkFrame