Commit 4097f3a0c5ac98690f098ac0074f11bb00df769e
1 parent
c0784227a8
Exists in
master
replace 4 spaces by tabs
Showing 2 changed files with 180 additions and 180 deletions Side-by-side Diff
allanplot-gui.py
... | ... | @@ -6,97 +6,97 @@ |
6 | 6 | import allanplotUI |
7 | 7 | |
8 | 8 | class allanplot(QtGui.QMainWindow, allanplotUI.Ui_MainWindow): |
9 | - def __init__(self, parent=None): | |
10 | - super(allanplot, self).__init__(parent) | |
11 | - self.setupUi(self) | |
12 | - self.connectActions() | |
13 | - self.pqg_widget(self.frame) | |
9 | + def __init__(self, parent=None): | |
10 | + super(allanplot, self).__init__(parent) | |
11 | + self.setupUi(self) | |
12 | + self.connectActions() | |
13 | + self.pqg_widget(self.frame) | |
14 | 14 | |
15 | - def pqg_widget(self, frame): | |
16 | - pyqtgraph.setConfigOption('background', 'w') | |
17 | - pyqtgraph.setConfigOption('foreground', 'k') | |
18 | - self.plot_widget = pyqtgraph.PlotWidget() | |
19 | - self.layout_pqg = QtGui.QVBoxLayout(frame) | |
20 | - self.layout_pqg.addWidget(self.plot_widget) | |
21 | - self.plot_widget.showGrid(True, True, 0.5) | |
22 | - self.plot_widget.addLegend() | |
23 | - self.plot_widget.getViewBox().setMouseMode(pyqtgraph.ViewBox.RectMode) | |
15 | + def pqg_widget(self, frame): | |
16 | + pyqtgraph.setConfigOption('background', 'w') | |
17 | + pyqtgraph.setConfigOption('foreground', 'k') | |
18 | + self.plot_widget = pyqtgraph.PlotWidget() | |
19 | + self.layout_pqg = QtGui.QVBoxLayout(frame) | |
20 | + self.layout_pqg.addWidget(self.plot_widget) | |
21 | + self.plot_widget.showGrid(True, True, 0.5) | |
22 | + self.plot_widget.addLegend() | |
23 | + self.plot_widget.getViewBox().setMouseMode(pyqtgraph.ViewBox.RectMode) | |
24 | 24 | |
25 | - def connectActions(self): | |
26 | - self.pushQuit.clicked.connect(QtGui.qApp.quit) | |
27 | - self.pushOpen.clicked.connect(self.openDat) | |
28 | - self.pushTimePlot.clicked.connect(self.timePlot) | |
29 | - self.pushAdevPlot.clicked.connect(self.adevPlot) | |
30 | - self.pushRelativeTimePlot.clicked.connect(self.relativeTimePlot) | |
31 | - self.pushRelativeAdevPlot.clicked.connect(self.relativeAdevPlot) | |
25 | + def connectActions(self): | |
26 | + self.pushQuit.clicked.connect(QtGui.qApp.quit) | |
27 | + self.pushOpen.clicked.connect(self.openDat) | |
28 | + self.pushTimePlot.clicked.connect(self.timePlot) | |
29 | + self.pushAdevPlot.clicked.connect(self.adevPlot) | |
30 | + self.pushRelativeTimePlot.clicked.connect(self.relativeTimePlot) | |
31 | + self.pushRelativeAdevPlot.clicked.connect(self.relativeAdevPlot) | |
32 | 32 | |
33 | - def openDat(self): | |
34 | - fileNames = QtGui.QFileDialog.getOpenFileNames(self, "Open datafile", QtCore.QDir.homePath(), "data files (*.dat)") | |
35 | - if fileNames: | |
36 | - fileList = sorted([str(f) for f in fileNames]) | |
37 | - self.data = [] | |
38 | - textList = '' | |
39 | - for f in fileList: | |
40 | - if textList=='': | |
41 | - textList = str(f) | |
42 | - else: | |
43 | - textList = textList+'\n'+str(f) | |
44 | - with open(f, 'r') as dest_f: | |
45 | - data_iter = csv.reader(dest_f, delimiter = '\t', quotechar = '"') | |
46 | - temp_data = [filter(None, value) for value in data_iter] | |
47 | - self.data.extend(temp_data) | |
48 | - self.data = numpy.asarray(self.data, dtype = float) | |
49 | - self.textFileList.setText(textList) | |
50 | - self.textValue.setText(str(self.data[:])) | |
33 | + def openDat(self): | |
34 | + fileNames = QtGui.QFileDialog.getOpenFileNames(self, "Open datafile", QtCore.QDir.homePath(), "data files (*.dat)") | |
35 | + if fileNames: | |
36 | + fileList = sorted([str(f) for f in fileNames]) | |
37 | + self.data = [] | |
38 | + textList = '' | |
39 | + for f in fileList: | |
40 | + if textList=='': | |
41 | + textList = str(f) | |
42 | + else: | |
43 | + textList = textList+'\n'+str(f) | |
44 | + with open(f, 'r') as dest_f: | |
45 | + data_iter = csv.reader(dest_f, delimiter = '\t', quotechar = '"') | |
46 | + temp_data = [filter(None, value) for value in data_iter] | |
47 | + self.data.extend(temp_data) | |
48 | + self.data = numpy.asarray(self.data, dtype = float) | |
49 | + self.textFileList.setText(textList) | |
50 | + self.textValue.setText(str(self.data[:])) | |
51 | 51 | |
52 | - def timePlot(self): | |
53 | - self.plot_widget.clear() | |
54 | - self.plot_widget.setTitle('time plot') | |
55 | - self.plot_widget.setLabel('bottom', "Time", "s") | |
56 | - self.plot_widget.setLabel('left', "y") | |
57 | - self.plot_widget.setLogMode(False, False) | |
58 | - for i in range(2, self.data.shape[1]): | |
59 | - self.curve = self.plot_widget.plot() | |
60 | - self.curve.setData(self.data[:,0], self.data[:,i], pen=5*i, name='#%s'%i) | |
52 | + def timePlot(self): | |
53 | + self.plot_widget.clear() | |
54 | + self.plot_widget.setTitle('time plot') | |
55 | + self.plot_widget.setLabel('bottom', "Time", "s") | |
56 | + self.plot_widget.setLabel('left', "y") | |
57 | + self.plot_widget.setLogMode(False, False) | |
58 | + for i in range(2, self.data.shape[1]): | |
59 | + self.curve = self.plot_widget.plot() | |
60 | + self.curve.setData(self.data[:,0], self.data[:,i], pen=5*i, name='#%s'%i) | |
61 | 61 | |
62 | - def relativeTimePlot(self): | |
63 | - self.plot_widget.clear() | |
64 | - self.plot_widget.setTitle('relative time plot') | |
65 | - self.plot_widget.setLabel('bottom', "Time", "s") | |
66 | - self.plot_widget.setLabel('left', "y") | |
67 | - self.plot_widget.setLogMode(False, False) | |
68 | - for i in range(2, self.data.shape[1]): | |
69 | - self.curve = self.plot_widget.plot() | |
70 | - self.curve.setData(self.data[:,0], self.data[:,i]/self.data[:,i].mean(), pen=5*i, name='#%s'%i) | |
62 | + def relativeTimePlot(self): | |
63 | + self.plot_widget.clear() | |
64 | + self.plot_widget.setTitle('relative time plot') | |
65 | + self.plot_widget.setLabel('bottom', "Time", "s") | |
66 | + self.plot_widget.setLabel('left', "y") | |
67 | + self.plot_widget.setLogMode(False, False) | |
68 | + for i in range(2, self.data.shape[1]): | |
69 | + self.curve = self.plot_widget.plot() | |
70 | + self.curve.setData(self.data[:,0], self.data[:,i]/self.data[:,i].mean(), pen=5*i, name='#%s'%i) | |
71 | 71 | |
72 | - def adevPlot(self): | |
73 | - self.plot_widget.clear() | |
74 | - self.plot_widget.setTitle('adev plot') | |
75 | - self.plot_widget.setLabel('bottom', "Tau", "s") | |
76 | - self.plot_widget.setLabel('left', "adev") | |
77 | - self.plot_widget.setLogMode(True, True) | |
78 | - for i in range(2, self.data.shape[1]): | |
79 | - (tau2, ad, ade, adn) = allantools.adev(self.data[:,i], rate=1, data_type="freq", taus='decade') | |
80 | - self.curve = self.plot_widget.plot() | |
81 | - self.curve.setData(tau2, ad, pen=5*i, name='#%s'%i) | |
72 | + def adevPlot(self): | |
73 | + self.plot_widget.clear() | |
74 | + self.plot_widget.setTitle('adev plot') | |
75 | + self.plot_widget.setLabel('bottom', "Tau", "s") | |
76 | + self.plot_widget.setLabel('left', "adev") | |
77 | + self.plot_widget.setLogMode(True, True) | |
78 | + for i in range(2, self.data.shape[1]): | |
79 | + (tau2, ad, ade, adn) = allantools.adev(self.data[:,i], rate=1, data_type="freq", taus='decade') | |
80 | + self.curve = self.plot_widget.plot() | |
81 | + self.curve.setData(tau2, ad, pen=5*i, name='#%s'%i) | |
82 | 82 | |
83 | - def relativeAdevPlot(self): | |
84 | - self.plot_widget.clear() | |
85 | - self.plot_widget.setTitle('relative adev plot') | |
86 | - self.plot_widget.setLabel('bottom', "Tau", "s") | |
87 | - self.plot_widget.setLabel('left', "relative adev") | |
88 | - self.plot_widget.setLogMode(True, True) | |
89 | - for i in range(2, self.data.shape[1]): | |
90 | - (tau2, ad, ade, adn) = allantools.adev(self.data[:,i]/self.data[:,i].mean(), rate=1, data_type="freq", taus='decade') | |
91 | - self.curve = self.plot_widget.plot() | |
92 | - self.curve.setData(tau2, ad, pen=5*i, name='#%s'%i) | |
83 | + def relativeAdevPlot(self): | |
84 | + self.plot_widget.clear() | |
85 | + self.plot_widget.setTitle('relative adev plot') | |
86 | + self.plot_widget.setLabel('bottom', "Tau", "s") | |
87 | + self.plot_widget.setLabel('left', "relative adev") | |
88 | + self.plot_widget.setLogMode(True, True) | |
89 | + for i in range(2, self.data.shape[1]): | |
90 | + (tau2, ad, ade, adn) = allantools.adev(self.data[:,i]/self.data[:,i].mean(), rate=1, data_type="freq", taus='decade') | |
91 | + self.curve = self.plot_widget.plot() | |
92 | + self.curve.setData(tau2, ad, pen=5*i, name='#%s'%i) | |
93 | 93 | |
94 | - def main(self): | |
95 | - self.show() | |
94 | + def main(self): | |
95 | + self.show() | |
96 | 96 | |
97 | 97 | if __name__=='__main__': |
98 | - app = QtGui.QApplication(sys.argv) | |
99 | - allanplot = allanplot() | |
100 | - allanplot.main() | |
101 | - app.exec_() | |
98 | + app = QtGui.QApplication(sys.argv) | |
99 | + allanplot = allanplot() | |
100 | + allanplot.main() | |
101 | + app.exec_() |
allanplotUI.py
... | ... | @@ -3,123 +3,123 @@ |
3 | 3 | # Form implementation generated from reading ui file 'allanplotUI.ui' |
4 | 4 | # |
5 | 5 | # Created: Thu Jul 7 17:46:05 2016 |
6 | -# by: PyQt4 UI code generator 4.11.2 | |
6 | +# by: PyQt4 UI code generator 4.11.2 | |
7 | 7 | # |
8 | 8 | # WARNING! All changes made in this file will be lost! |
9 | 9 | |
10 | 10 | from PyQt4 import QtCore, QtGui |
11 | 11 | |
12 | 12 | try: |
13 | - _fromUtf8 = QtCore.QString.fromUtf8 | |
13 | + _fromUtf8 = QtCore.QString.fromUtf8 | |
14 | 14 | except AttributeError: |
15 | - def _fromUtf8(s): | |
16 | - return s | |
15 | + def _fromUtf8(s): | |
16 | + return s | |
17 | 17 | |
18 | 18 | try: |
19 | - _encoding = QtGui.QApplication.UnicodeUTF8 | |
20 | - def _translate(context, text, disambig): | |
21 | - return QtGui.QApplication.translate(context, text, disambig, _encoding) | |
19 | + _encoding = QtGui.QApplication.UnicodeUTF8 | |
20 | + def _translate(context, text, disambig): | |
21 | + return QtGui.QApplication.translate(context, text, disambig, _encoding) | |
22 | 22 | except AttributeError: |
23 | - def _translate(context, text, disambig): | |
24 | - return QtGui.QApplication.translate(context, text, disambig) | |
23 | + def _translate(context, text, disambig): | |
24 | + return QtGui.QApplication.translate(context, text, disambig) | |
25 | 25 | |
26 | 26 | class Ui_MainWindow(object): |
27 | - def setupUi(self, MainWindow): | |
28 | - MainWindow.setObjectName(_fromUtf8("MainWindow")) | |
29 | - MainWindow.resize(766, 780) | |
30 | - self.centralwidget = QtGui.QWidget(MainWindow) | |
31 | - self.centralwidget.setObjectName(_fromUtf8("centralwidget")) | |
32 | - self.gridLayout = QtGui.QGridLayout(self.centralwidget) | |
33 | - self.gridLayout.setObjectName(_fromUtf8("gridLayout")) | |
34 | - self.pushOpen = QtGui.QPushButton(self.centralwidget) | |
35 | - self.pushOpen.setObjectName(_fromUtf8("pushOpen")) | |
36 | - self.gridLayout.addWidget(self.pushOpen, 1, 1, 1, 1) | |
37 | - self.groupBox = QtGui.QGroupBox(self.centralwidget) | |
38 | - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum) | |
39 | - sizePolicy.setHorizontalStretch(0) | |
40 | - sizePolicy.setVerticalStretch(0) | |
41 | - sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth()) | |
42 | - self.groupBox.setSizePolicy(sizePolicy) | |
43 | - self.groupBox.setObjectName(_fromUtf8("groupBox")) | |
44 | - self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox) | |
45 | - self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) | |
46 | - self.pushTimePlot = QtGui.QPushButton(self.groupBox) | |
47 | - self.pushTimePlot.setObjectName(_fromUtf8("pushTimePlot")) | |
48 | - self.verticalLayout_2.addWidget(self.pushTimePlot) | |
49 | - self.pushRelativeTimePlot = QtGui.QPushButton(self.groupBox) | |
50 | - self.pushRelativeTimePlot.setObjectName(_fromUtf8("pushRelativeTimePlot")) | |
51 | - self.verticalLayout_2.addWidget(self.pushRelativeTimePlot) | |
52 | - self.pushAdevPlot = QtGui.QPushButton(self.groupBox) | |
53 | - self.pushAdevPlot.setObjectName(_fromUtf8("pushAdevPlot")) | |
54 | - self.verticalLayout_2.addWidget(self.pushAdevPlot) | |
55 | - self.pushRelativeAdevPlot = QtGui.QPushButton(self.groupBox) | |
56 | - self.pushRelativeAdevPlot.setObjectName(_fromUtf8("pushRelativeAdevPlot")) | |
57 | - self.verticalLayout_2.addWidget(self.pushRelativeAdevPlot) | |
58 | - self.gridLayout.addWidget(self.groupBox, 4, 1, 1, 1) | |
59 | - self.textValue = QtGui.QTextBrowser(self.centralwidget) | |
60 | - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum) | |
61 | - sizePolicy.setHorizontalStretch(0) | |
62 | - sizePolicy.setVerticalStretch(0) | |
63 | - sizePolicy.setHeightForWidth(self.textValue.sizePolicy().hasHeightForWidth()) | |
64 | - self.textValue.setSizePolicy(sizePolicy) | |
65 | - self.textValue.setMinimumSize(QtCore.QSize(600, 150)) | |
66 | - self.textValue.setMaximumSize(QtCore.QSize(16777215, 150)) | |
67 | - self.textValue.setObjectName(_fromUtf8("textValue")) | |
68 | - self.gridLayout.addWidget(self.textValue, 4, 2, 1, 1) | |
69 | - self.pushQuit = QtGui.QPushButton(self.centralwidget) | |
70 | - self.pushQuit.setObjectName(_fromUtf8("pushQuit")) | |
71 | - self.gridLayout.addWidget(self.pushQuit, 2, 1, 1, 1) | |
72 | - self.textFileList = QtGui.QTextBrowser(self.centralwidget) | |
73 | - self.textFileList.setEnabled(True) | |
74 | - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Maximum) | |
75 | - sizePolicy.setHorizontalStretch(0) | |
76 | - sizePolicy.setVerticalStretch(0) | |
77 | - sizePolicy.setHeightForWidth(self.textFileList.sizePolicy().hasHeightForWidth()) | |
78 | - self.textFileList.setSizePolicy(sizePolicy) | |
79 | - self.textFileList.setMinimumSize(QtCore.QSize(600, 100)) | |
80 | - self.textFileList.setMaximumSize(QtCore.QSize(16777215, 100)) | |
81 | - self.textFileList.setObjectName(_fromUtf8("textFileList")) | |
82 | - self.gridLayout.addWidget(self.textFileList, 1, 2, 3, 1) | |
83 | - self.frame = QtGui.QFrame(self.centralwidget) | |
84 | - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding) | |
85 | - sizePolicy.setHorizontalStretch(0) | |
86 | - sizePolicy.setVerticalStretch(0) | |
87 | - sizePolicy.setHeightForWidth(self.frame.sizePolicy().hasHeightForWidth()) | |
88 | - self.frame.setSizePolicy(sizePolicy) | |
89 | - self.frame.setMinimumSize(QtCore.QSize(700, 500)) | |
90 | - self.frame.setObjectName(_fromUtf8("frame")) | |
91 | - self.gridLayout.addWidget(self.frame, 5, 1, 1, 2) | |
92 | - MainWindow.setCentralWidget(self.centralwidget) | |
93 | - self.actionOpen = QtGui.QAction(MainWindow) | |
94 | - self.actionOpen.setObjectName(_fromUtf8("actionOpen")) | |
95 | - self.actionPlot = QtGui.QAction(MainWindow) | |
96 | - self.actionPlot.setObjectName(_fromUtf8("actionPlot")) | |
97 | - self.actionQuit = QtGui.QAction(MainWindow) | |
98 | - self.actionQuit.setObjectName(_fromUtf8("actionQuit")) | |
27 | + def setupUi(self, MainWindow): | |
28 | + MainWindow.setObjectName(_fromUtf8("MainWindow")) | |
29 | + MainWindow.resize(766, 780) | |
30 | + self.centralwidget = QtGui.QWidget(MainWindow) | |
31 | + self.centralwidget.setObjectName(_fromUtf8("centralwidget")) | |
32 | + self.gridLayout = QtGui.QGridLayout(self.centralwidget) | |
33 | + self.gridLayout.setObjectName(_fromUtf8("gridLayout")) | |
34 | + self.pushOpen = QtGui.QPushButton(self.centralwidget) | |
35 | + self.pushOpen.setObjectName(_fromUtf8("pushOpen")) | |
36 | + self.gridLayout.addWidget(self.pushOpen, 1, 1, 1, 1) | |
37 | + self.groupBox = QtGui.QGroupBox(self.centralwidget) | |
38 | + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum) | |
39 | + sizePolicy.setHorizontalStretch(0) | |
40 | + sizePolicy.setVerticalStretch(0) | |
41 | + sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth()) | |
42 | + self.groupBox.setSizePolicy(sizePolicy) | |
43 | + self.groupBox.setObjectName(_fromUtf8("groupBox")) | |
44 | + self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox) | |
45 | + self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) | |
46 | + self.pushTimePlot = QtGui.QPushButton(self.groupBox) | |
47 | + self.pushTimePlot.setObjectName(_fromUtf8("pushTimePlot")) | |
48 | + self.verticalLayout_2.addWidget(self.pushTimePlot) | |
49 | + self.pushRelativeTimePlot = QtGui.QPushButton(self.groupBox) | |
50 | + self.pushRelativeTimePlot.setObjectName(_fromUtf8("pushRelativeTimePlot")) | |
51 | + self.verticalLayout_2.addWidget(self.pushRelativeTimePlot) | |
52 | + self.pushAdevPlot = QtGui.QPushButton(self.groupBox) | |
53 | + self.pushAdevPlot.setObjectName(_fromUtf8("pushAdevPlot")) | |
54 | + self.verticalLayout_2.addWidget(self.pushAdevPlot) | |
55 | + self.pushRelativeAdevPlot = QtGui.QPushButton(self.groupBox) | |
56 | + self.pushRelativeAdevPlot.setObjectName(_fromUtf8("pushRelativeAdevPlot")) | |
57 | + self.verticalLayout_2.addWidget(self.pushRelativeAdevPlot) | |
58 | + self.gridLayout.addWidget(self.groupBox, 4, 1, 1, 1) | |
59 | + self.textValue = QtGui.QTextBrowser(self.centralwidget) | |
60 | + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum) | |
61 | + sizePolicy.setHorizontalStretch(0) | |
62 | + sizePolicy.setVerticalStretch(0) | |
63 | + sizePolicy.setHeightForWidth(self.textValue.sizePolicy().hasHeightForWidth()) | |
64 | + self.textValue.setSizePolicy(sizePolicy) | |
65 | + self.textValue.setMinimumSize(QtCore.QSize(600, 150)) | |
66 | + self.textValue.setMaximumSize(QtCore.QSize(16777215, 150)) | |
67 | + self.textValue.setObjectName(_fromUtf8("textValue")) | |
68 | + self.gridLayout.addWidget(self.textValue, 4, 2, 1, 1) | |
69 | + self.pushQuit = QtGui.QPushButton(self.centralwidget) | |
70 | + self.pushQuit.setObjectName(_fromUtf8("pushQuit")) | |
71 | + self.gridLayout.addWidget(self.pushQuit, 2, 1, 1, 1) | |
72 | + self.textFileList = QtGui.QTextBrowser(self.centralwidget) | |
73 | + self.textFileList.setEnabled(True) | |
74 | + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Maximum) | |
75 | + sizePolicy.setHorizontalStretch(0) | |
76 | + sizePolicy.setVerticalStretch(0) | |
77 | + sizePolicy.setHeightForWidth(self.textFileList.sizePolicy().hasHeightForWidth()) | |
78 | + self.textFileList.setSizePolicy(sizePolicy) | |
79 | + self.textFileList.setMinimumSize(QtCore.QSize(600, 100)) | |
80 | + self.textFileList.setMaximumSize(QtCore.QSize(16777215, 100)) | |
81 | + self.textFileList.setObjectName(_fromUtf8("textFileList")) | |
82 | + self.gridLayout.addWidget(self.textFileList, 1, 2, 3, 1) | |
83 | + self.frame = QtGui.QFrame(self.centralwidget) | |
84 | + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding) | |
85 | + sizePolicy.setHorizontalStretch(0) | |
86 | + sizePolicy.setVerticalStretch(0) | |
87 | + sizePolicy.setHeightForWidth(self.frame.sizePolicy().hasHeightForWidth()) | |
88 | + self.frame.setSizePolicy(sizePolicy) | |
89 | + self.frame.setMinimumSize(QtCore.QSize(700, 500)) | |
90 | + self.frame.setObjectName(_fromUtf8("frame")) | |
91 | + self.gridLayout.addWidget(self.frame, 5, 1, 1, 2) | |
92 | + MainWindow.setCentralWidget(self.centralwidget) | |
93 | + self.actionOpen = QtGui.QAction(MainWindow) | |
94 | + self.actionOpen.setObjectName(_fromUtf8("actionOpen")) | |
95 | + self.actionPlot = QtGui.QAction(MainWindow) | |
96 | + self.actionPlot.setObjectName(_fromUtf8("actionPlot")) | |
97 | + self.actionQuit = QtGui.QAction(MainWindow) | |
98 | + self.actionQuit.setObjectName(_fromUtf8("actionQuit")) | |
99 | 99 | |
100 | - self.retranslateUi(MainWindow) | |
101 | - QtCore.QMetaObject.connectSlotsByName(MainWindow) | |
100 | + self.retranslateUi(MainWindow) | |
101 | + QtCore.QMetaObject.connectSlotsByName(MainWindow) | |
102 | 102 | |
103 | - def retranslateUi(self, MainWindow): | |
104 | - MainWindow.setWindowTitle(_translate("MainWindow", "allanplot-gui", None)) | |
105 | - self.pushOpen.setText(_translate("MainWindow", "Open", None)) | |
106 | - self.groupBox.setTitle(_translate("MainWindow", "Plotting tools", None)) | |
107 | - self.pushTimePlot.setText(_translate("MainWindow", "Time Plot", None)) | |
108 | - self.pushRelativeTimePlot.setText(_translate("MainWindow", "Relative Time Plot", None)) | |
109 | - self.pushAdevPlot.setText(_translate("MainWindow", "Adev Plot", None)) | |
110 | - self.pushRelativeAdevPlot.setText(_translate("MainWindow", "Relative Adev Plot", None)) | |
111 | - self.textValue.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" | |
103 | + def retranslateUi(self, MainWindow): | |
104 | + MainWindow.setWindowTitle(_translate("MainWindow", "allanplot-gui", None)) | |
105 | + self.pushOpen.setText(_translate("MainWindow", "Open", None)) | |
106 | + self.groupBox.setTitle(_translate("MainWindow", "Plotting tools", None)) | |
107 | + self.pushTimePlot.setText(_translate("MainWindow", "Time Plot", None)) | |
108 | + self.pushRelativeTimePlot.setText(_translate("MainWindow", "Relative Time Plot", None)) | |
109 | + self.pushAdevPlot.setText(_translate("MainWindow", "Adev Plot", None)) | |
110 | + self.pushRelativeAdevPlot.setText(_translate("MainWindow", "Relative Adev Plot", None)) | |
111 | + self.textValue.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" | |
112 | 112 | "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" |
113 | 113 | "p, li { white-space: pre-wrap; }\n" |
114 | 114 | "</style></head><body style=\" font-family:\'DejaVu Sans\'; font-size:9pt; font-weight:400; font-style:normal;\">\n" |
115 | 115 | "<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;\"><br /></p></body></html>", None)) |
116 | - self.pushQuit.setText(_translate("MainWindow", "Quit", None)) | |
117 | - self.textFileList.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" | |
116 | + self.pushQuit.setText(_translate("MainWindow", "Quit", None)) | |
117 | + self.textFileList.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" | |
118 | 118 | "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" |
119 | 119 | "p, li { white-space: pre-wrap; }\n" |
120 | 120 | "</style></head><body style=\" font-family:\'DejaVu Sans\'; font-size:9pt; font-weight:400; font-style:normal;\">\n" |
121 | 121 | "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">.dat files</p></body></html>", None)) |
122 | - self.actionOpen.setText(_translate("MainWindow", "Open", None)) | |
123 | - self.actionPlot.setText(_translate("MainWindow", "Plot", None)) | |
124 | - self.actionQuit.setText(_translate("MainWindow", "Quit", None)) | |
122 | + self.actionOpen.setText(_translate("MainWindow", "Open", None)) | |
123 | + self.actionPlot.setText(_translate("MainWindow", "Plot", None)) | |
124 | + self.actionQuit.setText(_translate("MainWindow", "Quit", None)) |