Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using file picker instead of text field #25

Closed
SylvainDe opened this issue Aug 27, 2014 · 6 comments
Closed

Using file picker instead of text field #25

SylvainDe opened this issue Aug 27, 2014 · 6 comments

Comments

@SylvainDe
Copy link

It could be interesting to have the choice to use filer picker instead of text field.

I have started to work on such a change but I haven't got time to make this perfect and shiny.

Here is what I have done so far

https://gist.github.com/SylvainDe/0d4e7eec2ca223e1cf02

@blackrosezy
Copy link

+1

@RandyHandy
Copy link

It will be a great idea in my opinion. But perhaps keep both options text field and filer picker, but perhaps is too much.

@chriskiehl
Copy link
Owner

@RandyHandy Keeping both is actually a pretty good idea. Tricky, but good. A file picker alone wouldn't convey much information, so I'll be nice to also have a place to display what the user chooses. This would also allow the possibility of your drag and drop idea (issue #28).

Kind of a standard setup, like:

+--------------------------------------------------+
|                                                  |
|    +----------------------------+  +--------+    |
|    | C:/some_dir/my_file.txt    |  | Browse |    |
|    +----------------------------+  +--------+    |
|                                                  |
|                                                  |
|                                                  |
+--------------------------------------------------+

@Nodd
Copy link

Nodd commented Sep 4, 2014

You could do this automatically in some cases, if the types of the entries are from pathlib or path.py.

@dusans
Copy link

dusans commented Sep 4, 2014

maybe metavar would be the place to set this?

parser.add_argument("-i", dest="filename", required=True,
    help="input file with two matrices", metavar="FILE")

@chriskiehl
Copy link
Owner

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants