some non-functional snippets deleted to promote GUI debugging
This commit is contained in:
parent
e7507a325f
commit
cb80170ccf
@ -57,22 +57,20 @@ class MainWindow(QMainWindow):
|
|||||||
self.setupUi()
|
self.setupUi()
|
||||||
|
|
||||||
def loadData(self):
|
def loadData(self):
|
||||||
loadDataDlg = LoadDataDlg(self)
|
pass
|
||||||
|
|
||||||
dataStream = read()
|
|
||||||
|
|
||||||
def setupUi(self):
|
def setupUi(self):
|
||||||
self.setWindowIcon(QIcon("PyLoT.ico"))
|
self.setWindowIcon(QIcon("PyLoT.ico"))
|
||||||
|
|
||||||
# create central matplotlib figure widget
|
# create central matplotlib figure widget
|
||||||
dataLayout = setupPlot()
|
self.DataPlot = MPLWidget(parent=self)
|
||||||
|
|
||||||
filterDockWidget = FilterOptionsDock(titleString="Filter Options",
|
filterDockWidget = FilterOptionsDock(titleString="Filter Options",
|
||||||
parent=self,
|
parent=self,
|
||||||
filterOptions=filteroptions)
|
filterOptions=filteroptions)
|
||||||
|
|
||||||
self.eventLabel = QLabel()
|
self.eventLabel = QLabel()
|
||||||
self.eventLabel.setFrameStyle(QFrame.StyledPanel|QFrame.Sunken)
|
self.eventLabel.setFrameStyle(QFrame.StyledPanel | QFrame.Sunken)
|
||||||
status = self.statusBar()
|
status = self.statusBar()
|
||||||
status.setSizeGripEnabled(False)
|
status.setSizeGripEnabled(False)
|
||||||
status.addPermanentWidget(self.eventLabel)
|
status.addPermanentWidget(self.eventLabel)
|
||||||
@ -84,16 +82,7 @@ class MainWindow(QMainWindow):
|
|||||||
maingrid.setSpacing(10)
|
maingrid.setSpacing(10)
|
||||||
maingrid.addLayout(statLayout, 0, 0)
|
maingrid.addLayout(statLayout, 0, 0)
|
||||||
maingrid.addLayout(dataLayout, 1, 0)
|
maingrid.addLayout(dataLayout, 1, 0)
|
||||||
maingrid.addWidget()
|
maingrid.setCentralWidget(self.DataPlot)
|
||||||
|
|
||||||
def setupPlot(self):
|
|
||||||
# create a matplotlib widget
|
|
||||||
self.DataPlot = MPLWidget(parent=self)
|
|
||||||
# create a layout inside the blank widget and add the matplotlib widget
|
|
||||||
layout = QVBoxLayout(self.ui.widget_PlotArea)
|
|
||||||
layout.addWidget(self.DataPlot, 1)
|
|
||||||
|
|
||||||
return layout
|
|
||||||
|
|
||||||
def plotData(self, data):
|
def plotData(self, data):
|
||||||
if data is not None and isinstance(data, Stream):
|
if data is not None and isinstance(data, Stream):
|
||||||
@ -123,6 +112,8 @@ class MainWindow(QMainWindow):
|
|||||||
self.__del__()
|
self.__del__()
|
||||||
layout.addWidget(stationButtons)
|
layout.addWidget(stationButtons)
|
||||||
|
|
||||||
|
return layout
|
||||||
|
|
||||||
def helpHelp(self):
|
def helpHelp(self):
|
||||||
if internet_on():
|
if internet_on():
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user