diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-03-09 02:22:09 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-03-09 02:22:09 +0100 |
commit | 64cc9bf50aa051a6dc1b7521f2e5032c7e844d99 (patch) | |
tree | a2e946ca745549e79ccf196f0b57e4c7175e6e66 /src/plugins | |
parent | moc demo (diff) | |
download | xpybar-64cc9bf50aa051a6dc1b7521f2e5032c7e844d99.tar.gz xpybar-64cc9bf50aa051a6dc1b7521f2e5032c7e844d99.tar.bz2 xpybar-64cc9bf50aa051a6dc1b7521f2e5032c7e844d99.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/moc.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/plugins/moc.py b/src/plugins/moc.py index 35cca05..709192f 100644 --- a/src/plugins/moc.py +++ b/src/plugins/moc.py @@ -77,7 +77,7 @@ class MOC: # TODO add support for waiting for events def __getitem__(self, key): ''' - Get a detailing + Get a details @param key:str The key @return :str The value associated with the key @@ -90,6 +90,15 @@ class MOC: # TODO add support for waiting for events return self.__info[key] + def keys(self): + ''' + Get available detail keys + + @return :itr<str> The keys + ''' + return self.__info.keys() + + @staticmethod def __interact(*args): ''' |