54 PyApp (
char * script );
PyApp()
The default Constructor.
void quit()
Terminates the application.
HdThread * m_thread
The thread in which to run the GUI.
static void unlock()
Releases the lock on the application's mutex.
int exec()
Starts the QApplication event loop.
static bool locked()
returns true if the Application mutex is locked by different thread.
void openDocument(const std::string &filename)
Opens a new document from file filename.
PyCanvas * currentCanvas()
Returns a pointer to the current CanvasWindow.
static QtApp * s_app
The QApplication object.
A derived class of QThread that runs the QApplication object.
This class is the public interface the what the user sees as the canvas object from Python...
static PyApp * s_instance
The instance of the application.
static void lock()
Obtains a lock on the application's mutex.
A derived class of QApplication that instantiates the components of HippoDraw.
void quitOnLastWindowClose(bool yes)
If yes is true, allows the application to quit when the last CanvasWindow is closed by the user...
A class to interface Python to application running in separate thread.
static bool hasPendingEvents()
Returns true if the application object has pending events.
static PyApp * instance()
Returns the application instance.
bool hasTerminated() const
Returns true if the application as terminated, otherwise returns false.