Re: [matplotlib-devel] ImportError: Warning: formlayout requires PyQt4 >v4.3

2011-03-11 Thread OriolV
Hi everyone, I get the same error ( 'ImportError: Warning: formlayout requires PyQt4 >v4.3' ). I have spent a lot of hours but I am not able to solve it. I would be very grateful if someone could let me know if there is a solution. Thanks in advance. Oriol -- View this message in context: ht

Re: [matplotlib-devel] ImportError: Warning: formlayout requires PyQt4 >v4.3

2011-03-11 Thread Darren Dale
On Wed, Mar 9, 2011 at 1:23 PM, OriolV wrote: > > Hi everyone, > > I get the same error ( 'ImportError: Warning: formlayout requires PyQt4 >>v4.3' ). I have spent a lot of hours but I am not able to solve it. I would > be very grateful if someone could let me know if there is a solution. > > Thank

Re: [matplotlib-devel] Patches for CTPUG / matplotlib-py3

2011-03-11 Thread Michael Droettboom
I think the examples with print functions need a: "from __future__ import print_function" otherwise, it prints tuples rather than treating the (...) as function arguments. Cheers, Mike On 03/10/2011 02:18 PM, Christoph Gohlke wrote: On 3/9/2011 12:01 PM, Benjamin Root wrote: On Wed, Ma

Re: [matplotlib-devel] Patches for CTPUG / matplotlib-py3

2011-03-11 Thread Christoph Gohlke
On 3/11/2011 8:54 AM, Michael Droettboom wrote: > I think the examples with print functions need a: > > "from __future__ import print_function" > > otherwise, it prints tuples rather than treating the (...) as function > arguments. > > Cheers, > Mike I changed all print statements to `print("a s

Re: [matplotlib-devel] Patches for CTPUG / matplotlib-py3

2011-03-11 Thread Michael Droettboom
In examples/widgets/menu.py in your patch, you have the line: print(x,y,w,h) which prints "(1, 2, 3, 4)" on Python 2.x and "1 2 3 4" on Python 3.x. On further thought, we should probably put "from __future__ import print_function" in all .py files whether they have print functions or not, j

Re: [matplotlib-devel] Patches for CTPUG / matplotlib-py3

2011-03-11 Thread Christoph Gohlke
On 3/11/2011 10:54 AM, Michael Droettboom wrote: > In examples/widgets/menu.py in your patch, you have the line: > > print(x,y,w,h) > > which prints "(1, 2, 3, 4)" on Python 2.x and "1 2 3 4" on Python 3.x. I missed that one. Christoph > > On further thought, we should probably put "from _

Re: [matplotlib-devel] Patches for CTPUG / matplotlib-py3

2011-03-11 Thread Michael Droettboom
Thanks for doing all this work. I've put your first patch up as a pull request here, so we can comment on it: https://github.com/matplotlib/matplotlib-py3/pull/7 The examples patch I will combine with my own work to get the print_function stuff consistent, and then put up a pull request for al