A FileSelector widget would be pretty useful
See original GitHub issueDefinitely not a bug, and maybe I’m missing it (I’m pretty new to Toga) but looking through the Reference docs, there does not appear to be a FileSelector
(or whatever) widget: the one that pops up when opening or saving “as” a file.
That seems a pretty basic and useful feature (of course, one could do with a text-box and Load
or Save
button, but that’s positively 1980’s): any chance it could be provided? Does it already exist and it is just not mentioned in the docs?
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
FileSelector — Panel v0.14.2
The FileSelector widget allows browsing the filesystem on the server and selecting one or more files in a directory. For more information about...
Read more >Fileselector - A Widget Cookbook
The hush library offers excellent support for extending Tcl/Tk with new, user-defined widgets. This article will explain how to define a new, composite...
Read more >Tools and Widget Libraries - The Linux Documentation Project
The kit provides some useful widgets, which can be used in your programs directly. It's pretty well written and the documentation is very...
Read more >Tutorial · Interact - GitHub Pages
To add some behavior to the widget we can use the on construct. on takes two ... Tip: anonymous function are very useful...
Read more >Image File Selector — NPAC Computing Course
How to construct a new widget, missing to the Pyplot library ? A useful facility to interactively select a file from a given...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Having given your question a bit more thought, it’s fair to say that the How-To section is on the slim side, so maybe a “guided app” how-to would be nice: essentially, the full app cycle, from the user opening a file, to doing something with it, to saving it would be useful.
As this is exactly what I’ll be doing for my encryption app I may be convinced at some point to write up my journey 😃
@freakboy3742 Oh good… Interesting that they are attached to the Window object (philosophically this could perhaps be the right decision?). I had remained on the comment of 2020, that it wasn’t documented; but this was obviously done in the mean time.
I guess that if one wanted to write a ready-made widget that included a label, a text entry field, and a button that opens a file dialog, what would not be too difficult to do?