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