ctkWidgetsTest.py 261 B

1234567891011121314
  1. from ctk import *
  2. from qt import QTimer
  3. w = ctkMatrixWidget()
  4. w.show()
  5. if not _ctkPythonConsoleInstance.isInteractive:
  6. #QTimer().singleShot(0, app(), SLOT('quit()'))
  7. t = QTimer()
  8. t.setInterval(250)
  9. t.connect('timeout()', app(), 'quit()')
  10. t.start()