[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyQt] PyQwt and QwtPlotRasterItem
From: Matti Lyra <matti.lyra () gmail ! com>
Date: 2010-08-31 15:44:12
Message-ID: 90E8582E-C345-4D9B-8140-BCFB39A69682 () gmail ! com
[Download RAW message or body]
I'm trying to add a raster element on top of a plot created with PyQwt but I get the \
following error when invoking the raster item constructor.
self.crosshair = Qwt.QwtPlotRasterItem("path/to/img.png")
results in
TypeError: PyQt4.Qwt5.Qwt.QwtPlotRasterItem represents a C++ abstract class and \
cannot be instantiated
I get the same error trying to load a JPEG or omitting the path altogether. It \
doesn't say in the Qwt docs that the class is abstract and in the PyQwt docs it says \
that the class is fully implemented.
[Qwt docs] : http://qwt.sourceforge.net/class_qwt_plot_raster_item.html
[PyQwt docs] : http://pyqwt.sourceforge.net/doc5/reference.html#PyQt4.Qwt5.QwtPlotRasterItem
What to do??
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic