Personalized Menubar PyQt

0

Hello, I have a project for which I'm doing a menu bar.

However I want to know how I can move the menus that are added and how I can change its content and its background color is to say that it can handle all the properties.

I want to get a result like the one in the image.

import sys
from PyQt5.QtWidgets import QMainWindow, QApplication, QMenuBar, QMenu
from PyQt5.QtGui import QIcon

      class Diaogo(QMainWindow):
        def __init__(self):
        QMainWindow.__init__(self)

        menu = self.menuBar()
        a = menu.addMenu('Archivo')
        b = menu.addMenu('Edicion')
        a.setGeometry(20,20,20,20) # No funciona para cambiar la posision        
app = QApplication([])
dialogo = Diaogo()
dialogo.show()
app.exec_()
    
asked by Angel Judath Alvarez 03.03.2018 в 21:04
source

0 answers