Exemple #1
0
    def __init__(self):
        IdleConditionPlugin.__init__(
            self,
            basename=plugin_name(__file__),
            name=_("Template"),
            description=_("Explain here what it does"),
            author="John Smith",
            copyright="Copyright (c) 2016",
            icon='puzzle',
            help_string=HELP,
            version="0.1.0",
        )
        # the icon resource is only needed if the plugin uses a custom icon
        # self.graphics.append('plugin_icon.png')

        # the items below might be not needed and can be deleted if the
        # plugin does not have a configuration panel
        self.resources.append('plugin_template.glade')
        self.builder = self.get_dialog('plugin_template')
        self.plugin_panel = None
        self.forward_allowed = False  # forward not enabled by default

        # define this only if the plugin provides one or more scripts
        # self.scripts.append('needed_script.sh')

        # mandatory or anyway structural variables and object values follow:
        self.idlemins = None  # as the name says idle minutes
        self.summary_description = None  # must be set for all plugins

        # this variable is defined here only for demonstrational purposes
        self.value = None
    def __init__(self):
        IdleConditionPlugin.__init__(
            self,
            basename=plugin_name(__file__),
            name=_("Template"),
            description=_("Explain here what it does"),
            author="John Smith",
            copyright="Copyright (c) 2016",
            icon='puzzle',
            help_string=HELP,
            version="0.1.0",
        )
        # the icon resource is only needed if the plugin uses a custom icon
        # self.graphics.append('plugin_icon.png')

        # the items below might be not needed and can be deleted if the
        # plugin does not have a configuration panel
        self.resources.append('plugin_template.glade')
        self.builder = self.get_dialog('plugin_template')
        self.plugin_panel = None
        self.forward_allowed = False        # forward not enabled by default

        # define this only if the plugin provides one or more scripts
        # self.scripts.append('needed_script.sh')

        # mandatory or anyway structural variables and object values follow:
        self.idlemins = None                # as the name says idle minutes
        self.summary_description = None     # must be set for all plugins

        # this variable is defined here only for demonstrational purposes
        self.value = None
 def __init__(self):
     IdleConditionPlugin.__init__(
         self,
         basename=plugin_name(__file__),
         name=_("Idle Time"),
         description=_("Occur when the Workstation is Idle"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='night_portrait',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.builder = self.get_dialog('plugin_cond-time-idletime')
     self.plugin_panel = None
     self.forward_allowed = False
     self.idlemins = None
 def __init__(self):
     IdleConditionPlugin.__init__(
         self,
         basename=plugin_name(__file__),
         name=_("Idle Time"),
         description=_("Occur when the Workstation is Idle"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='night_portrait',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.builder = self.get_dialog('plugin_cond-time-idletime')
     self.plugin_panel = None
     self.forward_allowed = False
     self.idlemins = None