2005-03-05 07:35:41 +00:00
|
|
|
#
|
|
|
|
# tseparator widget
|
|
|
|
# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
|
|
|
|
#
|
|
|
|
require 'tk'
|
|
|
|
require 'tkextlib/tile.rb'
|
|
|
|
|
|
|
|
module Tk
|
|
|
|
module Tile
|
|
|
|
class TSeparator < TkWindow
|
|
|
|
end
|
2005-08-04 04:48:13 +00:00
|
|
|
Separator = TSeparator
|
2005-03-05 07:35:41 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Tk::Tile::TSeparator < TkWindow
|
|
|
|
include Tk::Tile::TileWidget
|
|
|
|
|
|
|
|
if Tk::Tile::USE_TTK_NAMESPACE
|
|
|
|
TkCommandNames = ['::ttk::separator'.freeze].freeze
|
|
|
|
else
|
|
|
|
TkCommandNames = ['::tseparator'.freeze].freeze
|
|
|
|
end
|
|
|
|
WidgetClassName = 'TSeparator'.freeze
|
2009-07-12 23:08:32 +00:00
|
|
|
WidgetClassNames[WidgetClassName] ||= self
|
2005-04-09 09:27:54 +00:00
|
|
|
|
|
|
|
def self.style(*args)
|
|
|
|
[self::WidgetClassName, *(args.map!{|a| _get_eval_string(a)})].join('.')
|
|
|
|
end
|
2005-03-05 07:35:41 +00:00
|
|
|
end
|
2009-07-12 23:08:32 +00:00
|
|
|
|
|
|
|
#Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Separator, :TkSeparator)
|
|
|
|
Tk.__set_loaded_toplevel_aliases__('tkextlib/tile/tseparator.rb',
|
|
|
|
:Ttk, Tk::Tile::Separator, :TkSeparator)
|