from PyQt4 import QtCore, QtGui
import os
import sys
# 菜单文件保存目录 点击事件
@QtCore.pyqtSlot()
def OnClickMenuSetFileSaveDir(self):
# print ("OnClickmenuSetFileSaveDir")
tmpDir = QtGui.QFileDialog.getExistingDirectory()
if(len(tmpDir) > 0):
self.SaveDir = tmpDir
print (self.SaveDir)
if not os.path.exists(self.SaveDir):
os.mkdir(self.SaveDir)
### ------------------------------------------------------------------------
import os
import sys
# 菜单文件保存目录 点击事件
@QtCore.pyqtSlot()
def OnClickMenuSetFileSaveDir(self):
# print ("OnClickmenuSetFileSaveDir")
tmpDir = QtGui.QFileDialog.getExistingDirectory()
if(len(tmpDir) > 0):
self.SaveDir = tmpDir
print (self.SaveDir)
if not os.path.exists(self.SaveDir):
os.mkdir(self.SaveDir)
### ------------------------------------------------------------------------