工控上位机控制系统通用UI框架

This commit is contained in:
2026-03-09 16:29:32 +08:00
parent 19af6e2b4e
commit a00e13b11a
54 changed files with 11356 additions and 0 deletions

View File

@ -0,0 +1,22 @@
# 该类描述和自动作业相关的状态
class CStateAutoProc:
# private:
_m_bRunProc: bool = False # 标志自动作业正在运行
_m_bNotifyStacking: bool = False # 通知码垛作业开始
# public:
@classmethod
def setProcState(cls, set_state: bool) -> None:
cls._m_bRunProc = set_state
@classmethod
def getProcState(cls) -> bool:
return cls._m_bRunProc
@classmethod
def setNotifyStacking(cls, set_state: bool) -> None:
cls._m_bNotifyStacking = set_state
@classmethod
def getNotifyStacking(cls) -> bool:
return cls._m_bNotifyStacking