forked from IntrAnatSEEGSoftware/IntrAnat
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathImageImport.py
36 lines (28 loc) · 804 Bytes
/
ImageImport.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Import and register images in the database
#
# (c) Inserm U836 2012-2014 - Manik Bhattacharjee
#
# License GNU GPL v3
#
import sys
# import PyQt4 QtCore and QtGui modules
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from ImageImportWindow import ImageImportWindow
if __name__ == '__main__':
# create application
app = QApplication(sys.argv)
app.setApplicationName('Image Import')
# create widget
w = ImageImportWindow()
w.setWindowTitle('Image Import - NOT FOR MEDICAL USAGE')
w.show()
# connection
QObject.connect(app, SIGNAL('lastWindowClosed()'), app, SLOT('quit()'))
# Debug -> evite un pb entre ipython, pdb et qt
pyqtRemoveInputHook()
# execute application
sys.exit(app.exec_())