Say I have a folder called "Family Photos" and I want to automatically run a python program if that folder is selected. How would I go about doing that? Would I just put the code in the folder and it runs automatically? Edit: I'm on Windows 10
Asked
Active
Viewed 58 times
0
-
2Which operating system? What application are you selecting the folder? This has nothing specifically to do with python. – AChampion Sep 13 '17 at 04:52
-
This questions is OS specific, you can always create a bot that check from time to time, if this folder is modified and automatically start when computer is started – zero Sep 13 '17 at 05:21
2 Answers
1
You can use tkinter in python.
- Tkinter is Python's de-facto standard GUI (Graphical User Interface) package. It is a thin object-oriented layer on top of Tcl/Tk.Tkinter is not the only GuiProgramming toolkit for Python. It is however the most commonly used one
- You can use other GuiProgramming toolkits as well. Follow this_link to know about other gui frameworks.
- For how part in Tkinter .Follow this_link

Amrit
- 2,115
- 1
- 21
- 41
-
Would you care to provide some code demonstrating how tkinter can achieve what is asked? I don't see how it can. – Paul Rooney Sep 13 '17 at 05:13
-
0
Some unix/linux systems are open source so you could modify the OS behavior to do that, i don't believe windows offer this feature, you probably should create an APP for that
The best solution would be a python scripts that run it self each hour and check if this folder is modified and do something if its, and it will run each time you turn on the computer once

zero
- 172
- 1
- 6