def onOutputFile( self ):
caption = "Python file"
mask = "*.py"
- fname, filt = QFileDialog.getSaveFileName( self, caption, ".", mask )
+ theDir="."
+ fname, filt = QFileDialog.getSaveFileName( self, caption, theDir, mask )
+ #print("fname: %s"%fname)
if fname!=None and fname!="":
- if string.split(fname, '.')[-1] != 'py':
+ if fname.split('.')[-1] != 'py':
fname += '.py'
self.OutputPath.setText( fname )
mask = "*.py"
fname, filt = QFileDialog.getSaveFileName( self, caption, ".", mask )
if fname!=None and fname!="":
- if string.split(fname, '.')[-1] != 'py':
+ if fname.split('.')[-1] != 'py':
fname += '.py'
self.OutputPath.setText( fname )