##// END OF EJS Templates
VERSION1-GUI...
VERSION1-GUI -CARPETAS : VIEWER,VIEWCONTROLLER -Test: testSignalChainGUI.py

File last commit:

r208:f0e2ebb4337f
r208:f0e2ebb4337f
Show More
window.py
53 lines | 1.2 KiB | text/x-python | PythonLexer
# -*- coding: utf-8 -*-
"""
Module implementing Window.
"""
from PyQt4.QtCore import pyqtSignal
from PyQt4.QtGui import QMainWindow
from PyQt4.QtCore import pyqtSignature
from GUI.ui_window import Ui_window
#closed=pyqtSignal()
class Window(QMainWindow, Ui_window):
"""
Class documentation goes here.
"""
closed=pyqtSignal()
def __init__(self, parent = None):
"""
Constructor
"""
QMainWindow.__init__(self, parent)
self.setupUi(self)
self.name=0
@pyqtSignature("")
def on_cancelButton_clicked(self):
"""
Slot documentation goes here.
"""
# TODO: not implemented yet
#raise NotImplementedError
self.close()
@pyqtSignature("")
def on_okButton_clicked(self):
"""
Slot documentation goes here.
"""
# TODO: not implemented yet
#raise NotImplementedError
# self.almacena()
self.close()
def almacena(self):
#print str(self.proyectNameLine.text())
return str(self.proyectNameLine.text())
def closeEvent(self, event):
self.closed.emit()
event.accept()