(parent, datas, menuBar=None)
| 31 | return menu |
| 32 | |
| 33 | def buildMenuBar(parent, datas, menuBar=None): |
| 34 | if menuBar==None: |
| 35 | menuBar = wx.MenuBar() |
| 36 | for data in datas[1]: |
| 37 | if len(data[1]) == 0: |
| 38 | continue |
| 39 | LanguageManager.add(data[0].title) |
| 40 | menuBar.Append(buildMenu(parent, data, data[0].title), LanguageManager.get(data[0].title)) |
| 41 | return menuBar |
| 42 | |
| 43 | #!ToDO: tongguo lujing goujian menu |
| 44 | def buildMenuBarByPath(parent, path, extends, menuBar=None, report=False): |
no test coverage detected