pyqtgraph window position

Poul Riis priisdk at gmail.com
Fri Feb 13 05:56:40 EST 2015


I can control the size of my pyqtgraph window below with 'resize'.
But how can I control the position on the screen?

Poul Riis


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)



More information about the Python-list mailing list