summaryrefslogtreecommitdiff
path: root/ext/tk/lib/tk/labelframe.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/lib/tk/labelframe.rb')
-rw-r--r--ext/tk/lib/tk/labelframe.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/ext/tk/lib/tk/labelframe.rb b/ext/tk/lib/tk/labelframe.rb
new file mode 100644
index 0000000000..fa658848c8
--- /dev/null
+++ b/ext/tk/lib/tk/labelframe.rb
@@ -0,0 +1,20 @@
+#
+# tk/labelframe.rb : treat labelframe widget
+#
+require 'tk'
+require 'tk/frame'
+
+class TkLabelFrame<TkFrame
+ TkCommandNames = ['labelframe'.freeze].freeze
+ WidgetClassName = 'Labelframe'.freeze
+ WidgetClassNames[WidgetClassName] = self
+ def create_self(keys)
+ if keys and keys != None
+ tk_call_without_enc('labelframe', @path, *hash_kv(keys, true))
+ else
+ tk_call_without_enc('labelframe', @path)
+ end
+ end
+ private :create_self
+end
+TkLabelframe = TkLabelFrame