MCPcopy Create free account
hub / github.com/Image-Py/imagepy / menu_drop

Function menu_drop

imagepy/ui/toolsloader.py:68–76  ·  view source on GitHub ↗
(parent, toolbar, datas, btn, e)

Source from the content-addressed store, hash-verified

66 return toolsbar
67
68def menu_drop(parent, toolbar, datas, btn, e):
69 menu = wx.Menu()
70 for data in datas[1][1:]:
71 item = wx.MenuItem(menu, wx.ID_ANY, data[0].title, wx.EmptyString, wx.ITEM_NORMAL )
72
73 menu.Append(item)
74 parent.Bind(wx.EVT_MENU, lambda x,p=data[1]:add_tools(toolbar, p), item)
75 parent.PopupMenu( menu )
76 menu.Destroy()
77
78def f(plg, e):
79 ##! TODO: What's this? for wx.EVT_LEFT_DOWN

Callers 1

buildToolsBarFunction · 0.85

Calls 2

add_toolsFunction · 0.85
BindMethod · 0.45

Tested by

no test coverage detected