コード例 #1
0
ファイル: quotes4all.py プロジェクト: kran0/dotfiles
    def __init__(self):
        """
        Creates a new instance of this class (used by termsaver script)
        """
        SimpleRSSFeedScreenBase.__init__(
            self, "quotes4all",
            _("displays recent quotes from quotes4all.net"),
            "http://quotes4all.net/rss/360010110/quotes.xml",
            ["title", "description"], '"%(description)s" -- %(title)s', 0.015)

        # set defaults for this screen
        self.sleep_between_items = 10
        self.line_delay = 0
        self.cleanup_per_cycle = True
        self.cleanup_per_item = True
        self.center_vertically = True
        self.center_horizontally = True
        self.clean_dirt = ["\n", "  "]
コード例 #2
0
ファイル: jokes4all.py プロジェクト: kran0/dotfiles
    def __init__(self):
        """
        The constructor of this class, using most default values from its super
        class, `SimpleRSSFeedScreenBase`.

        NOTE: Maybe NSFW (Not Safe For Work)
        """
        SimpleRSSFeedScreenBase.__init__(
            self, "jokes4all",
            _("displays recent jokes from jokes4all.net (NSFW)"),
            "http://jokes4all.net/rss/360010113/jokes.xml",
            ["pubDate", "link", "description"],
            '\n%(description)s\n\n%(pubDate)s %(link)s\n', 0.015)

        # set defaults for this screen
        self.sleep_between_items = 30
        self.line_delay = 0
        self.cleanup_per_item = True
        self.cleanup_per_cycle = True
        self.center_vertically = True
コード例 #3
0
ファイル: quotes4all.py プロジェクト: AkBKukU/termsaver
    def __init__(self):
        """
        Creates a new instance of this class (used by termsaver script)
        """
        SimpleRSSFeedScreenBase.__init__(self,
            "quotes4all",
            _("displays recent quotes from quotes4all.net"),
            "http://quotes4all.net/rss/360010110/quotes.xml",
            ["title", "description"],
            '"%(description)s" -- %(title)s',
            0.015
        )

        # set defaults for this screen
        self.sleep_between_items = 10
        self.line_delay = 0
        self.cleanup_per_cycle = True
        self.cleanup_per_item = True
        self.center_vertically = True
        self.center_horizontally = True
        self.clean_dirt = ["\n", "  "]
コード例 #4
0
ファイル: jokes4all.py プロジェクト: AkBKukU/termsaver
    def __init__(self):
        """
        The constructor of this class, using most default values from its super
        class, `SimpleRSSFeedScreenBase`.

        NOTE: Maybe NSFW (Not Safe For Work)
        """
        SimpleRSSFeedScreenBase.__init__(self,
            "jokes4all",
            _("displays recent jokes from jokes4all.net (NSFW)"),
            "http://jokes4all.net/rss/360010113/jokes.xml",
            ["pubDate", "link", "description"],
            '\n%(description)s\n\n%(pubDate)s %(link)s\n',
            0.015
        )

        # set defaults for this screen
        self.sleep_between_items = 30
        self.line_delay = 0
        self.cleanup_per_item = True
        self.cleanup_per_cycle = True
        self.center_vertically = True