Home > Archive > PerlTk > March 2005 > Entry
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]
|
|
|
| Hi,
I have this Entry which -textvariable is set by a getOpenFile.
The problem is that I have set the entry's width to 20 and the path is
too long. So, when my entry is set, instead of seeing:
/export/home/bob/france/maison/poulet/foie/gras/datas.txt
I can see:
/export/home/bob/fra
I don't wanna see everything, but I'd like to see instead the end of the
string which is:
/foie/gras/datas.txt
Thanks.
| |
|
| use the option -width
Pit
| |
| Marc Dashevsky 2005-03-14, 8:57 am |
| In article <42353178$0$31368$636a15ce@news.free.fr>, none <""xxx\"@(none)"> says...
> Hi,
>
> I have this Entry which -textvariable is set by a getOpenFile.
>
> The problem is that I have set the entry's width to 20 and the path is
> too long. So, when my entry is set, instead of seeing:
>
> /export/home/bob/france/maison/poulet/foie/gras/datas.txt
>
> I can see:
>
> /export/home/bob/fra
>
> I don't wanna see everything, but I'd like to see instead the end of the
> string which is:
>
> /foie/gras/datas.txt
$entry->xview('end');
Further description may be found in the Tk::Entry pod.
--
Go to http://MarcDashevsky.com to send me e-mail.
| |
|
| Marc Dashevsky wrote:
> In article <42353178$0$31368$636a15ce@news.free.fr>, none <""xxx\"@(none)"> says...
>
>
>
> $entry->xview('end');
>
> Further description may be found in the Tk::Entry pod.
>
Perfect, thanks...
|
|
|
|
|