|
Kelleytoons
|
Kelleytoons
Posted 6 Years Ago
|
|
Group: Forum Members
Last Active: Last Year
Posts: 9.2K,
Visits: 22.1K
|
I give up -- I'll just use the file dialog box built-in to RL's Python (not exactly what I had in mind but it will do for now).
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
|
|
Kelleytoons
|
Kelleytoons
Posted 6 Years Ago
|
|
Group: Forum Members
Last Active: Last Year
Posts: 9.2K,
Visits: 22.1K
|
No, that doesn't work (tried that as well earlier -- sorry, but I didn't outline all the things I tried which didn't work). For one thing, you have to import that dialog function from *somewhere* (you'll get an error if you just import tkFileDialog So you could try: from tkinter import * or from tkinter import tkFileDialog but the second is redundant (and doesn't work anyway). Someone MUST have done this already, right?
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
|
|
videodv
|
videodv
Posted 6 Years Ago
|
|
Group: Forum Members
Last Active: 2 Years Ago
Posts: 342,
Visits: 12.0K
|
Kelleytoons (6/13/2019)
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). Hi Mike I think you just need to add import tkFileDialog Chris.
|
|
Kelleytoons
|
Kelleytoons
Posted 6 Years Ago
|
|
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
|