MCPcopy Index your code
hub / github.com/PyQt5/PyQt / jumpSettingWidget

Method jumpSettingWidget

QPropertyAnimation/FlipWidgetAnimation.py:110–119  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

108 self.flipWidget.updateImages(FlipWidget.Right, image2, image1)
109
110 def jumpSettingWidget(self):
111 # 翻转到设置界面
112 self.setWindowOpacity(0) # 类似隐藏,但是保留了任务栏
113 self.setCurrentWidget(self.settingWidget) # 很重要,一定要先切换过去,不然会导致第一次截图有误
114 image1 = self.loginWidget.grab() # 截图1
115 image2 = self.settingWidget.grab() # 截图2
116 padding = 100 # 扩大边距 @UnusedVariable
117 self.flipWidget.setGeometry(self.geometry())
118 # .adjusted(-padding, -padding, padding, padding))
119 self.flipWidget.updateImages(FlipWidget.Left, image1, image2)
120
121
122if __name__ == '__main__':

Callers

nothing calls this directly

Calls 4

setWindowOpacityMethod · 0.80
setCurrentWidgetMethod · 0.80
setGeometryMethod · 0.80
updateImagesMethod · 0.80

Tested by

no test coverage detected