@@ -4,7 +4,6 from PyQt4.QtGui import QMainWindow | |||
|
4 | 4 | from PyQt4.QtCore import pyqtSignature |
|
5 | 5 | from PyQt4.QtCore import pyqtSignal |
|
6 | 6 | from PyQt4 import QtGui |
|
7 | from viewcontroller.mainwindow import MainWindow | |
|
8 | 7 | from viewer.ui_workspace import Ui_Workspace |
|
9 | 8 | |
|
10 | 9 | class Workspace(QMainWindow, Ui_Workspace): |
@@ -19,43 +18,37 class Workspace(QMainWindow, Ui_Workspace): | |||
|
19 | 18 | QMainWindow.__init__(self, parent) |
|
20 | 19 | self.dirList=[] |
|
21 | 20 | self.setupUi(self) |
|
21 | self.setWindowTitle("ROJ-Signal Chain") | |
|
22 | self.setWindowIcon(QtGui.QIcon("figure/adn.jpg")) | |
|
22 | 23 | #*####### DIRECTORIO DE TRABAJO #########*# |
|
23 | self.dirCmbBox.setItemText(0, QtGui.QApplication.translate("MainWindow", "C:\WorkSpaceGui", None, QtGui.QApplication.UnicodeUTF8)) | |
|
24 | #self.dirCmbBox.setItemText(0, QtGui.QApplication.translate("MainWindow", "C:\WorkSpaceGui", None, QtGui.QApplication.UnicodeUTF8)) | |
|
25 | ||
|
24 | 26 | self.dir=str("C:\WorkSpaceGui") |
|
25 |
self.dirCm |
|
|
26 | self.dirList.append(self.dir) | |
|
27 | self.dirComBox.addItem(self.dir) | |
|
28 | self.i=0 | |
|
29 | ||
|
27 | 30 | |
|
28 | 31 | @pyqtSignature("") |
|
29 |
def on_dir |
|
|
32 | def on_dirToolPath_clicked(self): | |
|
30 | 33 | """ |
|
31 | 34 | Slot documentation goes here. |
|
32 | 35 | """ |
|
33 | ||
|
36 | self.i +=1 | |
|
34 | 37 | self.dirBrowse = str(QtGui.QFileDialog.getExistingDirectory(self, 'Open Directory', './', QtGui.QFileDialog.ShowDirsOnly)) |
|
35 | self.dirCmbBox.setItemText(0, QtGui.QApplication.translate("MainWindow", self.dirBrowse, None, QtGui.QApplication.UnicodeUTF8)) | |
|
36 |
self.dir |
|
|
37 | self.dirCmbBox.clear() | |
|
38 | for i in self.dirList: | |
|
39 | self.dirCmbBox.addItem(i) | |
|
40 | ||
|
38 | self.dirComBox.addItem(self.dirBrowse) | |
|
39 | self.dirComBox.setCurrentIndex(self.i) | |
|
40 | ||
|
41 | 41 | |
|
42 | ||
|
43 | @pyqtSignature("") | |
|
44 | def on_dirButton_clicked(self): | |
|
45 | """ | |
|
46 | Slot documentation goes here. | |
|
47 | """ | |
|
48 | pass | |
|
49 | 42 | |
|
50 | 43 | @pyqtSignature("") |
|
51 |
def on_dirOk |
|
|
44 | def on_dirOkBtn_clicked(self): | |
|
52 | 45 | """ |
|
53 | 46 | VISTA DE INTERFAZ GRÃFICA |
|
54 | 47 | """ |
|
55 | 48 | self.close() |
|
56 | 49 | |
|
57 | 50 | @pyqtSignature("") |
|
58 |
def on_dirCancel |
|
|
51 | def on_dirCancelBtn_clicked(self): | |
|
59 | 52 | """ |
|
60 | 53 | Cerrar |
|
61 | 54 | """ |
General Comments 0
You need to be logged in to leave comments.
Login now