mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
25 lines
545 B
Ruby
25 lines
545 B
Ruby
|
#
|
||
|
# 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
|