def selectImage(self):
     selectedImage = FileService.openFileNameDialog(self, self) 
     print(selectedImage)
     selectedImage = str(selectedImage)
     print(selectedImage)
     if (selectedImage != None or selectedImage != ""):
         self.selectedImageLabel.setPixmap(QtGui.QPixmap(selectedImage))
예제 #2
0
 def OpenBrowseFile(self):
     ImageFileName = FileService.openFileNameDialog(self.Form, self.Form)
     if (ImageFileName != None and ImageFileName != ""):
         file = FileService.openFileContent(self, ImageFileName)
     else:
         #handle no file warning 
         return
     self.ImageData = file.read()
     self.ImageName = ImageFileName
     self.EmitSwitch(self.ImageData)