For Directory you want to use exec so you need to change your code like this
def showDirDialog(self): directory=os.path.expanduser('~') dirPath=QtGui.QFileDialog(self,"Select Render Directory",directory) dirPath.setFileMode(QtGui.QFileDialog.DirectoryOnly) if dirPath.exec_() == 1: fname_list = str(dirPath.selectedFiles()[0]) print fname_list For changing the statusBar text you need to implement focusIn and out Event and Justin already mention about that in reimplement QPlainText’s focusInEvent in another source file ,how to ? thread. On Fri, Dec 7, 2012 at 6:25 AM, san <niceguy...@gmail.com> wrote: > as a part of my learning PyQt4 I started making a gui(see attachment) > where I implement all the examples I learn from video tuts or book I am > referring, > > however I count figure out how should I implement the method to show text > message on the status bar when user hover mouse over a widget[link to pastebin > <http://pastebin.com/9gfYaWRV>] > > and secondly I dont understand how come this method to select Directory is > not working? > > def showDirDialog(self): > directory=os.path.expanduser('~') > dirPath=QtGui.QFileDialog(self,"Select Render Directory",directory > ) > dirPath.setFileMode(QtGui.QFileDialog.DirectoryOnly) > > -- > view archives: http://groups.google.com/group/python_inside_maya > change your subscription settings: > http://groups.google.com/group/python_inside_maya/subscribe > -- --:: Kurian ::-- -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe