I have been using Komodo Edit(open source version) for the purpose. It has
ports for Win, Mac and Linux. There are macros to setup the auto execution
within IDE, however I have been using command prompt for execution and
Komodo for code editing.


On Sun, Dec 19, 2010 at 11:17 PM, Algis Kabaila <[email protected]>wrote:

> My first encounter with PySide was some 2 months ago.
> At that time there were to my knowledge no IDEs for PySide. Now
> "Eric4" works well with PySide.
>
> Not "Idle"  however.  Whilst I would be happy to recommend Eric4
> to anyone,  "Idle" is often in the same package as Python itself
> and is well entrenched as the simplest IDE. The following basic
> program shows a comparison of PySide with PyQt4  as far as
> "Idle"  is  concerned:
> **********************************************************
> DEFAULT = 1
> import sys
> if DEFAULT == 0:
>    from PySide.QtGui import QApplication
> else:
>    from PyQt4.QtGui import QApplication
> if DEFAULT == 0:
>    using = "PySide"
> else:
>    using = "PyQt4"
> for i in range(5):
>    print("trying to use python-idle with  " + using)
>    app = QApplication( sys.argv)
> **********************************************************
> The output is shown in the attached idle-comparison.png.
> Conclusion (tentative): Idle works with PyQt4 but fails with
> PySide with a highly confusing element of randomness.
>
> WRONG!  I was about to fill a bug report in bugzilla, but had
> second  thoughts and decided to give a more conventional example
> with a "normal" program stud:
> **********************************************************
> #!/usr/bin/env python
> # try_idle.py - can Python IDLE be used with PySide?
> # Usage: default = 1 -> use PysSide else -> use PyQt4
>
> DEFAULT = 0
> import sys
>
> if DEFAULT:
>    from PySide import QtCore, QtGui
> else:
>    from PyQt4 import QtCore, QtGui
>
> class Form(QtGui.QDialog):
>    def __init__(self, parent=None):
>        super(Form, self).__init__(parent)
>        self.resize(300, 200)
>        layout = QtGui.QGridLayout()
>        self.setLayout(layout)
>
> app = QtGui.QApplication(sys.argv)
> form = Form()
> form.show()
> app.exec_()
> **********************************************************
> With DEFAULT == 1, from "Idle" work window it runs the first
> time and shows the little program window, which when closed,
> terminates the program and all looks well. But when we try the
> second time, it gives the now familiar error message:
> ***********************************************************
> IDLE 2.6.6      ==== No Subprocess ====
> >>>
> >>>
> Traceback (most recent call last):
>  File "/dat/work/PySide/examples/try_idle.py", line 20, in
> <module>
>    app = QtGui.QApplication(sys.argv)
> RuntimeError: A QApplication instance already exists.
> >>>
> ***********************************************************
> That seems to confirm my earlier conclusion that this shows an
> error in PySide. However, with
> DEFAULT == 0
> and thus with PyQt4 the first time it runs, just as it did with
> PySide.  Now when I close it and run the second time, the Idle
> closes down completely - just vanishes from the screen.
>
> So Idle fails miserably with PySide as well as with PyQt4...
> Daaah...
>
> Well, you might ask what does that have to do with Prerequisites
> for newbie tutorials or with the price of eggs in China  :)
>
> The answer is that I will need help of the list to write a
> prerequisites section. One user, Kennet Myllykoski, wrote:
>
> > Just a thought, but as a newbie i'm also struggling with
>  > eclipse/pydev, and
> > it would be nice if the instructions for a newbies first
> > Pyside program
> > would include also the steps to get the source code
> > successfully into
> > eclipse and to run. Like instructions from start to finnish in
> > a standard
> > environment such as Ubuntu-Eclipse-Python-Pydev-QT-Pyside.
>
> At first sight Eclipse looks a tool like a sledge hammer to
> drive nail - it is a big and complex IDE.  For small programs a
> simple plain text editor (Notepad, gedit, Kate) is all that is
> needed, though an IDE such as "Eric4" is nice to use - pressing
> a comma gives comma plus space, pressing "(", gives "()" and so
> on.  Less time to type, more time for fun of programming.
>
> Well, it seems that Eclipse has some clashes with PySide which
> leads some new users to conclude that PySide has faults that may
> well be faults in the IDE program.  So all I can do in the
> "Prerequisites" section is to say what I use, which is a tiny
> sample of a large pool of information that is well hidden in
> this list.  So I ask you ahead of writing the section, please
> look at it and contribute to it.
>
> And once again, merry Christmas to all who celebrate it!
>
> Al.
>
> --
> Algis
> http://akabaila.pcug.org.au
>
> _______________________________________________
> PySide mailing list
> [email protected]
> http://lists.openbossa.org/listinfo/pyside
>
>
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to