##// END OF EJS Templates
Changes to meteor detection and phase correction because of relocation of antenna
Changes to meteor detection and phase correction because of relocation of antenna

File last commit:

r715:ba4eb5416278
r819:c63b6bff3798
Show More
workspace.py
69 lines | 1.9 KiB | text/x-python | PythonLexer
# -*- coding: utf-8 -*-
import os
from os.path import expanduser
from PyQt4.QtGui import QDialog
from PyQt4.QtCore import pyqtSignature
from PyQt4.QtCore import pyqtSignal
from PyQt4 import QtGui, QtCore
from schainpy.gui.viewer.ui_workspace import Ui_Workspace
from schainpy.gui.figures import tools
FIGURES_PATH = tools.get_path()
class Workspace(QDialog, Ui_Workspace):
"""
Class documentation goes here.
"""
def __init__(self, parent = None):
"""
Constructor
"""
QDialog.__init__(self, parent)
self.dirList=[]
self.setupUi(self)
self.setWindowTitle("ROJ-Signal Chain")
self.setWindowIcon(QtGui.QIcon( os.path.join(FIGURES_PATH,"logo.png") ))
#*####### DIRECTORIO DE TRABAJO #########*#
#self.dirCmbBox.setItemText(0, QtGui.QApplication.translate("MainWindow", "C:\WorkSpaceGui", None, QtGui.QApplication.UnicodeUTF8))
home=expanduser("~")
self.dir=os.path.join(home,'schain_workspace')
if not os.path.exists(self.dir):
os.makedirs(self.dir)
self.dirComBox.addItem(self.dir)
self.i=0
@pyqtSignature("")
def on_dirToolPath_clicked(self):
"""
Slot documentation goes here.
"""
self.i +=1
self.dirBrowse = str(QtGui.QFileDialog.getExistingDirectory(self, 'Open Directory', './', QtGui.QFileDialog.ShowDirsOnly))
self.dirComBox.addItem(self.dirBrowse)
self.dirComBox.setCurrentIndex(self.i)
@pyqtSignature("")
def on_dirOkBtn_clicked(self):
"""
VISTA DE INTERFAZ GRÁFICA
"""
self.accept()
# self.close()
#
@pyqtSignature("")
def on_dirCancelBtn_clicked(self):
"""
Cerrar
"""
self.close()