0

In my project i used this mechanism .

view/
   __init__.py
   forms/
      __init__.py
      someFile.py
   images/
      __init__.py
      someImage.png

I try display image in someFile.py to reference someImage.png . I try several of this :

 self.label_8.setPixmap(QtGui.QPixmap(_fromUtf8("/view/images/someImage.png")))
 self.label_8.setPixmap(QtGui.QPixmap(_fromUtf8("view/images/someImage.png")))
 self.label_8.setPixmap(QtGui.QPixmap(_fromUtf8("images/someImage.png")))
 self.label_8.setPixmap(QtGui.QPixmap(_fromUtf8("someImage.png")))

but i could not display the image . How can I fix that ?

Cahit Yıldırım
  • 499
  • 1
  • 10
  • 26

0 Answers0