Skip to content
Snippets Groups Projects
Commit 926cc443 authored by Julien Malik's avatar Julien Malik
Browse files

TEST: enable testing the GUI generation in non-interactive session

parent 563f1f6d
Branches
Tags
No related merge requests found
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
import sys import sys
import otbApplication as otb_core import otbApplication as otb_core
import otbapp as otb_gui import otbapp as otb_gui
from PyQt4 import QtGui from PyQt4 import QtGui, QtCore
if __name__ == "__main__": if __name__ == "__main__":
qapp = QtGui.QApplication(sys.argv) qapp = QtGui.QApplication(sys.argv)
...@@ -14,4 +15,6 @@ if __name__ == "__main__": ...@@ -14,4 +15,6 @@ if __name__ == "__main__":
widget.CreateGui() widget.CreateGui()
widget.show() widget.show()
QtCore.QTimer.singleShot(1000, qapp, QtCore.SLOT('closeAllWindows()'))
sys.exit(qapp.exec_()) sys.exit(qapp.exec_())
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment