Module hiew :: Class Menu
[frames] | no frames]

Class Menu

object --+    
         |    
   Control --+
             |
            Menu

Menu control

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
Create(self, title, lines, width, main_keys='', alt_keys='', ctrl_keys='', shift_keys='')
Creates a control but does not show it.
 
Show(self, sel_line=0)
Shows the main menu.

Inherited from Control: __del__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

Create(self, title, lines, width, main_keys='', alt_keys='', ctrl_keys='', shift_keys='')

 

Creates a control but does not show it.

Parameters:
  • title - control title
  • lines - a list of lines
  • width - control width
  • is_window - control type
  • main_keys - main key lines (optional)
  • alt_keys - main key lines (optional)
  • ctrl_keys - ctrl key lines (optional)
  • shift_keys - shift key lines (optional)
Returns:
Boolean == control was compiled successfully
Overrides: Control.Create
(inherited documentation)

Show(self, sel_line=0)

 

Shows the main menu. Refer to Control.Show()

Parameters:
  • sel_line - Initial selected line
Returns:
tuple(-1|lineno, 0|HEM_FNKEY_xxx)
Overrides: Control.Show