Esempio n. 1
0
 def toolbar(self, title, actions=None):
     toolbar = ToolBar(title)
     toolbar.setObjectName('%sToolBar' % title)
     #toolbar.setOrientation(Qt.Vertical)
     toolbar.setToolButtonStyle(Qt.ToolButtonTextUnderIcon)
     if actions:
         addActions(toolbar, actions)
     self.addToolBar(Qt.LeftToolBarArea, toolbar)
     return toolbar
Esempio n. 2
0
 def toolbar(self, title, actions=None):
     toolbar = ToolBar(title)
     toolbar.setObjectName('%sToolBar' % title)
     #toolbar.setOrientation(Qt.Vertical)
     toolbar.setToolButtonStyle(Qt.ToolButtonTextUnderIcon)
     if actions:
         addActions(toolbar, actions)
     self.addToolBar(Qt.LeftToolBarArea, toolbar)
     return toolbar