question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

A FileSelector widget would be pretty useful

See original GitHub issue

Definitely 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:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
massenzcommented, May 19, 2020

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 😃

0reactions
fralaucommented, Mar 14, 2022

@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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found