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
0
votes
1 answer

save function not popping the window in python 3.8.5 and also not showing any error, what's the problem?

I want to know what is wrong in the code my python version is 3.8.5 ..........I want the savefile option in my notepad text_url = " " def save_file(event = None): global text_url try: if text_url: content…
satyam jha
  • 23
  • 6
0
votes
1 answer

Revered Order When Open a File in the Editor

So I'm making a simple text editor with Python Tkinter. On the top side there's 2 buttons: "save" and "open".(they show open/save as dialogue windows). It's alright with the save button, but when i want to open a file in my editor it displays with…
user13810842
0
votes
0 answers

To save a .xml spreadsheet in a distinct folder of a Local Drive

While pressing SAVE AS button a new dialogue box will open to key in the file name and the local drive to save it or preferably the spreadsheet should save directly in the specified folder of the local drive. The code that I have written as stated…
0
votes
0 answers

I want to disable the cancel button in CFiledialog

I want to disable the cancel button in CFiledialog. How can I do it? Is there any way other than creating a new one using Cdialog?
ds kim
  • 1
0
votes
1 answer

How to open a file using "filedialog.askopenfile" with "utf-8' encoding. I am able to open the file but it is opening with different encoding

When I usually open files I use open syntax where it gives me option of opening with a specific encoding, for eg. f = open('L2G8970_PSA_PVS_SmokeTest_Report_Trial.xml', encoding="utf8") But when I am trying with tkinter's filedialog.askopenfile()…
0
votes
0 answers

Mistake with FileDialog in Access

In access I have implemented a routine that allows the user to choose an image file in a subfolder of the application folder. The routine was achieved as follows: Public Function FotoOpen(DirStart As String, SubDir As String) As String ' Questa…
Antony
  • 83
  • 11
0
votes
1 answer

How to use file imported from tkinter in rest of Python code

I'm trying to import a file from a tkinter GUI to be used in the rest of my code. import numpy as np import tkinter as tk from tkinter import filedialog def FileImport(): file = filedialog.askopenfilename() label = tk.Label(root, text =…
Meow
  • 25
  • 4
0
votes
1 answer

Tkinter ask filedialog : avoid internet link

In my program, I use the ask filedialog function to allow the user to import some personal pieces of music, but I accept only .wav format. So I use " filetypes=(('".wav"'+" format only","*.wav"),)) " to allow only files with the extension .wav,…
user13044576
0
votes
0 answers

Tkinter listbox populated with filename of unkown file imported from a browse button?

I am trying to get a Tkinter listbox to populate with an unknown filename that a user imports with a browse button. I am able to populate the listbox with "File has been uploaded" everytime a file is selected, although I want the filename(or path)…
tturgeon
  • 1
  • 1
0
votes
1 answer

How to add an existing item via code in wpf

I am attempting to copy a selected image to a folder and then want to display it with an Image object. The copying works fine, but when I want to display it it seems like the program cannot find it. Displaying the image only works if I manually use…
0
votes
1 answer

FileDialog object, unfiltered file types selectable

The FileDialog shows only the file types given in the filter. That's right. But if something is entered in the File Name field, then all file types will be displayed: Now every file type can be selected AND opened. Thats not good. Is there a…
R L
  • 55
  • 8
0
votes
0 answers

How to call a method of a COM interface if you have the IntPtr?

In Windows, I want to grab a FileOpenDialog that already exists in another process, as a child of another application and force it to navigate to a specific folder. I have hope that COM interop can help accomplish this. As I'm doing some research,…
MatX
  • 108
  • 1
  • 6
0
votes
0 answers

Oracle JRE 1.8.201 Open FileDialog on Windows 10 Citrix "The element "hcmd.exe" to which the link refers has been changed or moved"

Some days ago we noticed that when opening a FileDialog under Citrix Windows in Java Swing the following message appears a few times. We use since Java 1.8.201, I tried it with the last 1.8 JRE, same problem. The following message appears: The…
javase1999
  • 19
  • 4
0
votes
1 answer

tkinter - open file with button and save filename to variable

I am trying to solve a problem that seems simple, but I cannot figure out how. I want to create a simple program checking if a certain symbol exists in a text file: The program starts; The user clicks a button (inside the window, not in the…
0
votes
3 answers

how to open file with specific extension in fileDialogue

I am trying to Open a file with specific extension ( .fcg or .wtg ) using file Dialog is there a way to do it ??
Dawnlight
  • 179
  • 1
  • 2
  • 11