def ChangeButtonLabel(self, btn, new_label): """ Change the label of the Log button depending on the active plug-in """ ### if activity plug-in is enabled if is_enable('start_activity_tracking'): self._btn4.SetLabel("Activity")
def ChangeButtonLabel(self, btn, new_label): """ Change the label of the Log button depending on the active plug-in """ ### if activity plug-in is enabled if is_enable('start_activity_tracking'): self._btn4.SetLabel("Activity")
def start_state_trajectory(*args, **kwargs): """ Start the definition of the state trajectory attributes for all selected block model """ master = kwargs['master'] parent = kwargs['parent'] if not pluginmanager.is_enable('start_activity_tracking'): for devs in GetFlatDEVSList(master, []): block = devs.getBlockModel() if hasattr(block, 'state_trajectory'): devs = state_trajectory_decorator(devs) else: sys.stdout.write("Activity pattern must be disabled!\n")