Snapshot/SnapshotTimer.py

branch
Py2 comp.
changeset 3060
5883ce99ee12
parent 3058
0a02c433f52d
parent 3039
8dd0165d805d
child 3145
a9de05d4a22f
equal deleted inserted replaced
3058:0a02c433f52d 3060:5883ce99ee12
114 @param evt enter event (QEvent) 114 @param evt enter event (QEvent)
115 """ 115 """
116 screenGeom = QApplication.desktop().screenGeometry() 116 screenGeom = QApplication.desktop().screenGeometry()
117 if self.x() == screenGeom.left(): 117 if self.x() == screenGeom.left():
118 self.move( 118 self.move(
119 screenGeom.x() + 119 screenGeom.x() +
120 (screenGeom.width() // 2 - self.size().width() // 2), 120 (screenGeom.width() // 2 - self.size().width() // 2),
121 screenGeom.top()) 121 screenGeom.top())
122 else: 122 else:
123 self.move(screenGeom.topLeft()) 123 self.move(screenGeom.topLeft())

eric ide

mercurial