/*! \file examples/NicePyConsole/main.cpp * \brief shows how to create a small nice python console * \author "Melven Zoellner" * */ // Qt-includes #include // PythonQt-includes #include #include // includes #include "NicePyConsole.h" // the main function int main(int argc, char **argv) { // create the Qt-application-object QApplication qapp(argc, argv); // initialize PythonQt PythonQt::init(PythonQt::IgnoreSiteModule | PythonQt::RedirectStdOut); PythonQt_QtAll::init(); // get the python-context and create the console widget PythonQtObjectPtr mainContext = PythonQt::self()->getMainModule(); NicePyConsole console(NULL, mainContext); // just show the console... console.show(); return qapp.exec(); }