Пример #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
Пример #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