parameters: (self, imageFile)
docstring: Load the image from the file given, and create four pixmaps based
              on the original image.
              The window caption is set, and the Brightness menu enabled if the image file
              can be loaded.
docstring_summary: Load the image from the file given, and create four pixmaps based
              on the original image.
              The window caption is set, and the Brightness menu enabled if the image file
              can be loaded.
docstring_tokens: Load the image from the file given and create four pixmaps based on the original image . The window caption is set and the Brightness menu enabled if the image file can be loaded .
function: def openImageFile(self, imageFile):
          """ Load the image from the file given, and create four pixmaps based
              on the original image.
              The window caption is set, and the Brightness menu enabled if the image file
              can be loaded.
          """
          originalImage = QImage()
  
          if originalImage.load(imageFile):
              self.setWindowTitle(imageFile)
              self.saveAction.setEnabled(True)
              self.brightnessMenu.setEnabled(True)
  
              self.scaledImage = originalImage.scaled(256, 256, Qt.KeepAspectRatio)
  
              self.cyanWidget.setImage(self.scaledImage)
              self.magentaWidget.setImage(self.scaledImage)
              self.yellowWidget.setImage(self.scaledImage)
              self.createImage()
          else:
              QMessageBox.warning(self, "Cannot open file",
                      "The selected file could not be opened.",
                      QMessageBox.Cancel, QMessageBox.NoButton,
                      QMessageBox.NoButton)
function_tokens: def openImageFile ( self , imageFile ) : originalImage = QImage ( ) if originalImage . load ( imageFile ) : self . setWindowTitle ( imageFile ) self . saveAction . setEnabled ( True ) self . brightnessMenu . setEnabled ( True ) self . scaledImage = originalImage . scaled ( 256 , 256 , Qt . KeepAspectRatio ) self . cyanWidget . setImage ( self . scaledImage ) self . magentaWidget . setImage ( self . scaledImage ) self . yellowWidget . setImage ( self . scaledImage ) self . createImage ( ) else : QMessageBox . warning ( self , "Cannot open file" , "The selected file could not be opened." , QMessageBox . Cancel , QMessageBox . NoButton , QMessageBox . NoButton )