(self)
Constructor initializes a default value for the brightness, creates
            the main menu entries, and constructs a central widget that contains
            enough space for images to be displayed.
Constructor initializes a default value for the brightness, creates
            the main menu entries, and constructs a central widget that contains
            enough space for images to be displayed.
Constructor initializes a default value for the brightness creates the main menu entries and constructs a central widget that contains enough space for images to be displayed .
def __init__(self):
        """ Constructor initializes a default value for the brightness, creates
            the main menu entries, and constructs a central widget that contains
            enough space for images to be displayed.
        """
        super(Viewer, self).__init__()

        self.scaledImage = QImage()
        self.menuMap = {}
        self.path = ''
        self.brightness = 255

        self.setWindowTitle("QImage Color Separations")

        self.createMenus()
        self.setCentralWidget(self.createCentralWidget())
def __init__ ( self ) : super ( Viewer , self ) . __init__ ( ) self . scaledImage = QImage ( ) self . menuMap = { } self . path = '' self . brightness = 255 self . setWindowTitle ( "QImage Color Separations" ) self . createMenus ( ) self . setCentralWidget ( self . createCentralWidget ( ) )