def __init__(self):
        IntervalConditionPlugin.__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.interval = None  # interval in 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):
        IntervalConditionPlugin.__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.interval = None                # interval in 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):
     IntervalConditionPlugin.__init__(
         self,
         basename=plugin_name(__file__),
         name=_("Time Interval"),
         description=_("Occur Periodically after an Amount of Time"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='pie_chart',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.builder = self.get_dialog('plugin_cond-time-interval')
     self.plugin_panel = None
     self.forward_allowed = False
     self.interval = None
Exemplo n.º 4
0
 def __init__(self):
     IntervalConditionPlugin.__init__(
         self,
         basename=plugin_name(__file__),
         name=_("Time Interval"),
         description=_("Occur Periodically after an Amount of Time"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='pie_chart',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.builder = self.get_dialog('plugin_cond-time-interval')
     self.plugin_panel = None
     self.forward_allowed = False
     self.interval = None