Sha256: 3da72762a0f96ccd3843f9049dbe06b41927d630a6a4b44823bbe60738db4d99
Contents?: true
Size: 708 Bytes
Versions: 3
Compression:
Stored size: 708 Bytes
Contents
# # tbutton widget # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) # require 'tk' require 'tkextlib/tile.rb' module Tk module Tile class TButton < Tk::Button end Button = TButton end end Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Button, :TkButton) class Tk::Tile::TButton < Tk::Button include Tk::Tile::TileWidget if Tk::Tile::USE_TTK_NAMESPACE TkCommandNames = ['::ttk::button'.freeze].freeze else TkCommandNames = ['::tbutton'.freeze].freeze end WidgetClassName = 'TButton'.freeze WidgetClassNames[WidgetClassName] = self def self.style(*args) [self::WidgetClassName, *(args.map!{|a| _get_eval_string(a)})].join('.') end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tk_as_gem-0.1.0 | ext/lib/tkextlib/tile/tbutton.rb |
tk_as_gem-0.0.1 | ext/lib/tkextlib/tile/tbutton.rb |
tk_as_gem-0.0.0 | ext/lib/tkextlib/tile/tbutton.rb |