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