Profile Picture

File Dialog?

Posted By Kelleytoons 6 Years Ago
You don't have permission to rate!
Author
Message
Kelleytoons
Kelleytoons
Posted 6 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)

Group: Forum Members
Last Active: Last Year
Posts: 9.2K, Visits: 22.1K
So I'm just now getting back to programming (sigh -- and my brain is fried) and for the life of me I can't get a simple file dialog box to work as it works in Blender.  Anyone had any luck?

It shouldn't be rocket science:
import tkinter as tk
from tkinter import filedialog
file_path = tkinter.filedialog.askopenfilename()
file_path = filedialog.askopenfilename()

(neither works although they both work in Blender).




Alienware Aurora R16, Win 11, i9-149000KF, 3.20GHz CPU, 64GB RAM, RTX 4090 (24GB), Samsung 870 Pro 8TB, Gen3 MVNe M-2 SSD, 4TBx2, 39" Alienware Widescreen Monitor
Mike "ex-genius" Kelley

Threaded View

Threaded View
Forum Post File Dialog? By Kelleytoons ( 6 Years Ago )
Forum Post [quote][b]Kelleytoons (6/13/2019)[/b][hr]So I'm just now getting back... By videodv ( 6 Years Ago )
Forum Post No, that doesn't work (tried that as well earlier -- sorry, but I... By Kelleytoons ( 6 Years Ago )
Forum Post I give up -- I'll just use the file dialog box built-in to RL's Python... By Kelleytoons ( 6 Years Ago )
Forum Post So, unfortunately, the RL file open dialog doesn't have what I really... By Kelleytoons ( 6 Years Ago )
Forum Post Hi Mike I got this piece of code snippets that run from python not... By videodv ( 6 Years Ago )
Forum Post [quote][b]videodv (6/13/2019)[/b][hr]Hi Mike I got this piece of code... By Kelleytoons ( 6 Years Ago )
Forum Post Hi Mike Maybe this Link may point you in the right direction.... By videodv ( 6 Years Ago )
Forum Post Hi Mike From the link above I had a tinkle with the code import... By videodv ( 6 Years Ago )
Forum Post Thanks, Chris, for all your effort in this -- it's too late here for... By Kelleytoons ( 6 Years Ago )
Forum Post You can alos use the built in dialogs in PySide2. All you need is some... By The-any-Key ( 6 Years Ago )
Forum Post Any, I'm not trying to either save or load files -- just get the file... By Kelleytoons ( 6 Years Ago )
Forum Post [quote][b]Kelleytoons (6/15/2019)[/b][hr]Any, I'm not trying to... By The-any-Key ( 6 Years Ago )
Forum Post Sorry, Any -- after my surgery the drugs I'm taking are clouding my... By Kelleytoons ( 6 Years Ago )
Forum Post I may have to wait until the drugs wear off. I can get it to work...... By Kelleytoons ( 6 Years Ago )
Forum Post Okay, so thanks for all the help, Chris and Any. I think I have it... By Kelleytoons ( 6 Years Ago )
Forum Post Hi Mike The filename returned if you look at the example is fname... By videodv ( 6 Years Ago )
Forum Post [quote][b]videodv (6/13/2019)[/b][hr]Hi Mike From the link above I... By Kelleytoons ( 6 Years Ago )
Forum Post Tested to set a default folder and I can't seem to get it to work. You... By The-any-Key ( 6 Years Ago )
Forum Post This is what I did: def get_load_filename_dialog(title, filter,... By Kelleytoons ( 6 Years Ago )
Forum Post [quote][b]Kelleytoons (6/15/2019)[/b][hr]This is what I did: def... By The-any-Key ( 6 Years Ago )
Forum Post The filter seems to work just fine, as does the rest, so I'm not sure... By Kelleytoons ( 6 Years Ago )
Forum Post Ah, okay, got multiple files returned. Even as doped up as I am, I... By Kelleytoons ( 6 Years Ago )
Forum Post Thanks for the File Dialog question and solutions. I was looking for... By animagic ( 6 Years Ago )



Reading This Topic