Questions tagged [filedialog]

Refers to both OpenFileDialog and SaveFileDialog in .NET WinForms.

This tag represents both the OpenFileDialog class and SafeFileDialog class from .NET. More information about them on MSDN here and here respectively.

358 questions
1
vote
3 answers

Using SaveFileDialog in C#/.NET producing "Instances of abstract class cannot be created" error

So I have been struggling to create a "Save" button in my .NET application. I seem to be doing everything correctly according to my research. I have been referring to this article as a main source:…
1
vote
1 answer

How to get askopenfilenames to loop over a user input?

I've just started learning Python and I'm trying to achieve this in tkinter: Get user to select any multiple number of files in any directory locations and store it in another folder I'm not sure if there's any other more efficient ways of doing…
Dave White
  • 31
  • 3
1
vote
1 answer

Tkinter filedialog clearing previous input

I just started programming with Python and I'm trying to create a GUI using tkinter where it would ask the user to select a zip file and file destination to send it to after extracting. What I have noticed is that when a user re-enters a…
Dave White
  • 31
  • 3
1
vote
1 answer

Python tkinter, tkinter.askdirectory() returns the initial default directory when user hits 'cancel' or X out, or Esc the window

No matter what I do, tkinter.filedialog.askdirectory() returns the initial default (current directory) when the Cancel button, or the X close button on the window, or if the user selects Esc. I tried coding the option for an initial directory to…
MJ_
  • 554
  • 1
  • 6
  • 10
1
vote
0 answers

How to get focus back to cmd or terminal after filedialog or tkinter widget

import tkinter as tk from tkinter import filedialog root=tk.Tk() root.withdraw() path = filedialog.askdirectory() test_str = input('Input for test: ') Environment is Windows - cmd. After filedialog, cmd doesn't get focus back to appopriate place…
berry2971
  • 19
  • 1
  • 6
1
vote
1 answer

Initial directory FileDialog SWT

I am currently working on an application and need to let the user to save a file. I need that when the user presses a button, the FileDialog to open at a specific location. I tried dialog.setFilterPath(), but it's not working all the time. I…
user0412
  • 33
  • 4
1
vote
0 answers

Save data in a CSV file with Python, there is a blank line between each row,

I want to save a 2D array data into a CSV file in Python. But there is always a blank line between each line. Also, I want to save each element in the array into an individual space instead of saving the whole row data into one space. Please help me…
Hualong Du
  • 11
  • 1
1
vote
1 answer

How to prevent IFileDialog from appending the wildcard pattern to the file type description?

On new Windows versions (it is so at least on Windows 7 but I have reasons to believe it happens on Vista to) IFileDialog (and thus IFileOpenDialog and IFileSaveDialog) automatically append the wildcard pattern to the file type description if they…
Adam Badura
  • 5,069
  • 1
  • 35
  • 70
1
vote
0 answers

For WinForms applications calling FileDialog on Win10, the context menu is empty when using NoneEnabled for Application.VisualStyleState

I have this issue with a WinForms project using forms with complex controls. With a certain degree of complexity (e.g. controls number), WinForms can become very slow, this I know. So to get reasonable display performance,…
Rotax
  • 77
  • 9
1
vote
1 answer

the filetypes property of FileDialog method has no file extension on windows10

About python tkinter.filedialog I tried to set the file extension type, but no matter what I did,asksaveasfilename does not return the file type ,that is why? It is a bug in tkinter? from tkinter import * from tkinter.filedialog import…
i am cat
  • 31
  • 4
1
vote
2 answers

MSAccess - Run-time error '438': Object doesn't support this property or method

I'm running into an error when I attempt to add filters to a FileDialog. I've tried to troubleshoot this with multiple posts / articles but nothing seems to have solved it. The online documentation identifies using .Filters.Add but it doesn't…
Bill Black
  • 21
  • 1
  • 4
1
vote
0 answers

Python imread() don't work correctly with variable strings

I want to make a program in python to manipulate an image. The problem is I want to get the image by user input on file dialog but when I use a variable string named file_path it does not read on cv2.imread() function. I suppose the problem is with…
user8599026
1
vote
4 answers

How to write data to a file in Hindi language?

I am trying to write data to a file in a non-roman script using python tkinter. I want to write data to a file in Hindi language which follows the Devanagari Script. While, it is working perfectly alright when I write some data in English, while…
Pratyush Karna
  • 179
  • 1
  • 2
  • 10
1
vote
1 answer

How to write to a file every next line?

I am working in python tkinter and I am trying to write a code for writing some contents to a file and saving it. I have used filedialog to do so. I wish to write the contents in every next line. While there are so errors in running the code, even…
1
vote
1 answer

Select multi file with FileDialog don't work

When the window dialog is open I cannot select more than one file. void setup() { size(100,100); select_multi_files_via_FileDialog(); } import java.awt.FileDialog; import java.awt.Frame; File [] select_multi_files; void…
Knupel
  • 323
  • 2
  • 14