Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #100508
| Path | csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: Tk alternative to askopenfilename and askdirectory? |
| Date | Wed, 16 Dec 2015 09:18:01 -0500 |
| Organization | IISS Elusive Unicorn |
| Lines | 31 |
| Message-ID | <mailman.9.1450275483.30845.python-list@python.org> (permalink) |
| References | <n4robu$9bs$1@news2.informatik.uni-stuttgart.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.uni-berlin.de 9bagZWmP8rZ9eapbJE1Axg6kvc2D+ha35KxFweFfc6Wg== |
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.014 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'column': 0.07; 'directory)': 0.09; 'message-id:@4ax.com': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:skip:a 10': 0.09; 'wed,': 0.15; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'selects': 0.16; 'subject:alternative': 0.16; 'subject:askdirectory': 0.16; "tk's": 0.16; 'url:home': 0.18; 'gui': 0.18; '2015': 0.20; 'meant': 0.22; 'select': 0.23; 'dec': 0.23; 'implemented': 0.24; 'thus': 0.24; "i've": 0.25; 'header:X -Complaints-To:1': 0.26; '+0000': 0.27; 'separate': 0.27; 'convenience': 0.29; 'dialog': 0.29; 'objects': 0.29; 'allows': 0.30; 'system,': 0.30; 'implement': 0.32; 'directory,': 0.33; 'environment,': 0.33; 'maintaining': 0.34; 'file': 0.34; 'list': 0.34; 'behind': 0.35; 'done': 0.35; 'mix': 0.35; 'skip:> 10': 0.35; 'level': 0.35; 'but': 0.36; 'should': 0.36; 'there': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'two': 0.37; 'say': 0.37; 'received:org': 0.37; 'beyond': 0.37; 'charset:us-ascii': 0.37; 'doing': 0.38; 'button': 0.38; 'anything': 0.38; 'files': 0.38; 'application': 0.39; 'to:addr:python.org': 0.40; 'where': 0.40; 'some': 0.40; 'more': 0.63; 'within': 0.64; 'between': 0.65; 'drive,': 0.66; 'clicking': 0.75; 'click': 0.76; '(utc),': 0.84; 'moves': 0.84; 'windowing': 0.84; 'dennis': 0.91; 'scenes': 0.91; 'received:108': 0.93 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| X-Gmane-NNTP-Posting-Host | adsl-108-79-218-140.dsl.klmzmi.sbcglobal.net |
| X-Newsreader | Forte Agent 6.00/32.1186 |
| X-No-Archive | YES |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Xref | csiph.com comp.lang.python:100508 |
Show key headers only | 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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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