Today I worked on the toolbar, all the scripts should be able to add their own buttons. It looks terrible but it works !

Creation of a new tab:

tab = lc.ToolbarPage()
toolbar:addTab("Tab name", tab)

Remove existing tab:

toolbar:removeTab(tab)

Add a new group of button in it:

group = tab:addGroup("Group name")

Add a new button in this group:

button = group:addButtonStr("Button name")

Others functions are available as searching tab, group or button by name, or to add a button by providing a QPushButton (to add icons etc)
The placement needs some work to looks better:

  • make the buttons and groups take only needed space
  • make better use of QGridLayout in the groups