зеркало из https://github.com/github/ruby.git
* ext/tk/lib/tk/grid.rb: revive TkGrid.grid
* ext/tk/lib/tk/pack.rb: revive TkPack.pack * ext/tk/lib/tk/place.rb: revive TkPlace.place git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
c6655d7068
Коммит
8e292f6285
|
@ -1,3 +1,11 @@
|
|||
Fri Oct 1 11:25:20 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||
|
||||
* ext/tk/lib/tk/grid.rb: revive TkGrid.grid
|
||||
|
||||
* ext/tk/lib/tk/pack.rb: revive TkPack.pack
|
||||
|
||||
* ext/tk/lib/tk/place.rb: revive TkPlace.place
|
||||
|
||||
Thu Sep 30 00:50:44 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||
|
||||
* ext/tcltklib/tcltklib.c (ip_init): bug fix
|
||||
|
|
|
@ -44,6 +44,7 @@ module TkGrid
|
|||
}
|
||||
tk_call_without_enc("grid", 'configure', *params)
|
||||
end
|
||||
alias grid configure
|
||||
|
||||
def columnconfigure(master, index, args)
|
||||
# master = master.epath if master.kind_of?(TkObject)
|
||||
|
@ -181,7 +182,7 @@ module TkGrid
|
|||
|
||||
module_function :bbox, :forget, :propagate, :info
|
||||
module_function :remove, :size, :slaves, :location
|
||||
module_function :configure, :columnconfigure, :rowconfigure
|
||||
module_function :grid, :configure, :columnconfigure, :rowconfigure
|
||||
module_function :columnconfiginfo, :rowconfiginfo
|
||||
end
|
||||
=begin
|
||||
|
|
|
@ -29,6 +29,7 @@ module TkPack
|
|||
}
|
||||
tk_call_without_enc("pack", 'configure', *params)
|
||||
end
|
||||
alias pack configure
|
||||
|
||||
def forget(*args)
|
||||
return '' if args.size == 0
|
||||
|
@ -66,7 +67,7 @@ module TkPack
|
|||
list(tk_call_without_enc('pack', 'slaves', master))
|
||||
end
|
||||
|
||||
module_function :configure, :forget, :info, :propagate, :slaves
|
||||
module_function :pack, :configure, :forget, :info, :propagate, :slaves
|
||||
end
|
||||
=begin
|
||||
def TkPack(win, *args)
|
||||
|
|
|
@ -27,6 +27,7 @@ module TkPlace
|
|||
tk_call_without_enc('place', 'configure', win, "-#{slot}", value)
|
||||
end
|
||||
end
|
||||
alias place configure
|
||||
|
||||
def configinfo(win, slot = nil)
|
||||
# for >= Tk8.4a2 ?
|
||||
|
@ -106,7 +107,7 @@ module TkPlace
|
|||
list(tk_call('place', 'slaves', master))
|
||||
end
|
||||
|
||||
module_function :configure, :configinfo, :current_configinfo
|
||||
module_function :place, :configure, :configinfo, :current_configinfo
|
||||
module_function :forget, :info, :slaves
|
||||
end
|
||||
=begin
|
||||
|
|
Загрузка…
Ссылка в новой задаче