@@ -1,13 +1,13 | |||||
1 | # -*- coding: utf-8 -*- |
|
1 | # -*- coding: utf-8 -*- | |
2 |
|
2 | |||
3 | """ |
|
3 | """ | |
4 |
Module implementing |
|
4 | Module implementing InitWindow. | |
5 | """ |
|
5 | """ | |
|
6 | ||||
6 | from PyQt4.QtGui import QMainWindow |
|
7 | from PyQt4.QtGui import QMainWindow | |
7 | from PyQt4.QtCore import pyqtSignature |
|
8 | from PyQt4.QtCore import pyqtSignature | |
8 | from workspace import Workspace |
|
9 | ||
9 | #from mainwindow import Workspace |
|
10 | from viewer.ui_initwindow import Ui_InitWindow | |
10 | from GUI.ui_initwindow import Ui_InitWindow |
|
|||
11 |
|
11 | |||
12 | class InitWindow(QMainWindow, Ui_InitWindow): |
|
12 | class InitWindow(QMainWindow, Ui_InitWindow): | |
13 | """ |
|
13 | """ | |
@@ -18,30 +18,23 class InitWindow(QMainWindow, Ui_InitWindow): | |||||
18 | Constructor |
|
18 | Constructor | |
19 | """ |
|
19 | """ | |
20 | QMainWindow.__init__(self, parent) |
|
20 | QMainWindow.__init__(self, parent) | |
21 |
|
21 | self.setupUi(self) | ||
22 |
|
22 | |||
23 | @pyqtSignature("") |
|
23 | @pyqtSignature("") | |
24 |
def on_ |
|
24 | def on_ExitBtn_clicked(self): | |
25 | """ |
|
25 | """ | |
26 | Close First Window |
|
26 | Exit cierra la ventana de Bienvenida | |
27 | """ |
|
27 | """ | |
|
28 | # TODO: not implemented yet | |||
|
29 | #raise NotImplementedError | |||
28 |
self.close() |
|
30 | self.close() | |
29 |
|
31 | |||
30 | @pyqtSignature("") |
|
32 | @pyqtSignature("") | |
31 |
def on_ |
|
33 | def on_ContinueBtn_clicked(self): | |
32 | """ |
|
34 | """ | |
33 | Show Workspace Window |
|
35 | Continue cierra la ventana de Bienvenida, a este evento se le complementa con la accion | |
|
36 | conectar con la ventana de configuracion de Workspace | |||
34 | """ |
|
37 | """ | |
35 | self.showmeconfig() |
|
38 | # TODO: not implemented yet | |
36 |
|
39 | #raise NotImplementedError | ||
37 | def showmeconfig(self): |
|
40 | self.close() | |
38 | ''' |
|
|||
39 | Method to call Workspace |
|
|||
40 | ''' |
|
|||
41 | self.config=Workspace() |
|
|||
42 | self.config.closed.connect(self.show) |
|
|||
43 | self.config.show() |
|
|||
44 | self.hide() |
|
|||
45 |
|
||||
46 |
|
||||
47 |
|
General Comments 0
You need to be logged in to leave comments.
Login now