Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

tk_getOpenFile

3 views
Skip to first unread message

shah

unread,
Oct 7, 2008, 2:44:22 AM10/7/08
to
hello,
i want to select muliple files from tk_getOpenFile widget.
i have 8.2 installed on my o.s.it doesn't support mutiple option for
tk_getOpenFile.
i hv tcl 8.3 in my o.s.
Is 8.3 support multiple option?
i have 8.2 in /usr/bin and libraries are in /usr/lib
but 8.3 in /usr/local/bin/.
if i use /usr/local/bin in my script as path so is it invoke options
and libraries of 8.3 ?

Cameron Laird

unread,
Oct 7, 2008, 4:26:43 AM10/7/08
to
In article <8015a9aa-d6ed-42fa...@b30g2000prf.googlegroups.com>,

YES, tk_getOpenFile's -multiple option appeared with 8.3.

I don't understand your question about options and libraries.

Cameron Laird

unread,
Oct 7, 2008, 3:40:31 PM10/7/08
to

Someone help Ms. Shah, please; I might not be around for a few
days. In private correspondence, she appears to be successfully
launching 8.3, but reports, "i have used tk_getOpenFile with
multiple true option.but it gives error like bad command." I
don't know what this means, so I hope someone can talk with her
about:
*) the feasibility of a move to a modern Wish;
*) how exactly she uses [tk_getOpenFile]; and
*) precisely what error wish8.3 gives.

[tk_getOpenFile] works just as *I* expect, and I believe that
applies to all 8.3.x releases.

thel...@gmail.com

unread,
Oct 9, 2008, 1:57:57 PM10/9/08
to
Shah,

Could you paste the exact error message you get. I recently fixed a
multiple selection error in tk_getOpenFile
in the 8.5 and 8.6 Tk versions. It's possible that same fix would
back port to 8.3

Please see Bug 1936220 in sourceforge to see if the issue is the same.


2008-08-25 Todd M. Helfter <t...@users.sourceforge.net>

* library/tkfbox.tcl: Fix the multiple selection error for
tk_getOpenFile -multiple 1 which fails on all unix platforms
since the
adoption of ttk widgets. [Bug 1936220]

David N. Welton

unread,
Oct 9, 2008, 5:10:40 PM10/9/08
to
> Please see Bug 1936220 in sourceforge to see if the issue is the same.
>
> 2008-08-25  Todd M. Helfter  <t...@users.sourceforge.net>
>
>         * library/tkfbox.tcl: Fix the multiple selection error for
>         tk_getOpenFile -multiple 1 which fails on all unix platforms
> since the
>         adoption of ttk widgets. [Bug 1936220]


Is that related at all to this?

https://sourceforge.net/tracker/?func=detail&aid=657656&group_id=12997&atid=112997

Can it be closed?

I filed the original bug 6 years ago, and the last update was from 3
years ago. Now I'm not only married (as per the comment in the
tracker:-) but have a daughter. Do we still have a bug?

Ian Gay

unread,
Oct 9, 2008, 8:47:31 PM10/9/08
to
David N. Welton wrote:

No, I think we have a misdesign in ttk. See the discussion in
http://wiki.tcl.tk/20050

Ian
--
*********** To reply by e-mail, make w single in address **************

Donald Arseneau

unread,
Oct 10, 2008, 6:14:02 AM10/10/08
to
On Oct 7, 12:40 pm, cla...@lairds.us (Cameron Laird) wrote:
> In article <33jrr5-icb....@lairds.us>, Cameron Laird <cla...@lairds.us> wrote:
> >In article <8015a9aa-d6ed-42fa-8f72-dd094613a...@b30g2000prf.googlegroups.com>,

> >shah <ittechgro...@gmail.com> wrote:
> >>i want to select muliple files from tk_getOpenFile widget.
> >>i have 8.2 installed on my o.s.it doesn't support mutiple option for
> >>tk_getOpenFile.
> >>i hv tcl 8.3 in my o.s.
> >>Is 8.3 support multiple option?

> >YES, tk_getOpenFile's -multiple option appeared with 8.3.

I just tried it on 8.3.3 and it is not recognized.

On versions where it is recognized, beware that it takes a boolean
argument: -multiple true or -multiple 1

> launching 8.3, but reports, "i have used tk_getOpenFile with
> multiple true option.but it gives error like bad command."

It (8.3.3) says it (-multiple) is an unrecognized option.

Donald Arseneau as...@triumf.ca

thel...@gmail.com

unread,
Oct 10, 2008, 10:51:23 AM10/10/08
to
On Oct 9, 5:10 pm, "David N. Welton" <davidnwel...@gmail.com> wrote:
> > Please see Bug 1936220 in sourceforge to see if the issue is the same.
>
> > 2008-08-25  Todd M. Helfter  <t...@users.sourceforge.net>
>
> >         * library/tkfbox.tcl: Fix the multiple selection error for
> >         tk_getOpenFile -multiple 1 which fails on all unix platforms
> > since the
> >         adoption of ttk widgets. [Bug 1936220]
>
> Is that related at all to this?
>
> https://sourceforge.net/tracker/?func=detail&aid=657656&group_id=1299...

>
> Can it be closed?
>
> I filed the original bug 6 years ago, and the last update was from 3
> years ago.  Now I'm not only married (as per the comment in the
> tracker:-) but have a daughter.  Do we still have a bug?


Well looking at your test code, this change has not yet been adopted.
Let me see if I can make your patch work in the current code base. I
think it's a good idea.

0 new messages