mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b7a7c70c32
commit
18aad3084f
167 changed files with 11904 additions and 0 deletions
33
ext/tk/lib/tkextlib/tile/tcheckbutton.rb
Normal file
33
ext/tk/lib/tkextlib/tile/tcheckbutton.rb
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
#
|
||||
# tcheckbutton widget
|
||||
# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
|
||||
#
|
||||
require 'tk'
|
||||
|
||||
# call setup script for general 'tkextlib' libraries
|
||||
require 'tkextlib/setup.rb'
|
||||
|
||||
# call setup script -- <libdir>/tkextlib/tile.rb
|
||||
require(File.dirname(File.expand_path(__FILE__)) + '.rb')
|
||||
|
||||
class Tk::Tile::TCheckButton < TkCheckButton
|
||||
include Tk::Tile::TileWidget
|
||||
|
||||
TkCommandNames = ['tcheckbutton'.freeze].freeze
|
||||
WidgetClassName = 'TCheckbutton'.freeze
|
||||
WidgetClassNames[WidgetClassName] = self
|
||||
|
||||
def create_self(keys)
|
||||
if keys and keys != None
|
||||
tk_call_without_enc('tcheckbutton', @path, *hash_kv(keys, true))
|
||||
else
|
||||
tk_call_without_enc('tcheckbutton', @path)
|
||||
end
|
||||
end
|
||||
private :create_self
|
||||
end
|
||||
module Tk
|
||||
module Tile
|
||||
TCheckbutton = TCheckButton
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue