Python win32打开文件夹函数调用操作问题,pythonwin32,假如有一个TextCtr


假如有一个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:")

已搞定,ctypes里的system方法可以打开。

求问,具体怎么做的。求指导啊!!

编橙之家文章,

评论关闭