Hi Brian, On Sunday 22 June 2008 11:01:36 B Clowers wrote: > p, li { white-space: pre-wrap; } > > I have a small program that displays a embeds a figure along with the > navigation toolbar into a PyQt4 application. In version 0.91 it works > fine, however, I get the following error when I try to run the program with > 0.98 . An exception is raised at line 296 of the backend_qt4.py . I've > attached the output from Eric4. Is there something I can do to my program > or is this a more fundamental issue?ThanksBrian--ps this issue only seems > to be a problem if I'm using the navigation toolbar, a regular plot is ok. > The debugged program raised the exception unhandled AttributeError > "coordinates" > File: /usr/lib/python2.5/site-packages/matplotlib/backends/backend_qt4.py, > Line: 296StdErr: QLayout: Attempting to add QLayout "" to > MyNavigationToolbar "", which already has a layout
Version 98 changed the backend_qt4 toolbar so it is a true Qt toolbar, which already has a layout. I guess you need to use the existing layout, rather than adding a new one. If that doesn't help you, please post a *short* standalone script that reproduces the problem. Its hard to diagnose these things based on so little information. Darren ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel