예제 #1
0
	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")
예제 #2
0
    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")
예제 #3
0
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")