ladiesfinger
10th January 2011, 14:58
( Lang : Python 3.1 )
I have implemented two QPixmap widgets and intended to show images via them.
The first one shows the input image the user has chosen & the second one will show the output file of an image processing tool . You will understand easily if u see the code :
#First image - Input selected through a file dialog ( self.input is filename )
self.item1=QtGui.QGraphicsPixmapItem(QtGui.QPixmap (self.input))
self.scene1.addItem(self.item1)
self.view1.show()
#The processing Tool - a commandline utility
subprocess.Popen(self.com,shell=True)
#Second Image- Output After processing ( I get filename-self.output from LineEdit )
self.item2=QtGui.QGraphicsPixmapItem(QtGui.QPixmap (self.output))
self.scene2.addItem(self.item2)
self.view2.show()
Problem:
First Image Shows without any problem .
Output image never shows . But it is generated by the processing tool as usual.
Plz , help me . I can't figure it out
I have implemented two QPixmap widgets and intended to show images via them.
The first one shows the input image the user has chosen & the second one will show the output file of an image processing tool . You will understand easily if u see the code :
#First image - Input selected through a file dialog ( self.input is filename )
self.item1=QtGui.QGraphicsPixmapItem(QtGui.QPixmap (self.input))
self.scene1.addItem(self.item1)
self.view1.show()
#The processing Tool - a commandline utility
subprocess.Popen(self.com,shell=True)
#Second Image- Output After processing ( I get filename-self.output from LineEdit )
self.item2=QtGui.QGraphicsPixmapItem(QtGui.QPixmap (self.output))
self.scene2.addItem(self.item2)
self.view2.show()
Problem:
First Image Shows without any problem .
Output image never shows . But it is generated by the processing tool as usual.
Plz , help me . I can't figure it out