我一直在研究Tkinter,最近制作了一个小程序来监视文件夹并检查里面有多少文件。
我想创建按钮以打开Windows资源管理器中的文件夹,但我找不到任何相关信息。
有人有什么想法吗?
谢谢,Jon
感谢您的快速回复,我已经尝试了类似的东西,但可能做错了什么。这是我的代码:
def open():
os.system("explorer C:\\ folder dir")
label1 = Button(self, text="Pre TC", fg="red", font=("Ariel", 9, "bold"), command=open)
os.system('start C:/Users/')
是什么意思? - TigerhawkT3