Ejemplo n.º 1
0
    def __init__(self, session, newTimer):
        self.xmlfile = Directories.resolveFilename(
            Directories.SCOPE_PLUGINS, "Extensions/AutoTimer/autotimerwizard.xml"
        )

        WizardLanguage.__init__(self, session, showSteps=True, showStepSlider=True)
        AutoTimerEditorBase.__init__(self, newTimer)
        Rc.__init__(self)

        # self.skinName = ["AutoTimerWizard", "NetworkWizard"]
        self["wizard"] = Pixmap()
        self["HelpWindow"] = Pixmap()
        self["HelpWindow"].hide()
        self["VKeyIcon"] = Boolean(False)

        self.doCancel = False
        self.emptyMatch = False
        self.tailingWhitespacesMatch = False

        # We might need to change shown items, so add some notifiers
        self.timespan.addNotifier(self.regenTimespanList, initial_call=False)
        self.generateTimespanList()

        self.servicesDlg = self.session.instantiateDialog(
            AutoTimerServiceEditor, self.serviceRestriction, self.services, self.bouquets
        )

        self.filterDlg = self.session.instantiateDialog(
            AutoTimerFilterEditor, self.filterSet, self.excludes, self.includes
        )

        self["TextEntryActions"] = ActionMap(
            ["TextEntryActions"], {"deleteForward": self.deleteForward, "deleteBackward": self.deleteBackward}, -2
        )
Ejemplo n.º 2
0
    def __init__(self, session, newTimer):
        self.xmlfile = Directories.resolveFilename(
            Directories.SCOPE_PLUGINS,
            "Extensions/AutoTimer/autotimerwizard.xml")

        WizardLanguage.__init__(self,
                                session,
                                showSteps=True,
                                showStepSlider=True)
        AutoTimerEditorBase.__init__(self, newTimer)
        Rc.__init__(self)

        self.skinName = ["AutoTimerWizard", "NetworkWizard"]
        self["wizard"] = Pixmap()
        self["HelpWindow"] = Pixmap()
        self["HelpWindow"].hide()
        self["VKeyIcon"] = Boolean(False)

        self.doCancel = False
        self.emptyMatch = False
        self.tailingWhitespacesMatch = False

        # We might need to change shown items, so add some notifiers
        self.timespan.addNotifier(self.regenTimespanList, initial_call=False)
        self.generateTimespanList()

        self.servicesDlg = self.session.instantiateDialog(
            AutoTimerServiceEditor, self.serviceRestriction, self.services,
            self.bouquets)

        self.filterDlg = self.session.instantiateDialog(
            AutoTimerFilterEditor, self.filterSet, self.excludes,
            self.includes)

        self["TextEntryActions"] = ActionMap(
            ["TextEntryActions"], {
                "deleteForward": self.deleteForward,
                "deleteBackward": self.deleteBackward
            }, -2)