(parent, data, curpath)
| 18 | root.Append(mi) |
| 19 | |
| 20 | def buildMenu(parent, data, curpath): |
| 21 | menu = wx.Menu() |
| 22 | for item in data[1]: |
| 23 | if isinstance(item, tuple): |
| 24 | ## TODO: fixed by auss |
| 25 | nextpath = curpath + '.' + item[0].title |
| 26 | #print(nextpath) |
| 27 | LanguageManager.add(item[0].title) |
| 28 | menu.Append(-1, LanguageManager.get(item[0].title), buildMenu(parent, item,nextpath)) |
| 29 | else: |
| 30 | buildItem(parent, menu, item) |
| 31 | return menu |
| 32 | |
| 33 | def buildMenuBar(parent, datas, menuBar=None): |
| 34 | if menuBar==None: |
no test coverage detected