From 253a49c06b840dd07b10f3fb99103bb80a0328e1 Mon Sep 17 00:00:00 2001 From: Sebastian Wehling-Benatelli Date: Wed, 19 Mar 2014 12:24:41 +0100 Subject: [PATCH] implementation of the PyLoT icon --- pylot/PyLoT.ico | Bin 0 -> 2238 bytes pylot/QtPyLoT.py | 10 ++++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 pylot/PyLoT.ico diff --git a/pylot/PyLoT.ico b/pylot/PyLoT.ico new file mode 100644 index 0000000000000000000000000000000000000000..81bd4cf535ba07ec53377db17c01dcf1e5c261b9 GIT binary patch literal 2238 zcmcgsXH-;48ojg8jqZ#B3#bG^VGxyNVL)6kjRFd*$moiKf?-J`X_Y)GF3?CEnqUAC z8-Z5IND>;!h~ylk146ezFLXnJs3`Lq^bDRe^LM{@ZoRMW{i^PJuc{vK8FeWtf@)VF zeFY#5K#c-LVFv{X|8uc&tDmDfW>MFpy=s@S-3Bh=N^p`oFHO`A4BQ&SV0H*dz4EnBd4>sDxK zX+c|C8#+2V(ACw2o}M1`_4ToB+cp>&7-0MM?JzVngprXEcJADXUAuN+_wL=;vu6+X z?%j)h`}V=u*cc`zCNMQM#s2;Kap1rKn3<-~dNQM>sh-!P(gv=g*&qi;D|fU0vbk<_33ncX)Vs;KGFqxOnj*JUu<( z<>du$Z*O?}c*DoX2fn_(@bmM7zrQ~&UAlxTSFRu+AOL}Zfd~o;LU3>}Xfzr^LPBuu z+BIa_ixCzUhVbxkL_|a&GBOfTQBjDFjs~4hM@&o%Vq;^G>&r)6TpZ%#<8l4^b=YiHW#<`! zBeW#GM?paW3JVKSR8)lG;$oDPl;H8>$7sk9ptQ7eLBDiSHDRsU(h_)#fW!J=N;T}}9*2ETJ!UeKkjkw3OXRB;;#VKJF920s?G|Lq^W zi#?%y~s! zOE}Fu`(GRN@ze5uZ@V}{_1aKE*m}yfga`+lbJ&@+g!zSDLsEt3iekx#lUoQG`&zr7 zh%3E}^)K_&@&x5{Ro&?FT*Lj8KB&ed#6_c)jQgo*y3!e3W>QlDec%i8$|5(J9?Ce7 zkUA}YLhRN?QVzxJlxUA{Lk4|*nOqdC<}G<9LfrLxNU*HLjaSG`jIx$?tdEuZx`e*N zkSmdSX4ZuKH&&9qd^~cK7NcfR8g={^CGm$97!tC2cQ7F$N%o@VPUmeJ-B#v)MBtI^ z#ItMs`C`F1b6dg$m&@l1hRZIT&$>qoqy6T)u<&^1L;rOy4X4XHLbW6N9ll{TH9fn2 z=HlIST4?OA+`~e{6EgzjT}GvfNseJMxop@an)u(-?{7UyrG;PlgJ)Q1WcdBdvNYkB zL8NZaRnqj=2FibGa{74^E!slSKkTY$)O`=>?1_IJAOiDagy`5TtuQ+|BtphAB-~7Y`Iv{q~k$I{GYtKh9(G` z5qi*zPwY^g-w)p2roq;BHlfW^D0!&CLQ`c5&KRf6P7P9BeZDpNH=PNBWw k`qeuLqe9fX_$5D?K++LS2**XdH0pr=7(e+__&<_A0L7AxJOBUy literal 0 HcmV?d00001 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):