C:\Users\Nya~cronus\Desktop\pywinauto\demo\.venv\Scripts\python.exe D:\TRAINmeter\rainmeter2.py
Traceback (most recent call last):
File "D:\TRAINmeter\rainmeter2.py", line 12, in <module>
file_path = select_file()
^^^^^^^^^^^^^
File "D:\TRAINmeter\rainmeter2.py", line 6, in select_file
return filedialog.askopenfilename(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Nya~cronus\AppData\Local\Programs\Python\Python312\Lib\tkinter\filedialog.py", line 384, in askopenfilename
return Open(**options).show()
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Nya~cronus\AppData\Local\Programs\Python\Python312\Lib\tkinter\commondialog.py", line 45, in show
s = master.tk.call(self.command, *master._options(self.options))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_tkinter.TclError: bad file type "*.exe", should be "typeName {extension ?extensions ...?} ?{macType ?macTypes ...?}?"
Process finished with exit code 1
Если удалить "*.exe" из filetypes=(("Executable files", "*.exe"))
то ошибка уходит, но не дает выбрать .exe файл
Если удалить "*.exe" из
filetypes=(("Executable files", "*.exe"))
то ошибка уходит, но не дает выбрать .exe файл