From 0dc342de848a642ecce8db697b8fecd83a63e117 Mon Sep 17 00:00:00 2001 From: yugui Date: Mon, 25 Aug 2008 15:02:05 +0000 Subject: added tag v1_9_0_4 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v1_9_0_4@18845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- trunk/ext/tk/lib/tkextlib/tile/tframe.rb | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 trunk/ext/tk/lib/tkextlib/tile/tframe.rb (limited to 'trunk/ext/tk/lib/tkextlib/tile/tframe.rb') diff --git a/trunk/ext/tk/lib/tkextlib/tile/tframe.rb b/trunk/ext/tk/lib/tkextlib/tile/tframe.rb new file mode 100644 index 0000000000..3b5f98bb6e --- /dev/null +++ b/trunk/ext/tk/lib/tkextlib/tile/tframe.rb @@ -0,0 +1,33 @@ +# +# tframe widget +# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) +# +require 'tk' +require 'tkextlib/tile.rb' + +module Tk + module Tile + class TFrame < Tk::Frame + end + Frame = TFrame + end +end + +Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Frame, :TkFrame) + + +class Tk::Tile::TFrame < Tk::Frame + include Tk::Tile::TileWidget + + if Tk::Tile::USE_TTK_NAMESPACE + TkCommandNames = ['::ttk::frame'.freeze].freeze + else + TkCommandNames = ['::tframe'.freeze].freeze + end + WidgetClassName = 'TFrame'.freeze + WidgetClassNames[WidgetClassName] = self + + def self.style(*args) + [self::WidgetClassName, *(args.map!{|a| _get_eval_string(a)})].join('.') + end +end -- cgit v1.2.3