ctkSimplePythonShellMain.cpp 392 B

1234567891011121314151617181920212223
  1. // Qt includes
  2. #include <QApplication>
  3. // CTK includes
  4. #include <ctkPythonShell.h>
  5. #include "ctkSimplePythonManager.h"
  6. int main(int argc, char** argv)
  7. {
  8. QApplication app(argc, argv);
  9. ctkSimplePythonManager pythonManager;
  10. ctkPythonShell shell(&pythonManager);
  11. shell.setAttribute(Qt::WA_QuitOnClose, false);
  12. shell.resize(600, 280);
  13. shell.show();
  14. return app.exec();
  15. }