Questions tagged [filechooser]

A GUI component that allows to navigate over the file system, selecting files and folders of interest.

Usually file chooser is similar to the file explorer. It allows to navigate over the file system, selecting files and folders of interest or to specify yet non-existing files in the existing folder ("Save as").

File chooser can often be configured to show only set of selected file types, allow or disallow multiple selection and allow or disallow selection of folders rather than files.

This component is present in libraries of many languages.

472 questions
0
votes
1 answer

FileChooserDialog icons are broken in anaconda how to fix?

I am trying to make a GUI in Python for the first time and I chose to use gtk3+ through PyGObject. I'm working in Ubuntu 18.04 and I'm used to developing everything using Anaconda. I am just following the tutorial at…
abinitio
  • 96
  • 5
0
votes
1 answer

Cannot set a fileIntent for image files of type jpg, png and jpeg

I'm using the following code: Intent fileIntent = new Intent(Intent.ACTION_GET_CONTENT); fileIntent.setType("image/jpg|image/png|image/jpeg"); startActivityForResult(fileIntent, REQUEST_FILE); I believe that code should allow me to select any jpg,…
user2638180
  • 1,013
  • 16
  • 37
0
votes
1 answer

FileChooser in Controller class - SceneBuilder JavaFX

I'm trying to code the functionality of a button created using SceneBuilder. I found the "Code" section in Scene builder and set the name of the method that will launch when I click on the button (e.g. fileSelector). In the method I should use…
paw_rd
  • 47
  • 9
0
votes
1 answer

Using file.choose() to open installed package extdata files

I installed two external training data files with a package that I want the user to choose from using file.choose(). I can find them using system.file('extdata',package='myPackage'), but I want the user to easily open them through the chooser…
pdw
  • 338
  • 2
  • 8
0
votes
0 answers

Are there O.S specific APIs for calling file chooser dialog box in Windows, Linux and Mac?

I am looking for native file choosers dialog boxes for Windows, Linux, and Mac. I was using Java Swing file chooser and I am currently looking for Non-Java alternatives for the same. What should be the right way to deal with this situation? There…
Dave
  • 69
  • 1
  • 7
0
votes
0 answers

How to handle NullPointerException when user clicks cancel or 'X' on FileChooser box JavaFX

Oh Great Mages of StackOverflow, I'm running into a problem when using FileChooser in Java. This question has been asked before and I've done the reading but I'm still stuck. When the FileChooser dialogue window for saving a file opens and the user…
0
votes
0 answers

Python Kivy filechooser adding multiple files to a list

I'm fairly new to Python and also Kivy and it's been giving me a hard time with this issue. The filechooser is working, also can choose multiple files but it only adds the last chosen file to the list and not the rest. What am I doing wrong? Py…
user12497998
0
votes
0 answers

How to change labels and buttons style for all file but one label?

I am working with a FileChooser module in Kivy which is black by default. But for the rest of my app I used this to define Labels and Buttons style :
Antoine Berger
  • 85
  • 1
  • 10
0
votes
1 answer

java IO not serializable exception

I use javafx fxml files for my view I am trying to serialize some objects into a file by activating a method in my controller and passing a url by file chooser and passing one of my text feilds as the window required for file chooser: method in…
sam
  • 54
  • 10
0
votes
1 answer

How to get files from selected folder with GtkFileChooserButton?

I am making a GTK+3 App with GJS where users select a folder from a GtkFileChooserButton (action property set to select-folder). I want to find all image files in the given folder the user have selected, so I can display one of the images. I tried…
Bastian
  • 620
  • 5
  • 14
0
votes
2 answers

Open image chooser with camera option

How can I open an image chooser and show an option to take a picture as well? Here's my code: private void openFileChooser() { Intent intent = new Intent(); intent.setType("image/*"); intent.setAction(Intent.ACTION_GET_CONTENT); …
user8912201
0
votes
1 answer

Unit test for save method failing with error pointing at fc.showSaveDialog(null)

As per the title I have fc.showSaveDialog(null) and my unit test for the save method is failing and pointing at the line with that statement. I realize it is likely failing because I have it set to null rather than a stage but I would also like…
Julien Powell
  • 186
  • 1
  • 14
0
votes
1 answer

Change default path in kivy FileChooserIconView module

I want to change the default path location (to the desktop) of the FileChooserIconView kivy module. My attempt: main.py class LoadDialog(FloatLayout): load = ObjectProperty(None) cancel = ObjectProperty(None) def…
Ushuaia81
  • 495
  • 1
  • 6
  • 14
0
votes
1 answer

Why does filechooser.selection add an additional waypoint?

When reading from fileChooser.selection I get a nearly correct path to the choosen file, but with one additional folder in the path that does not exist. It seems like fileType is added after 'MY_GUI_KIVY'. What am I missing here? The code is part of…
Sandro
  • 25
  • 1
  • 7
0
votes
1 answer

JavaFX: FileChooser is blinking

It first appears in the left upper corner of the screen and then shows in the middle of the screen. It is code: private static File fileChooserDialog( final String initialDirectory, final String initialFileName, final boolean open, …