I have no experience with EasyGUI, but to answer your other question,
you do not "compile" Python in the way you compile C or Java.
Python can be compiled into a .pyc file, which is slightly faster to
start running and obfuscates the source, but it doesn't really do much,
practically. You can
Hello,
I am very new to python and have a couple of questions, to which I
would very much appreciate answers from the members of this list.
First, I am trying to learn to use easygui to present simple dialogs
and get input from the user. To this end, I wrote a very short test
program, just
"Matt Smith" <[EMAIL PROTECTED]> wrote
> Do any Vim users have a better way of running a Python program while
> it
> is being edited in Vim?
My personal preference is to have 3 windows open:
1) gvim for editing the files
2) a console for running the files using command recall to do so
3) a con
On Thursday 07 June 2007, Matt Smith wrote:
> Hi,
>
> Bit of a Vim specific question this one but I hope someone might have an
> answer. I currently have the following line in my .gvimrc file (I'm
> using Ubuntu Linux):
>
> map :!gnome-terminal -e=python\ -i\ %
>
> This opens a window and runs the
Hi,
Bit of a Vim specific question this one but I hope someone might have an
answer. I currently have the following line in my .gvimrc file (I'm
using Ubuntu Linux):
map :!gnome-terminal -e=python\ -i\ %
This opens a window and runs the Python program I am working on. I don't
really like the fa
Greg Lindstrom wrote:
> Hello, and I apologize in advance for the question.
No apologies needed, this list would be quite boring without any
questions :-)
>
> I have decided to publish a class I use to handle data segments to
> Google Code for the world to see (I plan to make millions off train
Hello, and I apologize in advance for the question.
I have decided to publish a class I use to handle data segments to Google
Code for the world to see (I plan to make millions off training classes,
books and lectures :-). I need to make it a bit more 'generic' than the
class I have been using,
Alan,
Thanks for the input. I am trying to make something that is capable of being a
bit more B2B than a standard HTML form...but be able to have a friendly
interface for a person. I have not liked SOAP in the past...way to much extra
stuff. I was trying to think REST but I have to admit I
How about doing it this way:
def is_yes(question):
yn = { 'y':True, 'yes':True, 'n':False, 'no':False }
while True:
try:
return yn[raw_input(question).lower().strip()]
except KeyError:
print '\nplease select y, n, yes, or no\n'
___
"Ertl, John C CIV 63134" <[EMAIL PROTECTED]> wrote
> I have a Python program that makes images of data
> and I want to be able to make these via a web interface.
Fair enough.
> I want to keep it simple so I thought I would send
> an XML file to a cgi program
But thats not simple. CGI is n
> What if the user enters "maybe".
Sorry, I said the except block i meant the else block of
the original posters code.
In both his case and yours the message gets printed.
But as Danny pointed out you need the try/except in
your case because you are indexing a potentially
empty string. The OP did
All,
I have a Python program that makes images of data and I want to be able to make
these via a web interface. I want to keep it simple so I thought I would send
an XML file to a cgi program (XML is what I am supposed to use). I have the
parsing of the XML all figured out but the way I am se
Very nice trick. Thanks.
P.S. You can still use:
s = raw_input(question).lower()[:1]
if s == ...:
-Original Message-
From: Danny Yoo [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 06, 2007 5:53 PM
To: David Heiser
Cc: tutor@python.org
Subject: Re: [Tutor] Engarde program
What if the user enters "maybe".
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Alan Gauld
Sent: Thursday, June 07, 2007 1:45 AM
To: tutor@python.org
Subject: Re: [Tutor] Engarde program was: i++
"David Heiser" <[EMAIL PROTECTED]> wrote
>
> def is_
On Wed, 6 Jun 2007, David Heiser wrote:
> or..
>
> def is_yes(question):
> while True:
> try:
> s = raw_input(question).lower()[0]
> if s == 'y':
> return True
> elif s == 'n':
> return False
> except:
>
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi all,
i want to embed Python code in C code, need any tutorial for starting.
Ramanuj
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFGZ9jvp6Ts2SMzgZoRAkhrAJ9YZ2JB2n/M
* Brad Tompkins (Wed, 6 Jun 2007 16:41:31 -0700)
> Is there a way to make use of multi-line comments when programming using
> python? Having to stick a # in front of every line gets pretty tedious when
> I want to make a comment more detailed than I normally would.
>
> If there isn't a way, can s
"Brad Tompkins" <[EMAIL PROTECTED]> wrote
> If there isn't a way, can someone recommend a text editor (I know
> emacs and
> probably vi can do this, but they seem difficult to use) that will
> comment
> out blocks of text automatically for me?
The Pythonwin IDE has the Edit->Source->Comment out
"David Heiser" <[EMAIL PROTECTED]> wrote
>
> def is_yes(question):
> while True:
> try:
> s = raw_input(question).lower()[0]
> if s == 'y':
> return True
> elif s == 'n':
> return False
> except:
>
19 matches
Mail list logo