MCPcopy Create free account
hub / github.com/MCSLTeam/MCSL2 / refreshPage

Method refreshPage

MCSL2Lib/Pages/selectJavaPage.py:111–123  ·  view source on GitHub ↗

刷新Java列表

(self, JavaPath)

Source from the content-addressed store, hash-verified

109 self.javaSmoothScrollArea.setAttribute(Qt.WA_StyledBackground)
110
111 def refreshPage(self, JavaPath):
112 """刷新Java列表"""
113 self.javaItemFlowLayout.takeAllWidgets()
114 for i in range(len(JavaPath)):
115 self.javaItemFlowLayout.addWidget(
116 SingleSelectJavaWidget(
117 btnName=f"finishSelectJavaBtn{str(i)}",
118 selectBtnSlot=lambda: self.scrollAreaProcessor(JavaPath),
119 backBtnSlot=self.backBtn.click,
120 path=JavaPath[i].path,
121 ver=JavaPath[i].version,
122 )
123 )
124
125 def scrollAreaProcessor(self, JavaPath):
126 """判断索引"""

Callers 1

initQtSlotMethod · 0.80

Calls 3

scrollAreaProcessorMethod · 0.95
addWidgetMethod · 0.45

Tested by

no test coverage detected