[PyQt] setPixmap() bug?

DSblizzard dsblizzard at gmail.com
Thu Dec 17 04:11:38 GMT 2009

In my program I have this:

	def paintEvent(self, Event):

	def draw_view(self):
		from Main import Painter, Pixmap
		# ...
		print(1)  # (1)
		self.label.setPixmap(Pixmap)  # (2)
		# ...

If (2) line is commented out everything is Ok (but doesn't work as I needed,
of course) and (1) doesn't executed, if I do nothing. But in case without
comments (1) and (2) are executed continuously and processor is 100% loaded.
What's the problem and solution?

View this message in context: http://old.nabble.com/setPixmap%28%29-bug--tp26822844p26822844.html
Sent from the PyQt mailing list archive at Nabble.com.

More information about the PyQt mailing list