假如有一个TextCtrl一个Button。
希望点击Button后,就以TextCtrl里GetValue的值作为目录打开一个文件夹,就像平时从我的电脑里进去文件夹一样,请问怎么实现?
如果wxpython或者python没有直接打开文件夹的函数,那win32打开文件夹的函数该怎么在python里调用呢?
假如有一个TextCtrl一个Button。
希望点击Button后,就以TextCtrl里GetValue的值作为目录打开一个文件夹,就像平时从我的电脑里进去文件夹一样,请问怎么实现?
如果wxpython或者python没有直接打开文件夹的函数,那win32打开文件夹的函数该怎么在python里调用呢?
试试
import subprocess;subprocess.call(["explorer","c:"])
import os;os.system("explorer c:")
import os;os.system("start explorer c:")
4 回答970 阅读
1 回答714 阅读
1 回答695 阅读
1 回答522 阅读
643 阅读
586 阅读
568 阅读
已搞定,ctypes里的system方法可以打开。