don't center widget

This commit is contained in:
iLLiCiTiT 2021-03-08 11:56:45 +01:00
parent 4ed74637b2
commit b9e84d078f

View file

@ -239,15 +239,3 @@ class PypeInfoWidget(QtWidgets.QWidget):
value_label, row, 1, 1, 1
)
return info_widget
def showEvent(self, event):
"""Center widget to center of desktop on show."""
result = super(PypeInfoWidget, self).showEvent(event)
screen_center = (
QtWidgets.QApplication.desktop().availableGeometry(self).center()
)
self.move(
screen_center.x() - (self.width() / 2),
screen_center.y() - (self.height() / 2)
)
return result