diff --git a/pylot/PyLoT.ico b/pylot/PyLoT.ico new file mode 100644 index 00000000..81bd4cf5 Binary files /dev/null and b/pylot/PyLoT.ico differ diff --git a/pylot/QtPyLoT.py b/pylot/QtPyLoT.py index fad213cc..b25dacca 100755 --- a/pylot/QtPyLoT.py +++ b/pylot/QtPyLoT.py @@ -23,9 +23,11 @@ class MainWindow(QMainWindow): def __init__(self, parent=None): super(MainWindow, self).__init__(parent) + self.setWindowIcon(QIcon("PyLoT.ico")) + # create central matplotlib figure widget - dataPlot = setupPlot() - self.setCentralWidget(dataPlot) + setupPlot() + self.setCentralWidget(self.DataPlot) filterOptionsP = FILTERDEFAULTS['P'] filterOptionsS = FILTERDEFAULTS['S'] @@ -45,6 +47,10 @@ class MainWindow(QMainWindow): layout = QtGui.QVBoxLayout(self.ui.widget_PlotArea) layout.addWidget(self.DataPlot, 1) + def plotData(self, data): + if data is not None and isinstance(data, Stream): + self.DataPlot.height + class PickWindow(QDialog):