DirectOptionMenu

Inheritance:

Methods of DirectOptionMenu:

__init__
def __init__(self, parent=None, **kw)

Undocumented function.

_highlightItem
def _highlightItem(self, item, index)

Set frame color of highlighted item, record index

_unhighlightItem
def _unhighlightItem(self, item, frameColor)

Clear frame color, clear highlightedIndex

commandFunc
def commandFunc(self, event)

Override popup menu button's command func Command is executed in response to selecting menu items

get
def get(self)

Get currently selected item

hidePopupMenu
def hidePopupMenu(self, event=None)

Put away popup and cancel frame

index
def index(self, index)

Undocumented function.

selectHighlightedIndex
def selectHighlightedIndex(self, event=None)

Check to see if item is highlighted (by cursor being within that item). If so, selected it. If not, do nothing

set
def set(self, index, fCommand=1)

Undocumented function.

setItems
def setItems(self)

self['items'] = itemList Create new popup menu to reflect specified set of items

showPopupMenu
def showPopupMenu(self, event=None)

Make popup visible and try to position it just to right of mouse click with currently selected item aligned with button. Adjust popup position if default position puts it outside of visible screen region