diff options
Diffstat (limited to 'ext/tk/lib/tkextlib/tile/tbutton.rb')
-rw-r--r-- | ext/tk/lib/tkextlib/tile/tbutton.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/tk/lib/tkextlib/tile/tbutton.rb b/ext/tk/lib/tkextlib/tile/tbutton.rb index 9a6245db82..abce6f6604 100644 --- a/ext/tk/lib/tkextlib/tile/tbutton.rb +++ b/ext/tk/lib/tkextlib/tile/tbutton.rb @@ -22,4 +22,8 @@ class Tk::Tile::TButton < TkButton end WidgetClassName = 'TButton'.freeze WidgetClassNames[WidgetClassName] = self + + def self.style(*args) + [self::WidgetClassName, *(args.map!{|a| _get_eval_string(a)})].join('.') + end end |