Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #100508

Re: Tk alternative to askopenfilename and askdirectory?

From Dennis Lee Bieber <wlfraed@ix.netcom.com>
Newsgroups comp.lang.python
Subject Re: Tk alternative to askopenfilename and askdirectory?
Date 2015-12-16 09:18 -0500
Organization IISS Elusive Unicorn
Message-ID <mailman.9.1450275483.30845.python-list@python.org> (permalink)
References <n4robu$9bs$1@news2.informatik.uni-stuttgart.de>

Show all headers | View raw


On Wed, 16 Dec 2015 13:18:54 +0000 (UTC), Ulli Horlacher
<framstag@rus.uni-stuttgart.de> declaimed the following:

>Is there an alternative to Tk's askopenfilename() and askdirectory()?
>
>I want to select a files and directories within one widget, but
>askopenfilename() let me only select files and askdirectory() let me only
>select directories.

	I've only seen one place that allows such -- and that is a full
windowing desktop environment, for use with cut/copy/paste operations...
And might be implemented behind the scenes by doing individual selects and
maintaining a list of the file system objects thus included. I've never
seen an application file/directory requester that allowed for a mix (anyone
remember the W3.x requester? Separate boxes for drive, directory, and file
within directory)

	askopenfilename()/askdirectory() are simple convenience functions meant
for use where one is not going to implement a full GUI application using
lower level widgets. Anything more complex should be done with full dialog
design -- say a two column "available -> selected" system, where single
clicking on name in the available column selects it and either some [->]
button or a double click moves it to the selected column... But how you
differentiate between a double click to select a directory vs a double
click to move into the directory is beyond me.


-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
    wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Tk alternative to askopenfilename and askdirectory? Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-12-16 13:18 +0000
  Re: Tk alternative to askopenfilename and askdirectory? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-12-16 09:18 -0500
  Re: Tk alternative to askopenfilename and askdirectory? Lorenzo Sutton <lorenzofsutton@gmail.com> - 2015-12-16 17:24 +0100
    Re: Tk alternative to askopenfilename and askdirectory? Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-12-16 17:08 +0000
  Re: Tk alternative to askopenfilename and askdirectory? Rick Johnson <rantingrickjohnson@gmail.com> - 2015-12-16 16:28 -0800
    Re: Tk alternative to askopenfilename and askdirectory? Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-12-17 14:14 +0000
  Re: Tk alternative to askopenfilename and askdirectory? Christian Gollwitzer <auriocus@gmx.de> - 2015-12-18 09:32 +0100
    Re: Tk alternative to askopenfilename and askdirectory? Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-12-18 09:27 +0000

csiph-web