MCPcopy Create free account
hub / github.com/PyQt5/PyQt / resizeEvent

Method resizeEvent

Test/ButtomZoom.py:96–103  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

94 self.button2.updatePos()
95
96 def resizeEvent(self, event):
97 super(Window, self).resizeEvent(event)
98 # 更新按钮的位置
99 self.button1.updatePos()
100 # 针对不在控件中的按钮
101 self.button2.move(self.width() - self.button2.width() - 15,
102 self.height() - self.button2.height() - 10)
103 self.button2.updatePos()
104
105
106if __name__ == '__main__':

Callers

nothing calls this directly

Calls 4

updatePosMethod · 0.80
moveMethod · 0.80
widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected