* ext/tk/lib/tk.rb: TkComm._at() supprts both of "@x,y" and "@x"
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4286469353
commit
ff814d4c37
@ -1,3 +1,7 @@
|
|||||||
|
Fri Nov 5 16:05:32 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||||
|
|
||||||
|
* ext/tk/lib/tk.rb: TkComm._at() supprts both of "@x,y" and "@x"
|
||||||
|
|
||||||
Fri Nov 5 13:22:58 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
Fri Nov 5 13:22:58 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||||
|
|
||||||
* ext/tk/lib/tk/text.rb: sorry. bug fix again.
|
* ext/tk/lib/tk/text.rb: sorry. bug fix again.
|
||||||
|
@ -179,8 +179,12 @@ module TkComm
|
|||||||
private :_genobj_for_tkwidget
|
private :_genobj_for_tkwidget
|
||||||
module_function :_genobj_for_tkwidget
|
module_function :_genobj_for_tkwidget
|
||||||
|
|
||||||
def _at(x,y)
|
def _at(x,y=nil)
|
||||||
"@#{Integer(x)},#{Integer(y)}"
|
if y
|
||||||
|
"@#{Integer(x)},#{Integer(y)}"
|
||||||
|
else
|
||||||
|
"@#{Integer(x)}"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
module_function :_at
|
module_function :_at
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user