Home > Archive > PerlTk > April 2004 > Does "-initialdir" option in Tk::getOpenFile work?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Does "-initialdir" option in Tk::getOpenFile work?
|
|
| Shahriar 2004-04-18, 2:30 am |
| Hi All,
I have a widget that uses Tk::getOpenFile, every time I call this method, It
seem to have a memory of
the last directory is accessed. On the next call, it will start from its own
memory and ignores the "-initialdir"
setting. The only time "-initialdir" works is the very first time the method
is called. I am runing Activestate perl 5.8
on Win 2K pro.
Is this a known problem (In the pod MAC OS is mentioned having this type of
problem but WIN OS
is not mentioned).
Thanks,
-shahriar
| |
| Chris Whiting 2004-04-18, 9:39 pm |
| This was a problem in the beta versions of Tk804 (on Windows only) but it
was corrected in the final version. What version of Tk of you using?
"Shahriar" <shahriar_mokhtarzad@pacbell.net> wrote in message
news:57ogc.23747$AA4.15767@newssvr27.news.prodigy.com...
> Hi All,
>
> I have a widget that uses Tk::getOpenFile, every time I call this method,
It
> seem to have a memory of
> the last directory is accessed. On the next call, it will start from its
own
> memory and ignores the "-initialdir"
> setting. The only time "-initialdir" works is the very first time the
method
> is called. I am runing Activestate perl 5.8
> on Win 2K pro.
>
> Is this a known problem (In the pod MAC OS is mentioned having this type
of
> problem but WIN OS
> is not mentioned).
>
> Thanks,
>
> -shahriar
>
>
| |
| Shahriar 2004-04-18, 10:36 pm |
| Hi Chris,
I am using Activestate perl. They do not advertise the Tk version explicitly
but here is the perl that is installed on my machine. What id the minimum Tk
vesion that I need to use to aviod this problem.
=========================
This is perl, v5.8.0 built for MSWin32-x86-multi-thread
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2002, Larry Wall
Binary build 806 provided by ActiveState Corp. http://www.ActiveState.com
Built 00:45:44 Mar 31 2003
=========================
Thanks,
-shahriar
"Chris Whiting" <bh@riverslime.com> wrote in message
news:40831c20_2@news.athenanews.com...
> This was a problem in the beta versions of Tk804 (on Windows only) but it
> was corrected in the final version. What version of Tk of you using?
>
>
> "Shahriar" <shahriar_mokhtarzad@pacbell.net> wrote in message
> news:57ogc.23747$AA4.15767@newssvr27.news.prodigy.com...
method,[color=darkred]
> It
> own
> method
> of
>
>
| |
| Chris Whiting 2004-04-20, 4:34 pm |
| You can use:
print "$Tk::Version\n";
to find out the Tk version.
However, I do not think that AP 809 has Tk804 yet.
the -initialdir worked for me on Tk800 versions. But I believe that the
slashes must be in a particular direction (backslash, I think). Also, it
may be sensitive to the final slash being there (or not, can't remember).
If this doesn't work then post a small sample.
Chris
"Shahriar" <shahriar_mokhtarzad@pacbell.net> wrote in message
news:oMFgc.24080$TS5.13813@newssvr27.news.prodigy.com...
> Hi Chris,
>
> I am using Activestate perl. They do not advertise the Tk version
explicitly
> but here is the perl that is installed on my machine. What id the minimum
Tk
> vesion that I need to use to aviod this problem.
> =========================
> This is perl, v5.8.0 built for MSWin32-x86-multi-thread
> (with 1 registered patch, see perl -V for more detail)
>
> Copyright 1987-2002, Larry Wall
>
> Binary build 806 provided by ActiveState Corp. http://www.ActiveState.com
> Built 00:45:44 Mar 31 2003
> =========================
>
> Thanks,
>
> -shahriar
>
>
> "Chris Whiting" <bh@riverslime.com> wrote in message
> news:40831c20_2@news.athenanews.com...
it[color=darkred]
> method,
its[color=darkred]
type[color=darkred]
>
>
|
|
|
|
|