File: display.py

package info (click to toggle)
python-osd 0.2.12-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 124 kB
  • ctags: 136
  • sloc: ansic: 447; python: 283; makefile: 85
file content (29 lines) | stat: -rw-r--r-- 631 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env python
#
# $Id$
#
# Time-stamp: <2003-12-16 13:45:51 resolve>
#
# Copyright (C) Damien Elmes <resolve@repose.cx>, 2001.
# This file is licensed under the GPL. Please see COPYING for more details.
#


"""
Plugin for displaying arbitrary messages.
"""

import pyosd, pyosd.daemon as pyd
import string

class plugin:

    def __init__(self):
        self.plugin_name = "display"
        self.plugin_desc = "display an arbitrary message"
        self.plugin_keys = ["display"]

    def display(self, *args):
        pyd.top.set_colour("#bbbbFF")
        pyd.top.set_timeout(3)
        pyd.top.display(string.join(args))