This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
class AreaWidgetManage:
def __init__(self):
# self.label = [] #主站AI, DI与从站AO,DO,没有确定按钮
# self.lineEdit = [] #存放主站AO,DO与从站AI,DI,有确定按钮
self.areaAllWidgets = []
def addWidgets(self,areaWidgets):
#主站AI, DI没有确定按钮 从站AI,DI有确定按钮
#主站AO,DO有确定按钮 , 从站AO,DO没有确定按钮
self.areaAllWidgets.append(areaWidgets)
def getAllWidgets(self):
l = []
for areaWidgets in self.areaAllWidgets:
for areawidget in areaWidgets:
l.append(areawidget)
return l
def delareaWidget(self, index):
self.areaAllWidgets.pop(index)