# Tk Multiselect File Open Dialog?

**URL:** <https://rubytalk.org/t/tk-multiselect-file-open-dialog/1500>\
**Category:** ruby-talk\
**Created:** [31 August 2002 04:56 UTC](https://rubytalk.org/t/tk-multiselect-file-open-dialog/1500 "2002-08-31T04:56:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Meihua\_Liang](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Meihua\_Liang](https://rubytalk.org/u/Meihua_Liang)\
**Post date:** [31 August 2002 04:56 UTC](https://rubytalk.org/t/tk-multiselect-file-open-dialog/1500/1 "2002-08-31T04:56:36Z")

</div>

I need a file open dialog with a muliselect option within ruby-TclTk .  
Oddly enought this is supposedly available for the versions of tcltk \>8.3  
(in straight tcltk) but I can’t seem to get it to work within Ruby. Any  
suggestions or is this impossible within the current implementation?

Ideally a variant of Tk.getOpenFile with a -multiple option would be great  
(but doesn’t seem to exist)

thanks  
s

---

<div class="post-metadata">

**Author:** ![Hidetoshi\_NAGAI](https://avatars.discourse-cdn.com/v4/letter/h/49beb7/32.png) [@Hidetoshi\_NAGAI](https://rubytalk.org/u/Hidetoshi_NAGAI)\
**Post date:** [2 September 2002 07:59 UTC](https://rubytalk.org/t/tk-multiselect-file-open-dialog/1500/2 "2002-09-02T07:59:33Z")

</div>

Hi,

> **···**
>
> From: “SLegrand” [mliang@cox.net](mailto:mliang@cox.net)  
> Subject: Tk Multiselect File Open Dialog?  
> Date: Sat, 31 Aug 2002 13:56:36 +0900  
> Message-ID: [eSXb9.39240$082.2335149@news1.east.cox.net](mailto:eSXb9.39240$082.2335149@news1.east.cox.net)
> 
> > Ideally a variant of Tk.getOpenFile with a -multiple option would be great  
> > (but doesn’t seem to exist)
> 
> ## Although I don’t use the newest version of Tcl/Tk, does Tk.getOpenFile(‘multiple’=\>true) work? Of cource, your Ruby/Tk must be compiled with a new version of Tcl/Tk which supports -multiple option for tk\_getOpenFile.
> 
> ```
> Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
> 
> ```
