On Sun, 21 Jan 2007 14:15:46 +1100, Steven D'Aprano
<[EMAIL PROTECTED]> wrote:
>Still, it is better not to lose the indentation in the first place.
Thanks for the tips. But it does happen when copy/pasting code from
either a web page or an e-mail that TABs are messed up, which is not a
problem wit
Hello
When I copy/paste Python code from the web, every so often,
the TABs are wrong, which means that the code won't work and I have to
manually reformat the code.
Is there a code reformater that can parse the code to make it right?
Thanks.
--
http://mail.python.org/mailman/listinfo/py
On Tue, 19 Dec 2006 08:15:18 -0600, "Chris Mellon" <[EMAIL PROTECTED]>
wrote:
>There's a few more caveats I haven't addressed, and there are places
>where wx isn't perfect.
BTW, do you know of a good article/book on writing cross-platform GUI
apps, with recommendations, pitfalls, etc. especially
On 17 Dec 2006 21:20:14 -0800, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
>You could write it as a web app, with an executable which launches the
>server and points a browser at it.
Right, I was thinking of this too, but since the OP was talking of a
fat app...
>Python GUI work is a bit of a
On Mon, 18 Dec 2006 01:23:10 +0100, Christophe Cavalaria
<[EMAIL PROTECTED]> wrote:
>They use QT. Back to read the first part of your post.
It doesn't make much difference:
- QT is big, so even small apps carry a lot of baggage
- by not using the native widgets, you're dependent on that layer to
On Sun, 17 Dec 2006 09:37:04 +0100, [EMAIL PROTECTED] (Luc Heinrich)
wrote:
>Crossplatform toolkits/frameworks suck. All of them. No exception. If
>you want your app to look *AND* feel great on all platform, abstract the
>core of your application and embed it in platform native GUI code.
+1. Appli
On 6 Dec 2006 16:32:14 -0800, "Graham Dumpleton"
<[EMAIL PROTECTED]> wrote:
>Getting perhaps back to the answer you were seeking right back at the
>start, that is if you are new to web application and development and
>Python, then you may well be better of just using a higher level
>framework as th
On 6 Dec 2006 14:55:58 -0800, "Graham Dumpleton"
<[EMAIL PROTECTED]> wrote:
>Although WSGI is an extreme case because of the level it pitches at,
>other systems such as CherryPy and Django aren't much different as they
>effectively duplicate a lot of stuff that could be achieved using more
>basic f
On 5 Dec 2006 17:05:06 -0800, "fumanchu" <[EMAIL PROTECTED]> wrote:
>In a nutshell, mod_python gives you
>access from Python to the Apache API, whereas CherryPy and friends give
>you their own API.
I didn't know Apache had an API of its own, or that it was even needed
when writing a web applicatio
Hi
I'm still a newbie when it comes to web applications, so would like
some help in choosing a solution to write apps with Python: What's the
difference between using running it through mod_python vs. building an
application server using Python-based tools like CherryPy, Quixote,
Draco, etc.?
Tha
On Thu, 30 Nov 2006 10:18:24 -0500, "Mike C. Fletcher"
<[EMAIL PROTECTED]> wrote:
>which is how Linux knows what interpreter to use for the script.
Thanks. That's what I found out after a bit more research. I didn't
pay attention to this because it's not needed to run under Windows,
and I was focu
On Thu, 30 Nov 2006 15:48:53 +0100, Vincent Delporte <[EMAIL PROTECTED]>
wrote:
>-- Launched AGI Script /var/lib/asterisk/agi-bin/ncid.python.agi
>Failed to execute '/var/lib/asterisk/agi-bin/ncid.python.agi': Exec
>format error
Stupid me :-/ Forgot the all-important
On Thu, 30 Nov 2006 15:38:11 +0100, Vincent Delporte <[EMAIL PROTECTED]>
wrote:
>Here's my Python rewrite:
>http://codecomplete.free.fr/asterisk/python_cid.txt
More information. Here's what Asterisk says when I call in:
*CLI>
-- Executing LookupCIDName("SIP/f
On Tue, 28 Nov 2006 04:30:09 -0600, Nick Craig-Wood
<[EMAIL PROTECTED]> wrote:
>I'm not sure how you do open stdout to /dev/null in python though!
>
>I suspect something like this...
>
> import posix
> posix.close(1)
> posix.open("/dev/null", posix.O_WRONLY)
Thanks everyone, but no go :-/ Neith
On Tue, 28 Nov 2006 08:30:03 -0600, Nick Craig-Wood
<[EMAIL PROTECTED]> wrote:
>> import os,sys,time
>> print "pre:", os.getpid()
>> sys.stdout = open(os.devnull, 'w')
>> print "post:", os.getpid()
>> time.sleep(60)
>>
>> (Granted, I'm on WinXP; I also suspect the original stdout is still op
Hi
I'm a Python newbie, and would like to rewrite this Perl scrip
to be run with the Asterisk PBX:
http://www.voip-info.org/wiki/view/Asterisk+NetCID
Anyone knows if those lines are necessary, why, and what their
alternative is in Python?
---
open STDOUT, '>/dev/null';
fork and exi
On Mon, 14 Aug 2006 17:46:11 -0500, Philippe Martin
<[EMAIL PROTECTED]> wrote:
>Yes there is a way to make one .exe/.msi for everything ... but it does
>require purchasing a tool such as VC++.
>
>I have python + wxWindows + my stuff + many other libraries in one installer
>(takes 120 Megs (sigh))
On 14 Aug 2006 09:39:02 -0700, "ajaksu" <[EMAIL PROTECTED]> wrote:
>I'm using PyInstaller (http://pyinstaller.hpcf.upr.edu/) precisely to
>"compile" a wxPython-based program. So I'm curious about what makes
>py2exe "the best tool...", because I'm about to miss that due to my
>ignorance.
I didn't k
On 13 Aug 2006 13:46:14 -0700, "Tim N. van der Leeuw"
<[EMAIL PROTECTED]> wrote:
>I have a wxPython app, which I compile into one EXE file. Then there's
>just 1 support file needed: a MS DLL (which, once distributed, you will
>not need to update).
OK. So you compile the Python app into an EXE usin
Hi
I browsed the archives, but since some messages date back a bit, I
wanted to make sure that
- py2exe is still the best tool in town to compile Python scripts to
run on a Windows host that doesn't have Python installed, including
wxWidgets/wxPython
- there's no way to build a single EXE, to ma
On Fri, 04 Aug 2006 10:58:42 GMT, Dave Cook <[EMAIL PROTECTED]>
wrote:
>But both pyqt and wxpython also offer that. Try running the demos for each.
Thx everyone!
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, 3 Aug 2006 22:07:04 +0100, Phil Thompson
<[EMAIL PROTECTED]> wrote:
>PyQt4 has QTableWidget...
Thx for the two pointers. Are those widgets more than just tables, ie.
can I edit the contents, including displaying a combo box, can items
be grouped or hierarchized, or are they just basic, rea
Hello
I'd like to use Python under Linux to write a business application,
and I'll need a good grid/spreadsheet editable widget, maybe not on
par with eg. ComponentOne's excellent VSFlexGrid
(http://www.componentone.com/newimages/flexgrid_02_lg.gif), but
somewhat professional-grade.
Any recomme
On 31 Jul 2006 07:05:27 -0700, "Ben Sizer" <[EMAIL PROTECTED]> wrote:
>Typically you run PHP as a module in your webserver, so there should be
>no process startup overhead. mod_python provides the same sort of
>functionality for Python, but is not as popular or widely installed as
>the PHP Apache m
On Sat, 29 Jul 2006 04:07:12 GMT, Tim Roberts <[EMAIL PROTECTED]> wrote:
>Exactly. The Python interpreter can take a significant fraction of a
>second to start. For the typical short web request, the overhead can add
>up.
>
>On the other hand, unless you're handling dozens of requests per minute,
On Fri, 28 Jul 2006 17:33:00 GMT, Dennis Lee Bieber
<[EMAIL PROTECTED]> wrote:
>Well, syntax color coding, and block folding are supported by
>PythonWin (comes with the ActiveState Windows install) and SciTE.
>
> The structural browser isn't as easy...
Thanks for the input.
--
http://mail.p
On Fri, 28 Jul 2006 17:31:47 -0400, Dan Sommers <[EMAIL PROTECTED]>
wrote:
>You win that bet. (We actually tested on both platforms.) *Not*
>testing on the deployment platform is *definitely* asking for trouble.
I did intend to validate it on the deployment platform. It's just that
I prefer to w
On Fri, 28 Jul 2006 17:58:24 +0200, Bruno Desthuilliers
<[EMAIL PROTECTED]> wrote:
>Ben Sizer wrote:
>(snip)
>> Pretty much every Python web offering revolves around you having your
>> own server with the luxury of running your own long-running processes
>> on it.
BTW, what is the advantage of ru
On Fri, 28 Jul 2006 08:06:10 +0200, Vincent Delporte
<[EMAIL PROTECTED]> wrote:
(snip)
Thanks everyone for the input!
For the IDE: Ideally, I'd like something modern that uses language
wordlists (to show syntax, variables, etc. in different colors), a
window that lists all the proc
Hello
I'm thinking of using Python to build the prototype for a business web
appplication. The development and test machine is XP, while ultimate
deployment will be on a shared Unix web host.
What would you recommend I get, besides the Python engine itself? Good
IDE (Kodomo?) ? Some kind of GUI d
30 matches
Mail list logo