工控上位机控制系统通用UI框架
This commit is contained in:
22
wndCtrl/stateCtrl/clsSysState_autoproc.py
Normal file
22
wndCtrl/stateCtrl/clsSysState_autoproc.py
Normal 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
|
||||
Reference in New Issue
Block a user