##// END OF EJS Templates
Se agrega a JROData el flag realtime, para este caso se da prioridad al procesamiento de datos. Los graficos se generan solo cuando el tiempo de procesamiento es cercano al tiempo de adquisición.
Se agrega a JROData el flag realtime, para este caso se da prioridad al procesamiento de datos. Los graficos se generan solo cuando el tiempo de procesamiento es cercano al tiempo de adquisición.

File last commit:

r261:1da5a2d48804
r360:31a78476b797
Show More
workspace.py
69 lines | 2.0 KiB | text/x-python | PythonLexer
Alexander Valdez
VERSION1-GUI...
r208 # -*- coding: utf-8 -*-
from PyQt4.QtGui import QMainWindow
from PyQt4.QtCore import pyqtSignature
from PyQt4.QtCore import pyqtSignal
from PyQt4 import QtGui
Alexander Valdez
update workspace
r261 from viewcontroller.mainwindow import MainWindow
from viewer.ui_workspace import Ui_Workspace
Alexander Valdez
VERSION1-GUI...
r208
class Workspace(QMainWindow, Ui_Workspace):
"""
Class documentation goes here.
"""
closed=pyqtSignal()
def __init__(self, parent = None):
"""
Constructor
"""
QMainWindow.__init__(self, parent)
Alexander Valdez
update workspace
r261 self.dirList=[]
Alexander Valdez
VERSION1-GUI...
r208 self.setupUi(self)
#*####### DIRECTORIO DE TRABAJO #########*#
self.dirCmbBox.setItemText(0, QtGui.QApplication.translate("MainWindow", "C:\WorkSpaceGui", None, QtGui.QApplication.UnicodeUTF8))
self.dir=str("C:\WorkSpaceGui")
self.dirCmbBox.addItem(self.dir)
Alexander Valdez
update workspace
r261 self.dirList.append(self.dir)
Alexander Valdez
VERSION1-GUI...
r208
@pyqtSignature("")
def on_dirBrowsebtn_clicked(self):
"""
Slot documentation goes here.
"""
Alexander Valdez
update workspace
r261
Alexander Valdez
VERSION1-GUI...
r208 self.dirBrowse = str(QtGui.QFileDialog.getExistingDirectory(self, 'Open Directory', './', QtGui.QFileDialog.ShowDirsOnly))
Alexander Valdez
update workspace
r261 self.dirCmbBox.setItemText(0, QtGui.QApplication.translate("MainWindow", self.dirBrowse, None, QtGui.QApplication.UnicodeUTF8))
self.dirList.append(self.dirBrowse)
self.dirCmbBox.clear()
for i in self.dirList:
self.dirCmbBox.addItem(i)
Alexander Valdez
VERSION1-GUI...
r208
@pyqtSignature("")
def on_dirButton_clicked(self):
"""
Slot documentation goes here.
"""
Alexander Valdez
update workspace
r261 pass
Alexander Valdez
VERSION1-GUI...
r208
@pyqtSignature("")
def on_dirOkbtn_clicked(self):
"""
VISTA DE INTERFAZ GRÁFICA
"""
Alexander Valdez
update workspace
r261 self.close()
Alexander Valdez
VERSION1-GUI...
r208
@pyqtSignature("")
def on_dirCancelbtn_clicked(self):
"""
Cerrar
"""
self.close()
def closeEvent(self, event):
self.closed.emit()
event.accept()