AGW Logo

flatmenu functions

This is the description of standalone Python functions in the flatmenu module.

method_summary Functions Summary


ConvertToMonochrome Converts a bitmap to monochrome colour.
GetAccelIndex Returns the mnemonic index of the label and the label stripped of the ampersand mnemonic (e.g.
GetMRUEntryLabel Returns the string used for the MRU list items in the menu.

API Functions API



ConvertToMonochrome(bmp)[source]

Converts a bitmap to monochrome colour.

Parameters:bmp – a valid wx.Bitmap object.


GetAccelIndex(label)[source]

Returns the mnemonic index of the label and the label stripped of the ampersand mnemonic (e.g. ‘lab&el’ ==> will result in 3 and labelOnly = label).

Parameters:label (string) – a string possibly containining an ampersand.


GetMRUEntryLabel(n, path)[source]

Returns the string used for the MRU list items in the menu.

Parameters:
  • n (integer) – the index of the file name in the MRU list;
  • path (string) – the full path of the file name.

Note

The index n is 0-based, as usual, but the strings start from 1.

Tree

Table Of Contents

Previous topic

mcPopupWindow

Next topic

SVN Revision 68352 For flatmenu