Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

toolbar pyqt

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) # ---  
 
PREVIOUS NEXT
Tagged: #toolbar #pyqt
ADD COMMENT
Topic
Name
7+2 =