Re: [PyQt] Compacting long file names or strings

2013-01-16 Thread Wolfgang Rohdewald
Am Mittwoch, 16. Januar 2013, 09:54:43 schrieb Timothy W. Grove: > Suppose I have a long file name such as "C:\Users\Public\Videos\Sample > Videos\Wildlife.wmv" that I want to display on a button but there isn't > enough room to display the entire name. I want to compact it down to, > say, "C:\U

[PyQt] Compacting long file names or strings

2013-01-16 Thread Timothy W. Grove
Suppose I have a long file name such as "C:\Users\Public\Videos\Sample Videos\Wildlife.wmv" that I want to display on a button but there isn't enough room to display the entire name. I want to compact it down to, say, "C:\Users\...\Wildlife.wmv". I'm pretty sure that I've seen a method somwhere