Package screenlets :: Module menu :: Class ApplicationMenu

[hide private]
[frames] | no frames]

# Class ApplicationMenu

source code
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

Class Variables | [hide private]

| __path = ``'````'``
| __applications = ``[``]``