刷新Java列表
(self, JavaPath)
| 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 | """判断索引""" |
no test coverage detected