For Programmers: Free Programming Magazines  


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]

 

Author Entry
none

2005-03-14, 3:57 am

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.
Pit

2005-03-14, 8:57 am

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.
none

2005-03-14, 3:59 pm

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...
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com