@@ -1,101 +1,103 | |||||
1 | # -*- coding: utf-8 -*- |
|
1 | # -*- coding: utf-8 -*- | |
2 |
|
2 | |||
3 |
# Form implementation generated from reading ui file ' |
|
3 | # Form implementation generated from reading ui file 'C:\Users\alex\ericworkspace\GUIV1\workspacev2.ui' | |
4 | # |
|
4 | # | |
5 |
# Created: |
|
5 | # Created: Thu Dec 13 09:23:36 2012 | |
6 |
# by: PyQt4 UI code generator 4. |
|
6 | # by: PyQt4 UI code generator 4.9.4 | |
7 | # |
|
7 | # | |
8 | # WARNING! All changes made in this file will be lost! |
|
8 | # WARNING! All changes made in this file will be lost! | |
9 |
|
9 | |||
10 | from PyQt4 import QtCore, QtGui |
|
10 | from PyQt4 import QtCore, QtGui | |
11 |
|
11 | |||
12 | try: |
|
12 | try: | |
13 | _fromUtf8 = QtCore.QString.fromUtf8 |
|
13 | _fromUtf8 = QtCore.QString.fromUtf8 | |
14 | except AttributeError: |
|
14 | except AttributeError: | |
15 | _fromUtf8 = lambda s: s |
|
15 | _fromUtf8 = lambda s: s | |
16 |
|
16 | |||
17 | class Ui_Workspace(object): |
|
17 | class Ui_Workspace(object): | |
18 | def setupUi(self, MainWindow): |
|
18 | def setupUi(self, MainWindow): | |
19 | MainWindow.setObjectName(_fromUtf8("MainWindow")) |
|
19 | MainWindow.setObjectName(_fromUtf8("MainWindow")) | |
20 |
MainWindow.resize(728, |
|
20 | MainWindow.resize(728, 344) | |
21 | MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "MainWindow", None, QtGui.QApplication.UnicodeUTF8)) |
|
|||
22 | self.centralWidget = QtGui.QWidget(MainWindow) |
|
21 | self.centralWidget = QtGui.QWidget(MainWindow) | |
23 | self.centralWidget.setObjectName(_fromUtf8("centralWidget")) |
|
22 | self.centralWidget.setObjectName(_fromUtf8("centralWidget")) | |
24 | self.line = QtGui.QFrame(self.centralWidget) |
|
23 | self.line = QtGui.QFrame(self.centralWidget) | |
25 | self.line.setGeometry(QtCore.QRect(0, 60, 731, 20)) |
|
24 | self.line.setGeometry(QtCore.QRect(0, 60, 731, 20)) | |
26 | self.line.setFrameShape(QtGui.QFrame.HLine) |
|
25 | self.line.setFrameShape(QtGui.QFrame.HLine) | |
27 | self.line.setFrameShadow(QtGui.QFrame.Sunken) |
|
26 | self.line.setFrameShadow(QtGui.QFrame.Sunken) | |
28 | self.line.setObjectName(_fromUtf8("line")) |
|
27 | self.line.setObjectName(_fromUtf8("line")) | |
29 | self.dirLabel = QtGui.QTextEdit(self.centralWidget) |
|
28 | self.dirLabel = QtGui.QTextEdit(self.centralWidget) | |
30 |
self.dirLabel.setGeometry(QtCore.QRect(0, 0, 731, |
|
29 | self.dirLabel.setGeometry(QtCore.QRect(0, 0, 731, 91)) | |
31 | self.dirLabel.setReadOnly(True) |
|
30 | self.dirLabel.setReadOnly(True) | |
32 | self.dirLabel.setHtml(QtGui.QApplication.translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" |
|
|||
33 | "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" |
|
|||
34 | "p, li { white-space: pre-wrap; }\n" |
|
|||
35 | "</style></head><body style=\" font-family:\'Cantarell\'; font-size:11pt; font-weight:400; font-style:normal;\">\n" |
|
|||
36 | "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:12pt; font-weight:600;\">Select a workspace</span></p>\n" |
|
|||
37 | "<p align=\"justify\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">SignalChain stores your projects in a folder called a workspace.</p>\n" |
|
|||
38 | "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Choose a workspace folder to use for this session.</p></body></html>", None, QtGui.QApplication.UnicodeUTF8)) |
|
|||
39 | self.dirLabel.setObjectName(_fromUtf8("dirLabel")) |
|
31 | self.dirLabel.setObjectName(_fromUtf8("dirLabel")) | |
40 | self.dirWork = QtGui.QLabel(self.centralWidget) |
|
32 | self.dirWork = QtGui.QLabel(self.centralWidget) | |
41 |
self.dirWork.setGeometry(QtCore.QRect(10, |
|
33 | self.dirWork.setGeometry(QtCore.QRect(10, 110, 87, 22)) | |
42 | font = QtGui.QFont() |
|
34 | font = QtGui.QFont() | |
43 | font.setPointSize(12) |
|
35 | font.setPointSize(12) | |
44 | self.dirWork.setFont(font) |
|
36 | self.dirWork.setFont(font) | |
45 | self.dirWork.setText(QtGui.QApplication.translate("MainWindow", "Workspace :", None, QtGui.QApplication.UnicodeUTF8)) |
|
|||
46 | self.dirWork.setObjectName(_fromUtf8("dirWork")) |
|
37 | self.dirWork.setObjectName(_fromUtf8("dirWork")) | |
47 | self.dirButton = QtGui.QRadioButton(self.centralWidget) |
|
38 | self.dirButton = QtGui.QRadioButton(self.centralWidget) | |
48 |
self.dirButton.setGeometry(QtCore.QRect(10, 2 |
|
39 | self.dirButton.setGeometry(QtCore.QRect(10, 250, 401, 26)) | |
49 | self.dirButton.setText(QtGui.QApplication.translate("MainWindow", "Use this as the default and do not ask again", None, QtGui.QApplication.UnicodeUTF8)) |
|
40 | font = QtGui.QFont() | |
|
41 | font.setPointSize(12) | |||
|
42 | self.dirButton.setFont(font) | |||
50 | self.dirButton.setObjectName(_fromUtf8("dirButton")) |
|
43 | self.dirButton.setObjectName(_fromUtf8("dirButton")) | |
51 | self.layoutWidget = QtGui.QWidget(self.centralWidget) |
|
|||
52 | self.layoutWidget.setGeometry(QtCore.QRect(20, 230, 701, 33)) |
|
|||
53 | self.layoutWidget.setObjectName(_fromUtf8("layoutWidget")) |
|
|||
54 | self.horizontalLayout_2 = QtGui.QHBoxLayout(self.layoutWidget) |
|
|||
55 | self.horizontalLayout_2.setMargin(0) |
|
|||
56 | self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) |
|
|||
57 | spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
|||
58 | self.horizontalLayout_2.addItem(spacerItem) |
|
|||
59 | self.dirCancelbtn = QtGui.QPushButton(self.layoutWidget) |
|
|||
60 | self.dirCancelbtn.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) |
|
|||
61 | self.dirCancelbtn.setObjectName(_fromUtf8("dirCancelbtn")) |
|
|||
62 | self.horizontalLayout_2.addWidget(self.dirCancelbtn) |
|
|||
63 | self.dirOkbtn = QtGui.QPushButton(self.layoutWidget) |
|
|||
64 | self.dirOkbtn.setText(QtGui.QApplication.translate("MainWindow", "OK", None, QtGui.QApplication.UnicodeUTF8)) |
|
|||
65 | self.dirOkbtn.setObjectName(_fromUtf8("dirOkbtn")) |
|
|||
66 | self.horizontalLayout_2.addWidget(self.dirOkbtn) |
|
|||
67 | self.dirCmbBox = QtGui.QComboBox(self.centralWidget) |
|
44 | self.dirCmbBox = QtGui.QComboBox(self.centralWidget) | |
68 |
self.dirCmbBox.setGeometry(QtCore.QRect(10, 1 |
|
45 | self.dirCmbBox.setGeometry(QtCore.QRect(100, 110, 481, 31)) | |
69 | palette = QtGui.QPalette() |
|
46 | palette = QtGui.QPalette() | |
70 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) |
|
47 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) | |
71 | brush.setStyle(QtCore.Qt.SolidPattern) |
|
48 | brush.setStyle(QtCore.Qt.SolidPattern) | |
72 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) |
|
49 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) | |
73 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) |
|
50 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) | |
74 | brush.setStyle(QtCore.Qt.SolidPattern) |
|
51 | brush.setStyle(QtCore.Qt.SolidPattern) | |
75 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) |
|
52 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) | |
76 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) |
|
53 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) | |
77 | brush.setStyle(QtCore.Qt.SolidPattern) |
|
54 | brush.setStyle(QtCore.Qt.SolidPattern) | |
78 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) |
|
55 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) | |
79 | self.dirCmbBox.setPalette(palette) |
|
56 | self.dirCmbBox.setPalette(palette) | |
80 | self.dirCmbBox.setObjectName(_fromUtf8("dirCmbBox")) |
|
57 | self.dirCmbBox.setObjectName(_fromUtf8("dirCmbBox")) | |
81 | self.dirBrowsebtn = QtGui.QToolButton(self.centralWidget) |
|
58 | self.dirBrowsebtn = QtGui.QToolButton(self.centralWidget) | |
82 |
self.dirBrowsebtn.setGeometry(QtCore.QRect(6 |
|
59 | self.dirBrowsebtn.setGeometry(QtCore.QRect(600, 110, 111, 31)) | |
83 | self.dirBrowsebtn.setText(QtGui.QApplication.translate("MainWindow", "Browse...", None, QtGui.QApplication.UnicodeUTF8)) |
|
60 | font = QtGui.QFont() | |
|
61 | font.setPointSize(12) | |||
|
62 | self.dirBrowsebtn.setFont(font) | |||
84 | self.dirBrowsebtn.setObjectName(_fromUtf8("dirBrowsebtn")) |
|
63 | self.dirBrowsebtn.setObjectName(_fromUtf8("dirBrowsebtn")) | |
|
64 | self.dirOkbtn = QtGui.QPushButton(self.centralWidget) | |||
|
65 | self.dirOkbtn.setGeometry(QtCore.QRect(590, 300, 111, 31)) | |||
|
66 | font = QtGui.QFont() | |||
|
67 | font.setPointSize(12) | |||
|
68 | self.dirOkbtn.setFont(font) | |||
|
69 | self.dirOkbtn.setObjectName(_fromUtf8("dirOkbtn")) | |||
|
70 | self.dirCancelbtn = QtGui.QPushButton(self.centralWidget) | |||
|
71 | self.dirCancelbtn.setGeometry(QtCore.QRect(470, 300, 111, 31)) | |||
|
72 | self.dirCancelbtn.setObjectName(_fromUtf8("dirCancelbtn")) | |||
85 | MainWindow.setCentralWidget(self.centralWidget) |
|
73 | MainWindow.setCentralWidget(self.centralWidget) | |
86 |
|
74 | |||
87 | self.retranslateUi(MainWindow) |
|
75 | self.retranslateUi(MainWindow) | |
88 | QtCore.QMetaObject.connectSlotsByName(MainWindow) |
|
76 | QtCore.QMetaObject.connectSlotsByName(MainWindow) | |
89 |
|
77 | |||
90 | def retranslateUi(self, MainWindow): |
|
78 | def retranslateUi(self, MainWindow): | |
91 | pass |
|
79 | MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "MainWindow", None, QtGui.QApplication.UnicodeUTF8)) | |
|
80 | self.dirLabel.setHtml(QtGui.QApplication.translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" | |||
|
81 | "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" | |||
|
82 | "p, li { white-space: pre-wrap; }\n" | |||
|
83 | "</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n" | |||
|
84 | "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'Cantarell\'; font-size:11pt; font-weight:600;\"> Select a workspace</span></p>\n" | |||
|
85 | "<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Cantarell\'; font-size:11pt; font-weight:600;\"><br /></p>\n" | |||
|
86 | "<p align=\"justify\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'Cantarell\'; font-size:11pt;\"> Signal Chain stores your projects in a folder called a workspace.</span></p>\n" | |||
|
87 | "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'Cantarell\'; font-size:11pt;\"> Choose a workspace folder to use for this session.</span></p></body></html>", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
88 | self.dirWork.setText(QtGui.QApplication.translate("MainWindow", "Workspace :", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
89 | self.dirButton.setText(QtGui.QApplication.translate("MainWindow", "Use this as the default and do not ask again", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
90 | self.dirBrowsebtn.setText(QtGui.QApplication.translate("MainWindow", "Browse...", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
91 | self.dirOkbtn.setText(QtGui.QApplication.translate("MainWindow", "OK", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
92 | self.dirCancelbtn.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) | |||
92 |
|
93 | |||
93 |
|
94 | |||
94 | if __name__ == "__main__": |
|
95 | if __name__ == "__main__": | |
95 | import sys |
|
96 | import sys | |
96 | app = QtGui.QApplication(sys.argv) |
|
97 | app = QtGui.QApplication(sys.argv) | |
97 | MainWindow = QtGui.QMainWindow() |
|
98 | MainWindow = QtGui.QMainWindow() | |
98 | ui = Ui_Workspace() |
|
99 | ui = Ui_Workspace() | |
99 | ui.setupUi(MainWindow) |
|
100 | ui.setupUi(MainWindow) | |
100 | MainWindow.show() |
|
101 | MainWindow.show() | |
101 | sys.exit(app.exec_()) No newline at end of file |
|
102 | sys.exit(app.exec_()) | |
|
103 |
General Comments 0
You need to be logged in to leave comments.
Login now