Hi all, I'm posting to report the following bug in 'backend_qt4.py', class 'NavigationToolbar2QT' l. 309 : When using Qt4 as default backend, if you type 'plot(x,y)' and then 'close()', you'll obtain an attribute error because 'NavigationToolbar2QT' has no 'toolitem' attribute (see line 310). I think that 'toolitem' was used in the previous Qt4 backend implementation. To make things work, I simply removed this 'destroy' method which is probably deprecated. Regards, Pierre Raybaut
Hi Pierre, On Monday 30 June 2008 06:25:42 am Pierre Raybaut wrote: > Hi all, > > I'm posting to report the following bug in 'backend_qt4.py', class > 'NavigationToolbar2QT' l. 309 : > > When using Qt4 as default backend, if you type 'plot(x,y)' and then > 'close()', you'll obtain an attribute error because 'NavigationToolbar2QT' > has no 'toolitem' attribute (see line 310). I think that 'toolitem' was > used in the previous Qt4 backend implementation. > > To make things work, I simply removed this 'destroy' method which is > probably deprecated. Thank you for the report. This is fixed in svn.