Hi to all,
I found the solution. I report it for reference.
When you add a QT4 widget to a matplotlib figure always save a reference of
the QT4 widget, otherwise the object will be deleted (even if it is shown
in the GUI) and the user interaction will not work.
Here it it the working example (al
Hi,
same problem with ipython 0.12 and matplotlib 1.1.1rc.
To recall, I'm trying to add a QT4 widget to a matplotlib figure (MPL is
using Qt4 as backend). However, in the attached example the widget callback
(or slot) is not called. Oddly, if I add the qt4 widget manually calling
qt4_interface()
Hi,
I want to add a QT4 widget to a matplotlib figure, but the widget does not
react to user input.
Here it is a test case:
from PyQt4 import QtGui, QtCore
from pylab import *
def test():
plot([1,2,3], lw=2)
qt4_interface(gcf())
class qt4_interface:
def __init__(self,fig):