[PySide] PySide tutorials

Algis Kabaila akabaila at pcug.org.au
Wed Apr 3 09:44:42 CEST 2013


Sergio,

I would like to acknowledge the effort at coordination to  lndn 
<lndndev at gmail.com> - let us "appoint" him as a coordinator and follow his 
directions.  So I will wait for his suggestions.

In my opinion the newbie tutorials are best written by newbies, albeit 
with critical appraisal by more experienced persons.  Of course, anybody 
could and everybody should contribute!

I would suggest that for newbie tutorials, the tutorials should be 
readable by people who know python and have heard of PySide and would like 
to try it.  If we succed to enable them to solve one problem, no matter 
how simple, we, IMHO, may have attracted another user to PySide.

Al.


On Tuesday 02 April 2013 19:11:44 Sergio Pulgarín wrote:


On 2 Apr 2013 17:13, <pyside-request at qt-project.org> wrote:
>
> Send PySide mailing list submissions to
>         pyside at qt-project.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.qt-project.org/mailman/listinfo/pyside
> or, via email, send a message with subject or body 'help' to
>         pyside-request at qt-project.org
>
> You can reach the person managing the list at
>         pyside-owner at qt-project.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of PySide digest..."
>
>
> Today's Topics:
>
>    1. PySide Newbie Tutorials (lndn)
>    2. Re: PySide Newbie Tutorials (Marc Hankin)
>    3. Re: spyder not finding pyqt4.6 except with python2.6 (vs.
>       python3.3, 3.1, 2.7) , spyder 2.1.14  and 2.2.0beta4 (Algis 
Kabaila)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 2 Apr 2013 14:23:29 -0700
> From: lndn <lndndev at gmail.com>
> Subject: [PySide] PySide Newbie Tutorials
> To: Algis Kabaila <akabaila at pcug.org.au>
> Cc: pyside at qt-project.org
> Message-ID:
>         
<CAJ6WS8s64oNYM0KRqwrMqbfS+5kx0NWkB7nXO3PNvQBnmZe9OA at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Mon, Apr 1, 2013 at 5:35 AM, Algis Kabaila <akabaila at pcug.org.au> 
wrote:
>
> > **
> >
> > I am in the process of porting the tutorial to PySide and Python 3.x. 
If
> > there are no objections, I would like to post it in the PySide newbie
> > tutorial section in a similar style to PySideSimplicissimus:
> >
> >
> >
> > From wiki/PySideTutorials link to new page PySideSimple
> >
> > from PySideSimple links to probably 4 separate stage pages with return 
to
> > PySideSimple, which in turn returns to PySideTutorials.
> >
> >
> >
> > Al (aka OldAl)
> >
>
> Hi Al, the newbie tutorials are a great idea.  The PySideSimplicissimus
> series were well-written and easy to follow.
>
> What modules do you plan on covering in these new tutorials?  The 
tutorials
> we currently have are great but it's not comprehensive in covering more 
Qt
> modules.  Here's hoping to see more modules covered in newer tutorials.
>

I guess I could write a couple of tutorials. I've been using Qt for a 
couple of years and have touched several modules. 
What topic do you feel like is evidently missing?




> Thanks!
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://lists.qt-
project.org/pipermail/pyside/attachments/20130402/ec8aa57b/attachment-0001.html
>
> ------------------------------
>
> Message: 2
> Date: Tue, 2 Apr 2013 14:41:34 -0700
> From: Marc Hankin <marc at marchankin.com>
> Subject: Re: [PySide] PySide Newbie Tutorials
> To: lndn <lndndev at gmail.com>
> Cc: pyside at qt-project.org
> Message-ID:
>         <CACGromFOn-
f+GpOXaNPUA+pHgy4rOf2zr_5raf5Rk3RC1woMOw at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi.  I'm a python newbie and a pyside newbie.
> I've gone through the zetcode tutorial and the simplicitimus (or 
whatever
> it is called), and I still feel crippled in using pyside.
> I used to teach law at a law school and I like to think about 
pedagogical
> issues.
> So, if you folks want to try out some of your tutorials on me and get my
> questionable feedback about how to improve your tutorials, I'd be very
> pleased with the opportunity to give you feedback ... and I confess, I 
also
> would like to learn from you.
>
> It's really wonderful to follow your emails.  The open source 
python/pyside
> community is so giving/altruistic that it is fun to follow your emails. 
 I
