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
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
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
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
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
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 _
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