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