Re: Image viewing - a different approach
- From: ZB <zbREMOVE_THIS@xxxxxxxxxxxxxxxxxxxx>
- Date: 22 Jan 2008 17:49:54 GMT
Dnia 22.01.2008 Larry W. Virden <lvirden@xxxxxxxxx> napisał/a:
In other words, how could one write a simple Tcl script in which one
could simply say:
"display this image file"
and cause the appropriate command to be invoked on either windows or
linux to display the image file
If you have the name of several image displaying programs, you could
write some tcl code that attempted to locate the various programs, and
then, once found, use the tcl exec command to start it up.
I'm not sure, whether you see the difference.
Your proposal is something like: "just create a button, and associate
a command like { gqview $::imagename }". Yes, what could be simpler? But
then you've got to "manually" point, what program you want to use ("by
default", or during setup/configuration of the application).
And I'm looking for more general, and - at the same time - "automatic"
solution. If one could make such "shortcut", one can then rely just on the
OS's default file associations. Wouldn't it be smarter? And you don't care,
what kind of file it is: whether it is JPG-image, or PDF-doc, or just plain
TXT-file - all the needed viewers are launched by OS, where some
associations (hopefully) have been made already.
--
ZB
.
- Follow-Ups:
- Re: Image viewing - a different approach
- From: Glenn Jackman
- Re: Image viewing - a different approach
- References:
- Image viewing - a different approach
- From: ZB
- Re: Image viewing - a different approach
- From: Larry W. Virden
- Image viewing - a different approach
- Prev by Date: Re: TkDocs site update
- Next by Date: Re: Image viewing - a different approach
- Previous by thread: Re: Image viewing - a different approach
- Next by thread: Re: Image viewing - a different approach
- Index(es):