1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
@@ -1,46 +1,46 | |||||
1 | # -*- coding: utf-8 -*- |
|
1 | # -*- coding: utf-8 -*- | |
2 |
|
2 | |||
3 | """ |
|
3 | """ | |
4 | Module implementing InitWindow. |
|
4 | Module implementing InitWindow. | |
5 | """ |
|
5 | """ | |
6 | import os |
|
6 | import os | |
7 |
|
7 | |||
8 | from PyQt4.QtGui import QDialog |
|
8 | from PyQt4.QtGui import QDialog | |
9 | from PyQt4.QtCore import pyqtSignature |
|
9 | from PyQt4.QtCore import pyqtSignature | |
10 | from PyQt4 import QtCore |
|
10 | from PyQt4 import QtCore | |
11 | from PyQt4 import QtGui |
|
11 | from PyQt4 import QtGui | |
12 |
|
12 | |||
13 | from schainpy.gui.viewer.ui_initwindow import Ui_InitWindow |
|
13 | from schainpy.gui.viewer.ui_initwindow import Ui_InitWindow | |
14 | from schainpy.gui.figures import tools |
|
14 | from schainpy.gui.figures import tools | |
15 |
|
15 | |||
16 | FIGURES_PATH = tools.get_path() |
|
16 | FIGURES_PATH = tools.get_path() | |
17 |
|
17 | |||
18 | class InitWindow(QDialog, Ui_InitWindow): |
|
18 | class InitWindow(QDialog, Ui_InitWindow): | |
19 | """ |
|
19 | """ | |
20 | Class documentation goes here. |
|
20 | Class documentation goes here. | |
21 | """ |
|
21 | """ | |
22 | def __init__(self, parent = None): |
|
22 | def __init__(self, parent = None): | |
23 | """ |
|
23 | """ | |
24 | Constructor |
|
24 | Constructor | |
25 | """ |
|
25 | """ | |
26 | QDialog.__init__(self, parent) |
|
26 | QDialog.__init__(self, parent) | |
27 | self.setupUi(self) |
|
27 | self.setupUi(self) | |
28 | self.setWindowTitle("ROJ-Signal Chain") |
|
28 | self.setWindowTitle("ROJ-Signal Chain") | |
29 |
self.setWindowIcon(QtGui.QIcon( os.path.join(FIGURES_PATH," |
|
29 | self.setWindowIcon(QtGui.QIcon( os.path.join(FIGURES_PATH,"logo.png") )) | |
30 |
|
30 | |||
31 | @pyqtSignature("") |
|
31 | @pyqtSignature("") | |
32 | def on_ExitBtn_clicked(self): |
|
32 | def on_ExitBtn_clicked(self): | |
33 | """ |
|
33 | """ | |
34 | Exit cierra la ventana de Bienvenida |
|
34 | Exit cierra la ventana de Bienvenida | |
35 | """ |
|
35 | """ | |
36 | self.close() |
|
36 | self.close() | |
37 |
|
37 | |||
38 | @pyqtSignature("") |
|
38 | @pyqtSignature("") | |
39 | def on_ContinueBtn_clicked(self): |
|
39 | def on_ContinueBtn_clicked(self): | |
40 | """ |
|
40 | """ | |
41 | Continue cierra la ventana de Bienvenida, a este evento se le complementa con la accion |
|
41 | Continue cierra la ventana de Bienvenida, a este evento se le complementa con la accion | |
42 | conectar con la ventana de configuracion de Workspace |
|
42 | conectar con la ventana de configuracion de Workspace | |
43 | """ |
|
43 | """ | |
44 | # TODO: not implemented yet |
|
44 | # TODO: not implemented yet | |
45 | #raise NotImplementedError |
|
45 | #raise NotImplementedError | |
46 | self.accept() |
|
46 | self.accept() |
@@ -1,70 +1,70 | |||||
1 | # -*- coding: utf-8 -*- |
|
1 | # -*- coding: utf-8 -*- | |
2 | import os |
|
2 | import os | |
3 | from os.path import expanduser |
|
3 | from os.path import expanduser | |
4 |
|
4 | |||
5 | from PyQt4.QtGui import QDialog |
|
5 | from PyQt4.QtGui import QDialog | |
6 | from PyQt4.QtCore import pyqtSignature |
|
6 | from PyQt4.QtCore import pyqtSignature | |
7 | from PyQt4.QtCore import pyqtSignal |
|
7 | from PyQt4.QtCore import pyqtSignal | |
8 | from PyQt4 import QtGui, QtCore |
|
8 | from PyQt4 import QtGui, QtCore | |
9 |
|
9 | |||
10 | from schainpy.gui.viewer.ui_workspace import Ui_Workspace |
|
10 | from schainpy.gui.viewer.ui_workspace import Ui_Workspace | |
11 | from schainpy.gui.figures import tools |
|
11 | from schainpy.gui.figures import tools | |
12 |
|
12 | |||
13 | FIGURES_PATH = tools.get_path() |
|
13 | FIGURES_PATH = tools.get_path() | |
14 |
|
14 | |||
15 | class Workspace(QDialog, Ui_Workspace): |
|
15 | class Workspace(QDialog, Ui_Workspace): | |
16 | """ |
|
16 | """ | |
17 | Class documentation goes here. |
|
17 | Class documentation goes here. | |
18 | """ |
|
18 | """ | |
19 |
|
19 | |||
20 | def __init__(self, parent = None): |
|
20 | def __init__(self, parent = None): | |
21 | """ |
|
21 | """ | |
22 | Constructor |
|
22 | Constructor | |
23 | """ |
|
23 | """ | |
24 | QDialog.__init__(self, parent) |
|
24 | QDialog.__init__(self, parent) | |
25 | self.dirList=[] |
|
25 | self.dirList=[] | |
26 | self.setupUi(self) |
|
26 | self.setupUi(self) | |
27 | self.setWindowTitle("ROJ-Signal Chain") |
|
27 | self.setWindowTitle("ROJ-Signal Chain") | |
28 |
self.setWindowIcon(QtGui.QIcon( os.path.join(FIGURES_PATH," |
|
28 | self.setWindowIcon(QtGui.QIcon( os.path.join(FIGURES_PATH,"logo.png") )) | |
29 | #*####### DIRECTORIO DE TRABAJO #########*# |
|
29 | #*####### DIRECTORIO DE TRABAJO #########*# | |
30 | #self.dirCmbBox.setItemText(0, QtGui.QApplication.translate("MainWindow", "C:\WorkSpaceGui", None, QtGui.QApplication.UnicodeUTF8)) |
|
30 | #self.dirCmbBox.setItemText(0, QtGui.QApplication.translate("MainWindow", "C:\WorkSpaceGui", None, QtGui.QApplication.UnicodeUTF8)) | |
31 | home=expanduser("~") |
|
31 | home=expanduser("~") | |
32 | self.dir=os.path.join(home,'schain_workspace') |
|
32 | self.dir=os.path.join(home,'schain_workspace') | |
33 | if not os.path.exists(self.dir): |
|
33 | if not os.path.exists(self.dir): | |
34 | os.makedirs(self.dir) |
|
34 | os.makedirs(self.dir) | |
35 | self.dirComBox.addItem(self.dir) |
|
35 | self.dirComBox.addItem(self.dir) | |
36 | self.i=0 |
|
36 | self.i=0 | |
37 |
|
37 | |||
38 |
|
38 | |||
39 | @pyqtSignature("") |
|
39 | @pyqtSignature("") | |
40 | def on_dirToolPath_clicked(self): |
|
40 | def on_dirToolPath_clicked(self): | |
41 | """ |
|
41 | """ | |
42 | Slot documentation goes here. |
|
42 | Slot documentation goes here. | |
43 | """ |
|
43 | """ | |
44 | self.i +=1 |
|
44 | self.i +=1 | |
45 | self.dirBrowse = str(QtGui.QFileDialog.getExistingDirectory(self, 'Open Directory', './', QtGui.QFileDialog.ShowDirsOnly)) |
|
45 | self.dirBrowse = str(QtGui.QFileDialog.getExistingDirectory(self, 'Open Directory', './', QtGui.QFileDialog.ShowDirsOnly)) | |
46 | self.dirComBox.addItem(self.dirBrowse) |
|
46 | self.dirComBox.addItem(self.dirBrowse) | |
47 | self.dirComBox.setCurrentIndex(self.i) |
|
47 | self.dirComBox.setCurrentIndex(self.i) | |
48 |
|
48 | |||
49 |
|
49 | |||
50 |
|
50 | |||
51 | @pyqtSignature("") |
|
51 | @pyqtSignature("") | |
52 | def on_dirOkBtn_clicked(self): |
|
52 | def on_dirOkBtn_clicked(self): | |
53 | """ |
|
53 | """ | |
54 | VISTA DE INTERFAZ GRÃFICA |
|
54 | VISTA DE INTERFAZ GRÃFICA | |
55 | """ |
|
55 | """ | |
56 | self.accept() |
|
56 | self.accept() | |
57 | # self.close() |
|
57 | # self.close() | |
58 | # |
|
58 | # | |
59 | @pyqtSignature("") |
|
59 | @pyqtSignature("") | |
60 | def on_dirCancelBtn_clicked(self): |
|
60 | def on_dirCancelBtn_clicked(self): | |
61 | """ |
|
61 | """ | |
62 | Cerrar |
|
62 | Cerrar | |
63 | """ |
|
63 | """ | |
64 | self.close() |
|
64 | self.close() | |
65 |
|
65 | |||
66 |
|
66 | |||
67 |
|
67 | |||
68 |
|
68 | |||
69 |
|
69 | |||
70 | No newline at end of file |
|
70 |
General Comments 0
You need to be logged in to leave comments.
Login now