superkaramba
#include <Python.h>


Go to the source code of this file.
Functions | |
PyObject * | py_add_menu_item (PyObject *self, PyObject *args) |
PyObject * | py_add_menu_separator (PyObject *self, PyObject *args) |
PyObject * | py_create_menu (PyObject *self, PyObject *args) |
PyObject * | py_delete_menu (PyObject *self, PyObject *args) |
PyObject * | py_popup_menu (PyObject *self, PyObject *args) |
PyObject * | py_remove_menu_item (PyObject *self, PyObject *args) |
Function Documentation
Menu/addMenuItem.
SYNOPSIS long addMenuItem(widget, menu, text, icon) DESCRIPTION This adds an entry to the given menu with label text and with given icon. icon can be just an application name in which case the user's current icon set is used, or can be a path to a 16x16 png file.
The function returns the id of the menu item, which identifies that popup menu item uniquely among popupmenu items application-wide or returns 0 if the given menu doesn't exist. ARGUMENTS
- long widget – karamba
- long menu – pointer to menu
- string text – text for menu item
- string icon – icon RETURN VALUE menu item id
Menu/popupMenu.
SYNOPSIS long popupMenu(widget, menu, x, y) DESCRIPTION This pops up the given menu at the given co-ordinates. The co-ordinates are relative to the widget, not the screen. You can use negative co-ordinates to make a menu appear to the right of or above your theme. ARGUMENTS
- long widget – karamba
- long menu – pointer to menu
- long x – x coordinate
- long y – y coordinate RETURN VALUE 1 if the menu existed and was popped up, returns 0 otherwise.
Menu/removeMenuItem.
SYNOPSIS long removeMenuItem(widget, menu, id) DESCRIPTION This removes the item with given id from given menu if that menu exists. ARGUMENTS
- long widget – karamba
- long menu – pointer to menu
- long id – menu item id RETURN VALUE 1 if the menu item existed and was removed or returns zero otherwise.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:07:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.