Aug-04-2022, 06:41 AM
Hi,
In a win11 python 10.x environment, I can start the file explorer from within python like so:
Why?
The setup: inside python resides a tree and each extremity is a directory.
I want to click on a tree node, automatically navigate to the directory and manipulate it. (paste a pdf, click on a pdf, view a pic...etc)
If I do this inside tKinter, I cannot manipulate the directory.
Can this be done?
thx,
Paul
In a win11 python 10.x environment, I can start the file explorer from within python like so:
import os def show_explorer(path): os.startfile(path) show_explorer(os.path.abspath("c:/windows/explorer.exe"))Almost what I want. I would like it to open on a specific directory outside python.
Why?
The setup: inside python resides a tree and each extremity is a directory.
I want to click on a tree node, automatically navigate to the directory and manipulate it. (paste a pdf, click on a pdf, view a pic...etc)
If I do this inside tKinter, I cannot manipulate the directory.
Can this be done?
thx,
Paul
It is more important to do the right thing, than to do the thing right.(P.Drucker)
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.