Advertisement
Guest User

Untitled

a guest
Feb 17th, 2012
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. class Main(QtGui.QMainWindow, Ui_mainWindow):
  2.     def __init__(self):
  3.         QtGui.QMainWindow.__init__(self)
  4.         self.setupUi(self)
  5.         self.dirButton.clicked.connect(self.browse)
  6.     def browse(self):
  7.         dirName = QtGui.QFileDialog.getExistingDirectory(self, 'Select a Folder', '.')
  8.         directory = dirName
  9.         return directory
  10.     def upload(self):
  11.         print directory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement