Answers for "toolbar pyqt"

0

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) # ---
Posted by: Guest on November-28-2020
0

create QAction with icon in pyqt

test = QAction(QIcon("myIcon.svg"), "new Item", self)
Posted by: Guest on November-26-2020

Python Answers by Framework

Browse Popular Code Answers by Language