> wish I could occupy myself with this stuff full time and never see the
> nasty interior of a courtroom again.
>
> Anyway, thanks again,
>
>                                                                  Marc
>
>
>
>  ********************************************************************
>
> Marc B. Hankin
>
> The Law Offices of Marc B. Hankin, Inc.
>
> Post Office Box 3668, Beverly Hills, California  90212 (Not for
> mail:509S.BeverlyDr.)
>
> Tel: (310) 552-3005     Fax: (310) 382-2416
>
> Email: marc at marchankin.com    Website:  www.marchankin.com
>
>      This e-mail message is generated from the law firm of the Law Offices
> of Marc B. Hankin, Inc., and may contain information that is confidential
> and may be privileged as an attorney/client communication or as attorney
> work product.  The information is intended to be disclosed solely to the
> addressee(s).
>
>      If you are not the intended recipient, any disclosure, copying,
> distribution or use of the contents of this e-mail information is
> prohibited.  If you have received this e-mail in error, please notify 
the
> sender by return e-mail and delete it from your computer system.
>
> ********************************************************************
>
>
> On Tue, Apr 2, 2013 at 2:23 PM, lndn <lndndev at gmail.com> wrote:
>
> > On Mon, Apr 1, 2013 at 5:35 AM, Algis Kabaila 
<akabaila at pcug.org.au>wrote:
> >
> >> **
> >>
> >> I am in the process of porting the tutorial to PySide and Python 3.x. 
If
> >> there are no objections, I would like to post it in the PySide newbie
> >> tutorial section in a similar style to PySideSimplicissimus:
> >>
> >>
> >>
> >> From wiki/PySideTutorials link to new page PySideSimple
> >>
> >> from PySideSimple links to probably 4 separate stage pages with 
return to
> >> PySideSimple, which in turn returns to PySideTutorials.
> >>
> >>
> >>
> >> Al (aka OldAl)
> >>
> >
> > Hi Al, the newbie tutorials are a great idea.  The 
PySideSimplicissimus
> > series were well-written and easy to follow.
> >
> > What modules do you plan on covering in these new tutorials?  The
> > tutorials we currently have are great but it's not comprehensive in
> > covering more Qt modules.  Here's hoping to see more modules covered 
in
> > newer tutorials.
> >
> > Thanks!
> >
> > _______________________________________________
> > PySide mailing list
> > PySide at qt-project.org
> > http://lists.qt-project.org/mailman/listinfo/pyside
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://lists.qt-
project.org/pipermail/pyside/attachments/20130402/0d6044a3/attachment-0001.html
>
> ------------------------------
>
> Message: 3
> Date: Wed, 03 Apr 2013 09:12:59 +1100
> From: Algis Kabaila <akabaila at pcug.org.au>
> Subject: Re: [PySide] spyder not finding pyqt4.6 except with python2.6
>         (vs.    python3.3, 3.1, 2.7) , spyder 2.1.14  and 2.2.0beta4
> To: drc at cognizor.com
> Cc: Pierre Raybaut <pierreraybaut at gmail.com>, pyside at qt-project.org,
>         Carlos Co'rdoba <ccordoba12 at gmail.com>
> Message-ID: <9682593.h86yu4x8h8 at supremo>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi and thanks for kind words re my posting on pyside at qt-project.org.
>
> It seems to me that there is some confusion on qt, pyqt and pyside. 
 PyQt
