# Form implementation generated from reading ui file 'untitled.ui'
#
# Created by: PyQt6 UI code generator 6.6.1
#
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt6 import QtCore, QtWidgets

from pages.bse_page import BasePage


# 定义包含样式，比如循环中需要包含其他元素
class IncludeActionUi(BasePage):
    def __init__(self):
        super().__init__()
        self.action_list = None

    def widget(self, level):
        widget = QtWidgets.QWidget()
        widget.setObjectName("include_widget")
        widget.setStyleSheet("background-color: white;")
        label = QtWidgets.QLabel(parent=widget)
        label.setGeometry(QtCore.QRect(30, 10, 54, 12))
        label.setText("循环")
        from pages.edit_action_list_view import ActionList
        self.action_list = ActionList(parent=widget, level=level)
        widget.setProperty("action_list", self.action_list)
        self.action_list.setGeometry(QtCore.QRect(20, 30, widget.width() - 10, 20))
        widget.setFixedHeight(self.action_list.height() + 40)
        return widget
