Hello to all of you,
here's a novice question; i'm working under a NT station with wxpython
and python 1.5.2
and i'd like to know how to friendly (and efficiently ) write and
compile some code;
1- i've used wordpad.exe to write my script.py but it's not so strict
with indentation ; so what kind of text editor is usually used under nt
2-to run my script, if i double-click them and everything is ok, i got
what i want, but if ever there's a mistake, a pynthon window appears and
disappears so fast that i can't notice what was wrong. So what is used
usually to perform write-compile-debug cycles with "stable" information;
I've tryed IDLE but it supports only 1 error-debug information:
afterwards i have a "only 1 wxApp per process" so i have to exit and
restart idle ... Nightmare. If there's a command to type here that will
stop this wxApp in odrer to relaunch another after correction of the
bug.
N.B:pythonwin seems not supporting the wxPython scripts.
Thanks in advance,
···
--
Nicolas Baurin
Doctorant
Institut de Chimie Organique et Analytique, UPRES-A 6005
http://www.univ-orleans.fr/SCIENCES/ICOA/
Université d'Orléans, BP 6759
45067 ORLEANS Cedex 2, France
Tel: (33+) 2 38 49 45 77
_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users
You can use Boa Constructor (a Development Tool based on wxPython), which
works for me. Don't be afraid of the version number, there are some minor
bugs, but nothing serious.
PythonWin works to in former times, but not any more. PythonWin get crashed
after the second restart cycle.
Beside, to avoid the "only 1 wxApp per process" you should use the following
code fragment in IDLE, it is not necessary in Boa.
import sys, traceback
class MyFrame(wxFrame):
def __init__(self, parent, id, title):
wxFrame.__init__(self, parent, id, title,wxPoint(100, 100),
wxSize(700, 700))
try:
# your normal code
except:
self.Destroy() # causes main loop to exit
traceback.print_exc() # and you still get your trace
Jens Gelhaar
···
_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users
nicolas baurin writes:
Hello to all of you,
here's a novice question; i'm working under a NT station with wxpython
and python 1.5.2
and i'd like to know how to friendly (and efficiently ) write and
compile some code;
1- i've used wordpad.exe to write my script.py but it's not so strict
with indentation ; so what kind of text editor is usually used under nt
I like Emacs, with python-mode and BeOpen's OO-browser.
Under MS Windows, I like XEmacs.
http://www.beopen.com/products/oobrowser/oobrowser_overview.html
I think that XEmacs comes with python-mode; if not, you can find it at
python.org.
Of course, emacs may or may not be your cup of tea:)
2-to run my script, if i double-click them and everything is ok, i got
what i want, but if ever there's a mistake, a pynthon window appears and
disappears so fast that i can't notice what was wrong.
I'm assuming that you really mean `a DOS window', not `a Python window'....
If you want to see text output in a DOS window, run Python from a DOS
window.
ie: [in a DOS window] python foobar.py
Some versions of MS Windows will accept just "foobar.py" and figure out
that they're supposed to run "python foobar.py" by looking at the extension
of the file-name (NT4 will, 95 won't).
···
_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users