From: Alessandro M. <ale...@wa...> - 2001-12-12 22:36:14
|
Hi all, I have posted a patch on sf.net containing my answer to the wishes for pyqtplplot : - page control has been implemented through the very powerful signal and slot mechanism : before processing the example-string, the occurrences of pladv in this string are replaced by "controlobject.waitRelease()". It is a method that loops with the mainloop. Then a connection between a PYSIGNAL that is emitted when the right button is pressed in the plplot widget and the method controlobject.release() lets you pass to the following example with a click. - debugging messages have been removed For Alan: The __attr method that is now commented was used in order to manipolated plplot widget as if they were object: if plw is a qplplot widget , the call to plw.line() was wrapped by method __getattr__. The plline was stored in self.__attr and called later by the returned wrap method. I also have a small wish list : I would like to do all interactive processing using qt facilities. To do this I would like to bypass the gin.x, gin.y mechanism by intercepting event in the eventFilter. So I need a method ( that I could eventually export to python) that given (x,y) in the device coordinates ( those known by qt) return me the coordinates of the point Can somebody suggest me the best method to do this? best wishes Alessandro Mirone |