summaryrefslogtreecommitdiff
path: root/jni/ruby/ext/tk/lib/tkextlib/iwidgets/scopedobject.rb
blob: 056cd85322096777a7e22dae80ecca4e97eab34a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
#  tkextlib/iwidgets/buttonbox.rb
#                               by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
#

require 'tk'
require 'tkextlib/iwidgets.rb'

module Tk
  module Iwidgets
    class Scopedobject < TkObject
    end
  end
end

class Tk::Iwidgets::Scopedobject
  TkCommandNames = ['::iwidgets::scopedobject'.freeze].freeze
  WidgetClassName = 'Scopedobject'.freeze
  WidgetClassNames[WidgetClassName] ||= self

  def initialize(obj_name, keys={})
    @path = tk_call(self.class::TkCommandNames[0], obj_name, *hash_kv(keys))
  end
end