screenlets.menu.ApplicationMenu

Package screenlets :: Module menu :: Class ApplicationMenu |
[hide private]
[frames] | no frames]

# Class ApplicationMenu

source code

    object --+
             |
            ApplicationMenu

A utility-class to simplify the creation of gtk.Menus from directories with desktop-files. Reads all files in one or multiple directories into its internal list and offers an easy way to create entire categories as complete gtk.Menu with gtk.ImageMenuItems.

Instance Methods | [hide private]
__init__(self, path) constructor | source code
read_directory(self, path) read all desktop-files in a directory into the internal list and sort them into the available categories | source code
get_menu_for_category(self, cat_name, callback) returns a gtk.Menu with all apps in the given category | source code
Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Class Variables | [hide private]
| __path = ``'````'``
| __applications = ``[``]``

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, path) (Constructor) | source code
constructor Overrides: object.__init__