summaryrefslogtreecommitdiff
path: root/ext/tk/lib/tk/label.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/lib/tk/label.rb')
-rw-r--r--ext/tk/lib/tk/label.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/tk/lib/tk/label.rb b/ext/tk/lib/tk/label.rb
index 8b45db9b30..9904953e81 100644
--- a/ext/tk/lib/tk/label.rb
+++ b/ext/tk/lib/tk/label.rb
@@ -3,7 +3,7 @@
#
require 'tk'
-class TkLabel<TkWindow
+class Tk::Label<TkWindow
TkCommandNames = ['label'.freeze].freeze
WidgetClassName = 'Label'.freeze
WidgetClassNames[WidgetClassName] = self
@@ -16,3 +16,5 @@ class TkLabel<TkWindow
#end
#private :create_self
end
+
+TkLabel = Tk::Label unless Object.const_defined? :TkLabel