You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PROFIBUS/UI/AreaMansge.py

29 lines
785 B
Python

2 years ago
class AreaWidgetManage:
def __init__(self):
# self.label = [] #主站AI DI与从站AODO,没有确定按钮
# self.lineEdit = [] #存放主站AODO与从站AIDI有确定按钮
self.areaAllWidgets = []
def addWidgets(self,areaWidgets):
#主站AI DI没有确定按钮 从站AIDI有确定按钮
#主站AODO有确定按钮 从站AODO没有确定按钮
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)