Phrancis
0
Q:

toolbar pyqt

test = QAction(QIcon("myIcon.svg"), "new Item", self)
0
toolbar =  self.addToolBar("File") # create our toolbar
edit=QAction(QtGui.QIcon("edit.png"),"Edit",self) # create a QAction
saveEdit=QAction(QtGui.QIcon("save.png"),"Save",self) # create another one
toolbar.addAction(edit) # ---
#						     | --- add them to our toolbar
toolbar.addAction(edit) # ---  
0

New to Communities?

Join the community