initwindow.py
42 lines
| 1.2 KiB
| text/x-python
|
PythonLexer
|
r208 | # -*- coding: utf-8 -*- | ||
""" | ||||
|
r258 | Module implementing InitWindow. | ||
|
r208 | """ | ||
|
r258 | |||
|
r376 | from PyQt4.QtGui import QDialog | ||
|
r208 | from PyQt4.QtCore import pyqtSignature | ||
|
r363 | from PyQt4 import QtCore | ||
from PyQt4 import QtGui | ||||
|
r258 | |||
|
r577 | from schainpy.gui.viewer.ui_initwindow import Ui_InitWindow | ||
|
r208 | |||
|
r376 | class InitWindow(QDialog, Ui_InitWindow): | ||
|
r208 | """ | ||
Class documentation goes here. | ||||
""" | ||||
def __init__(self, parent = None): | ||||
""" | ||||
Constructor | ||||
""" | ||||
|
r376 | QDialog.__init__(self, parent) | ||
|
r258 | self.setupUi(self) | ||
|
r363 | self.setWindowTitle("ROJ-Signal Chain") | ||
|
r577 | self.setWindowIcon(QtGui.QIcon("schainpy/gui/figure/adn.jpg")) | ||
|
r208 | |||
@pyqtSignature("") | ||||
|
r258 | def on_ExitBtn_clicked(self): | ||
|
r208 | """ | ||
|
r258 | Exit cierra la ventana de Bienvenida | ||
|
r208 | """ | ||
|
r258 | self.close() | ||
|
r208 | @pyqtSignature("") | ||
|
r258 | def on_ContinueBtn_clicked(self): | ||
|
r208 | """ | ||
|
r258 | Continue cierra la ventana de Bienvenida, a este evento se le complementa con la accion | ||
conectar con la ventana de configuracion de Workspace | ||||
|
r208 | """ | ||
|
r258 | # TODO: not implemented yet | ||
#raise NotImplementedError | ||||
|
r376 | self.accept() | ||