from PyKDE4.kdeui import KApplication, KIconLoader
+from sys import exit as exit_
from math import sin, cos, pi
# And for starting programs
#: The items the menu should show in top-level (via folders this contains the whole of the wheel menu).
ITEMS = [(CENTER_ICON, None), # the center item
("kate","kate"), ("kmail","kmail"), ("kmix","kmix"), ("wesnoth","wesnoth"), # normal items
None, '" + CENTER_ICON + "' )('gimp','gimp')]") # a folder with the center icon and only one real item
+ ("krita","[('" + CENTER_ICON + "'('gimp','gimp')]") # a folder with the center icon and only one real item
# Make sure we get focus events
if self.isInside(pos, i):
+ if i.action == "[":
# and store the current items in the new center.
# as long as the user didn't click the center
if not i == self.circle:
- items = ( CENTER_ICON , str(self.circle) )
+ items = ( CENTER_ICON , str(self.circle) )
# We don't do anything else in that case.
"""Arrange all icons in a circle, with the zeroth in the middle."""
# First remove the previous items
for label in self.circle[:]:
# Then create the circle list
+ # Finally show the new circle