2
这是我的关于显示QFileDialog的代码的一部分。
如何在pyQt中调整QFileDialog的大小?
expand='Image Files(*.mp3 *.wav)'
tips=u'choose the music file'
path = QtGui.QFileDialog.getOpenFileName(self, tips, QtGui.QDesktopServices.storageLocation(QtGui.QDesktopServices.MusicLocation), expand)
然后它可以显示窗口选择文件。
但它的大小对我来说太大了。
我想设置的尺寸是320 * 240。
但是我不知道该怎么做。
希望有人能解决这个问题。
http://stackoverflow.com/questions/25890938/pyside-qfiledialog-window-size – HabibKazemi