summaryrefslogtreecommitdiffstats
path: root/ext/tk/lib
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-16 04:37:07 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-16 04:37:07 +0000
commit3dd711304c746babd348d2a3463413c066a6cb47 (patch)
tree590541df378a9c5b90a2b84f1ffcd85e86511942 /ext/tk/lib
parent0ab01176e0dca2146dbe37512e596665cf6add73 (diff)
downloadruby-3dd711304c746babd348d2a3463413c066a6cb47.tar.gz
ruby-3dd711304c746babd348d2a3463413c066a6cb47.tar.xz
ruby-3dd711304c746babd348d2a3463413c066a6cb47.zip
* ext/tk/lib/tk.rb: add Tk.getMultiple{Open|Save}File() which return
an Array of selected files. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib')
-rw-r--r--ext/tk/lib/tk.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb
index 8ac03f1a9..c02257bee 100644
--- a/ext/tk/lib/tk.rb
+++ b/ext/tk/lib/tk.rb
@@ -1534,10 +1534,16 @@ module TkCore
def getOpenFile(keys = nil)
tk_call('tk_getOpenFile', *hash_kv(keys))
end
+ def getMultipleOpenFile(keys = nil)
+ simplelist(tk_call('tk_getOpenFile', '-multiple', '1', *hash_kv(keys)))
+ end
def getSaveFile(keys = nil)
tk_call('tk_getSaveFile', *hash_kv(keys))
end
+ def getMultipleSaveFile(keys = nil)
+ simplelist(tk_call('tk_getSaveFile', '-multiple', '1', *hash_kv(keys)))
+ end
def chooseColor(keys = nil)
tk_call('tk_chooseColor', *hash_kv(keys))
@@ -4143,7 +4149,7 @@ end
#Tk.freeze
module Tk
- RELEASE_DATE = '2005-06-15'.freeze
+ RELEASE_DATE = '2005-06-16'.freeze
autoload :AUTO_PATH, 'tk/variable'
autoload :TCL_PACKAGE_PATH, 'tk/variable'