|
From: Jorge S. <jor...@ya...> - 2015-02-18 22:02:56
|
Hi,
A recent commit against lib/matplotlib/backends/backend_qt5.py [1] causes
some errors in code that was working fine before. The error is as follows:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/home/jscandal/sw/matplotlib/matplotlib.py3/lib/matplotlib/backends
/backend_qt5.py
in enterEvent(self, event)
249
250 def enterEvent(self, event):
--> 251 FigureCanvasBase.enter_notify_event(self, event, guiEvent=event)
252
253 def leaveEvent(self, event):
TypeError: enter_notify_event() got multiple values for argument 'guiEvent'
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/home/jscandal/sw/matplotlib/matplotlib.py3/lib/matplotlib/backends
/backend_qt5.py
in leaveEvent(self, event)
253 def leaveEvent(self, event):
254 QtWidgets.QApplication.restoreOverrideCursor()
--> 255 FigureCanvasBase.leave_notify_event(self, event, guiEvent=event)
256
257 def mousePressEvent(self, event):
TypeError: leave_notify_event() got multiple values for argument 'guiEvent'
Reverting the changes introduced by the commit in lines 251 and 255 of
backend_qt5.py seems to fix the issue, in my particular use case.
Regards,
Jorge
1.
b72e0cd9e63f7cf4bec2908143c62c23666b674a
Author: Steven Silvester <ste...@ie...>
Date: Sun Feb 15 09:38:21 2015 -0600
Add guiEvent data to Qt backend
|
|
From: Thomas C. <tca...@gm...> - 2015-02-18 22:33:05
|
Can you put in a pull request with those changes please? On Wed, Feb 18, 2015, 17:03 Jorge Scandaliaris <jor...@ya...> wrote: > Hi, > A recent commit against lib/matplotlib/backends/backend_qt5.py [1] causes > some errors in code that was working fine before. The error is as follows: > > ------------------------------------------------------------ > --------------- > TypeError Traceback (most recent call last) > /home/jscandal/sw/matplotlib/matplotlib.py3/lib/matplotlib/backends > /backend_qt5.py > in enterEvent(self, event) > 249 > 250 def enterEvent(self, event): > --> 251 FigureCanvasBase.enter_notify_event(self, event, > guiEvent=event) > 252 > 253 def leaveEvent(self, event): > > TypeError: enter_notify_event() got multiple values for argument 'guiEvent' > > ------------------------------------------------------------ > --------------- > TypeError Traceback (most recent call last) > /home/jscandal/sw/matplotlib/matplotlib.py3/lib/matplotlib/backends > /backend_qt5.py > in leaveEvent(self, event) > 253 def leaveEvent(self, event): > 254 QtWidgets.QApplication.restoreOverrideCursor() > --> 255 FigureCanvasBase.leave_notify_event(self, event, > guiEvent=event) > 256 > 257 def mousePressEvent(self, event): > > TypeError: leave_notify_event() got multiple values for argument 'guiEvent' > > > > Reverting the changes introduced by the commit in lines 251 and 255 of > backend_qt5.py seems to fix the issue, in my particular use case. > > Regards, > > Jorge > > > 1. > b72e0cd9e63f7cf4bec2908143c62c23666b674a > Author: Steven Silvester <ste...@ie...> > Date: Sun Feb 15 09:38:21 2015 -0600 > > Add guiEvent data to Qt backend > > > > ------------------------------------------------------------ > ------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=190641631& > iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: Thomas C. <tca...@gm...> - 2015-02-19 03:05:27
|
Jorge, I have put in a PR to fix this issue. Can you confirm that it is equivalent to your fix? For aesthetic reasons I chose to pass guiEvent as a kwarg to all of the event related functions. https://github.com/matplotlib/matplotlib/pull/4130 Tom On Wed Feb 18 2015 at 5:32:04 PM Thomas Caswell <tca...@gm...> wrote: > Can you put in a pull request with those changes please? > > On Wed, Feb 18, 2015, 17:03 Jorge Scandaliaris <jor...@ya...> > wrote: > >> Hi, >> A recent commit against lib/matplotlib/backends/backend_qt5.py [1] causes >> some errors in code that was working fine before. The error is as follows: >> >> ------------------------------------------------------------ >> --------------- >> TypeError Traceback (most recent call >> last) >> /home/jscandal/sw/matplotlib/matplotlib.py3/lib/matplotlib/backends >> /backend_qt5.py >> in enterEvent(self, event) >> 249 >> 250 def enterEvent(self, event): >> --> 251 FigureCanvasBase.enter_notify_event(self, event, >> guiEvent=event) >> 252 >> 253 def leaveEvent(self, event): >> >> TypeError: enter_notify_event() got multiple values for argument >> 'guiEvent' >> >> ------------------------------------------------------------ >> --------------- >> TypeError Traceback (most recent call >> last) >> /home/jscandal/sw/matplotlib/matplotlib.py3/lib/matplotlib/backends >> /backend_qt5.py >> in leaveEvent(self, event) >> 253 def leaveEvent(self, event): >> 254 QtWidgets.QApplication.restoreOverrideCursor() >> --> 255 FigureCanvasBase.leave_notify_event(self, event, >> guiEvent=event) >> 256 >> 257 def mousePressEvent(self, event): >> >> TypeError: leave_notify_event() got multiple values for argument >> 'guiEvent' >> >> >> >> Reverting the changes introduced by the commit in lines 251 and 255 of >> backend_qt5.py seems to fix the issue, in my particular use case. >> >> Regards, >> >> Jorge >> >> >> 1. >> b72e0cd9e63f7cf4bec2908143c62c23666b674a >> Author: Steven Silvester <ste...@ie...> >> Date: Sun Feb 15 09:38:21 2015 -0600 >> >> Add guiEvent data to Qt backend >> >> >> >> ------------------------------------------------------------ >> ------------------ >> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server >> from Actuate! Instantly Supercharge Your Business Reports and Dashboards >> with Interactivity, Sharing, Native Excel Exports, App Integration & more >> Get technology previously reserved for billion-dollar corporations, FREE >> http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/ >> 4140/ostg.clktrk >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > |
|
From: Jorge S. <jor...@ya...> - 2015-02-19 20:39:09
|
Thomas Caswell <tcaswell@...> writes: > > > Jorge,I have put in a PR to fix this issue. Can you confirm that it is equivalent to your fix? For aesthetic reasons I chose to pass guiEvent as a kwarg to all of the event related functions. > > https://github.com/matplotlib/matplotlib/pull/4130 > > > Tom I can confirm this fixes the issue I had. Jorge |