> is a Python library of programs that enable python programs to make use 
of
> qt libraries. PySide has very similar (the same?) objectives as PyQt.
>
> In a commercial environment one could say that PyQt and PySide are
> competitors.  Each is independent of the other and go about similar
> objectives in a different way.
>
> In my limited experience, operating from a kubuntu (ubuntu with KDE
> desktop environment) with Python 2.x both PySide and PyQt4 run "out of 
the
> box" with both downloadable from standard repositories. To my pleasant
> surprise, PySide also runs seamlessly with Python3.
>
> In the days past,  PyQt4 had to be compiled from source to run with
> Python3.  It seems that that is still the case today.  If I am wrong,
> please tell me!
>
> I quite unfamiliar with spyder-ide.
>
> If these ramblings of mine are useful - great.  If not, I ask just bear
> with me.
>
> Al.  (Algis)
>
>
>
> On Tuesday 02 April 2013 11:34:26 drc at cognizor.com wrote:
> > Greetings.
> >
> > My goal here is getting python3.3 working the spyder python IDE. 
(Spyder
> > 2.1.14 from the git repo is said to work with python3 by Pierre
> > Raybaut, its major developer, at http://spyder-ide.blogspot.com/  in
> > the Jan. 24 posting.(The 2.2 series beta4 release of March 12 will 
not,
> > he says.  And he's right!)
> >
> > Neither any other spyder nor pyside are installed in this pure debian 
OS
> > (AVlinux 6.0).  This seems to be a bug relevant to pyqt4 naming. 
 Can't
> > tell if pyside would provide a workarounpyside at qt-project.orgd.
> >
> > Theoretically qt4 ( "qt4.4+" is specified in the spyder code) should
> > work since debian package qt 4.7.3-1+b1 is installed.
> >
> > python2.6 finds it and starts up spyder with it, thus:
> > ---------pyside at qt-project.org
> > python2.6 bootstrap.py
> > Executing Spyder from source checkout
> > Revision 2114:b2b019b3abb3, Branch: default
> > 01. Patched sys.path with
> > /home/py/tidings/pyacqs/ide/spyder2.1.14/spyderlib.v21
> >                       and
> > /home/py/tidings/pyacqs/ide/spyder2.1.14/spyderlib.v21/external-py2
> > 02. No PySide detected, using PyQt4 if available
> > 03. Imported Spyder 2.1.14dev3 (Qt 4.6.3 via PyQt4 (API v1) 4.7.3)
> > 0x. Enforcing parent console (Windows only)
> > 04. Executing spyder.main()
> >
> > -----------
> >
> > But no, the pyqt4 is not found with python3.3, python3.1, and 
python2.7
> > . The  same error as produced by the beta arises, namely this:
> >
> > ------------
> > ide/spyder2.1.14/spyderlib.v21$ python3.3 bootstrap.py
> > Executing Spyder from source checkout
> > Revision 2114:b2b019b3abb3, Branch: default
> > 01. Patched sys.path with /home/.../ide/spyder2.1.14/spyderlib.v21
> >                       and
> > /home/.../ide/spyder2.1.14/spyderlib.v21/external-py3
> > 02. No PySide detected, using PyQt4 if available
> > Traceback (most recent call last):
> >   File
> > 
"/home/py/.../ide/spyder2.1.14/spyderlib.v21/spyderlib/qt/__init__.py",
> > line 46, in <module>
> >     from PySide import __version__  # analysis:ignore
> > ImportError: No module named 'PySide'
> >
> > During handling of the above exception, another exception occurred:
> >
> > Traceback (most recent call last):
> >   File
> > 
"/home/py/.../ide/spyder2.1.14/spyderlib.v21/spyderlib/requirements.py",
> > line 39, in check_qt
> >     from spyderlib import qt
> >   File
> > "/home/py/.../spyder2.1.14/spyderlib.v21/spyderlib/qt/__init__.py",
> > line 48, in <module>
> >     raise ImportError("Spyder requires PySide or PyQt to be 
installed")
> > ImportError: Spyder requires PySide or PyQt to be installed
> >
> > During handling of the above exception, another exception occurred:
> >
> > Traceback (most recent call last):
> >   File "bootstrap.py", line 89, in <module>
> >     from spyderlib import spyder
> >   File "/home/.../ide/spyder2.1.14/spyderlib.v21/spyderlib/spyder.py",
> > line 50, in <module>
> >     requirements.check_qt()
> >   File
> > "/home/.../ide/spyder2.1.14/spyderlib.v21/spyderlib/requirements.py",
> > line 49, in check_qt
> >     % (qt_infos['pyqt']+qt_infos['pyside']))
> >   File
> > "/home/.../ide/spyder2.1.14/spyderlib.v21/spyderlib/requirements.py",
> > line 24, in show_warning
> >     raise RuntimeError(message)
> > RuntimeError: Please check Spyder installation requirements:
> > PyQt4 4.4+ (or PySide 1.0+) is required.
> > [64234 refs]
> > py at t9012av6:~/.../ide/spyder2.1.14/spyderlib.v21$
> >
> > -----------
> >
> > Thanks for your help!
> >
> > @ Algis:
> >   thanks for your notes posted today on tutorials for pyside, at
> > http://lists.qt-project.org/pipermail/pyside/2013-April/001209.html
> >      Does pyside work with python3.3 on unix (debian linux, 
AVlinux6.0)?
> > >From the elaborate pyside install instructions at pypi.python.org  I
> > >can't
> > tell.  There is definitely need for a clear Tutorial posted
> > conspicuously!
> >
> > @ Pierre:
> >   Many congratulations on your new child.  (Read about in the iep
> > forum.) And Thanks for spyder!
> >
> > SC
> > Dr. S. Candelaria de Ram
> > drc at cognizor.com
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://lists.qt-
project.org/pipermail/pyside/attachments/20130403/53367203/attachment.html
>
> ------------------------------
>
> _______________________________________________
> PySide mailing list
> PySide at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/pyside
>
>
> End of PySide Digest, Vol 15, Issue 3
> *************************************



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20130403/403f5b62/attachment.html>


More information about the PySide mailing list