summaryrefslogtreecommitdiff
path: root/ext/tk/lib/tkextlib/tile/tprogressbar.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/lib/tkextlib/tile/tprogressbar.rb')
-rw-r--r--ext/tk/lib/tkextlib/tile/tprogressbar.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/tk/lib/tkextlib/tile/tprogressbar.rb b/ext/tk/lib/tkextlib/tile/tprogressbar.rb
index f01aeb641b..3f47cd9b8b 100644
--- a/ext/tk/lib/tkextlib/tile/tprogressbar.rb
+++ b/ext/tk/lib/tkextlib/tile/tprogressbar.rb
@@ -7,7 +7,7 @@ require 'tkextlib/tile.rb'
module Tk
module Tile
- class TProgressbar < TkWidget
+ class TProgressbar < TkWindow
end
end
end
@@ -23,6 +23,10 @@ class Tk::Tile::TProgressbar
WidgetClassName = 'TProgressbar'.freeze
WidgetClassNames[WidgetClassName] = self
+ def self.style(*args)
+ [self::WidgetClassName, *(args.map!{|a| _get_eval_string(a)})].join('.')
+ end
+
def step
tk_send_without_enc('step').to_f
end