| Trees | Indices | Help |
|
|---|
|
|
object --+
|
sip.simplewrapper --+
|
sip.wrapper --+
|
PyQt4.QtCore.QObject --+
|
object --+ |
| |
sip.simplewrapper --+ |
| |
PyQt4.QtGui.QPaintDevice --+
|
PyQt4.QtGui.QWidget --+
|
PyQt4.QtGui.QDialog --+
|
PyQt4.QtGui.QFileDialog --+
|
Qt.QtWidgets.QFileDialog --+
|
object --+ |
| |
CustomSideBarMixin --+
|
OpenDirAsFileDialog --+
|
ProjectOpenDialog
A file dialog tailored to opening Projects.
Differences from a typical Open File Dialog:
The dialog should first be created, then the getFilename method called. ie:
dialog = ProjectOpenDialog()
project_path = dialog.getFilename()
if project_path:
Do stuff
Because QFileDialogs normally cannot handle accepting either a directory OR a file, this uses a few tricks noted throughout the code to make the process of selecting either a project directory or a zip file invisible to the user.
|
|||
|
Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
|||
Create a ProjectOpenDialog instance
|
Set a callable function that takes a path as input and returns True if that path is one of the "special" directories/files that this dialog treats as a "file".
|
Sets the IconProvider to a custom class that provides project icons
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Wed Jan 25 01:18:13 2017 | http://epydoc.sourceforge.net |