pyqtgraph window position
Cousin Stanley
cousinstanley at gmail.com
Fri Feb 13 20:47:55 EST 2015
> I can control the size of my pyqtgraph window below
> with 'resize'.
>
> But how can I control the position on the screen ?
>
> import pyqtgraph as pg
>
> w = pg.GraphicsWindow()
> w.resize(250,400)
>
> for i in range(4):
> w.addPlot(0, i)
>
> def onClick(event):
> but=event.button()
> print("but: ",but)
>
> w.scene().sigMouseClicked.connect(onClick)
try ....
pos_x = 300
pos_y = 400
w.move( pos_x , pos_y )
--
Stanley C. Kitching
Human Being
Phoenix, Arizona
More information about the Python-list
mailing list