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))
|