There's a post on this list from me, with example code, from a couple of weeks
ago that solves this:
http://mail.python.org/pipermail/tutor/2008-February/060025.html
Cheers
On Thursday 21 February 2008 11:15, brindly sujith wrote:
> hi
>
> i m developing a application using tkinter
>
> i want
> From: Artur Sousa <[EMAIL PROTECTED]>
> To: Kent Johnson <[EMAIL PROTECTED]>
>
> Sorry to bother again.
>
> Is there a way to distribute a Python program freely on a standalone
> version, in which the other person doesn't have to actually open the
> Command Line and execute the .py file?
If the
Artur Sousa wrote:
>
> And please, excuse me, but as english is not my native language, I
> couldn't quite understand how to concatenate str and int with %
> (modulo).
Please give an example of what you want to do - the variables and the
desired output.
Kent
_
Forwarding to the list
Original Message
Subject: Standalone Version
Date: Thu, 21 Feb 2008 18:05:59 -0300
From: Artur Sousa <[EMAIL PROTECTED]>
To: Kent Johnson <[EMAIL PROTECTED]>
Sorry to bother again.
Is there a way to distribute a Python program freely on a standalone
versi
"brindly sujith" <[EMAIL PROTECTED]> wrote
> i m developing a application using tkinter
>
> i want the messages that we get in the terminal to be displayed in
> the
> tkinter dialog box
It depends what you mean.
If you literally want print statements to appear in a dialog then no,
you can't do
> Delete, then copy. Or use rsync instead of Python...
Yes, I ended up writing a small *.bat file that uses unison for
sychronization.
I still do not understand why I got these permission errors when using
the python script.
Thanks for the help.
___
Marc Tompkins wrote:
> So my question is: does anybody have a good Python-based CMS / template
> / whatever framework up and running on a commodity-priced, shared
> webhost? If so, which one? Which host? Inquiring minds wanna know.
Here is a big list of DjangoFriendlyWebHosts:
http://code.dja
Sorry to jump in the middle here, but I have a somewhat related question...
I have a few websites set up for my clients, mostly using Mambo/Joomla
(PHP-based). My clients tend to be small brick-and-mortar businesses
(doctors, lawyers, etc.) who merely wish to use their website as an
extension of
OkaMthembo wrote:
> Thanks, Alan.
>
> Django was the first Python framework i ever considered. I had a
> perception that it was biased towards the publishing industry - then
> again, experiencewise im in no position to make the judgement.
Django comes from the newspaper industry but it is broa
Here is a strict translation of your code. The algorithm remains the
same, but
it has been cleaned up a bit. Duplications have been removed, and the
various
logical bits have been broken down into separate functions.
I suspect you don't know about random.randint(low, high). It
generates
hi
i m developing a application using tkinter
i want the messages that we get in the terminal to be displayed in the
tkinter dialog box
do we have any option for that
thank you
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/lis
Thanks, Alan.
Django was the first Python framework i ever considered. I had a perception
that it was biased towards the publishing industry - then again,
experiencewise im in no position to make the judgement.
Lloyd Dube
On Thu, Feb 21, 2008 at 6:34 PM, Alan Gauld <[EMAIL PROTECTED]>
wrote:
>
>
"OkaMthembo" <[EMAIL PROTECTED]> wrote
> I am just very curious as to which python web framework will
> ultimately be
> the best to work with; and i dont want to waste time trying if some
> arent
> worth the trouble.
I think that may be why Kent asked his question, since neither
webware nor we
On 2008-02-20, bhaaluu <[EMAIL PROTECTED]> wrote:
> As far as I can see, these routines give me the results
> I'm looking for. I get a distribution of four negative numbers,
> four positive integers in the range 10 to 110, and nothing
> is placed in room 6 or room 11:
>
Just for the hell of it, he
On Thu, Feb 21, 2008 at 8:49 AM, Tyler Smith <[EMAIL PROTECTED]> wrote:
>
> Not shorter, but definitely clearer would be to replace your magic
> numbers with variables:
>
> entrance = 6
> exit = 11
> death_room = 13
>
> Replacing each occurrence of those numbers in your code with the
> varia
On 2008-02-21, bhaaluu <[EMAIL PROTECTED]> wrote:
> On Thu, Feb 21, 2008 at 7:32 AM, Kent Johnson <[EMAIL PROTECTED]> wrote:
>>
>> > Other beginning programers shouldn't have any problems using
>> > these routines.
>>
>> As long as they use the same number of rooms and entrance and exit
>> room
On Thu, Feb 21, 2008 at 7:32 AM, Kent Johnson <[EMAIL PROTECTED]> wrote:
>
> > Other beginning programers shouldn't have any problems using
> > these routines.
>
> As long as they use the same number of rooms and entrance and exit
> rooms, or they know the places to make the magic edits...
>
>
bhaaluu wrote:
>> Those two block of code above are SO similar that sure they can be combined
>> into one, or at least the first parts of them.
>>
>
> Optimization is the LEAST of my worries at this point.
The suggested change is not an optimization for speed, it is a
reorganization for clarit
Thanks Kent. Well, i looked about and initially settled on webware - because
it seemed mature and is IMO well documented. Ive read Cheetah + webware docs
and it looked good. Then i heard of web.py on some reddit write-up.
Apparently really easy to use and lightweight. I found out YouOS uses it and
On Wed, Feb 20, 2008 at 7:53 PM, Alan Gauld <[EMAIL PROTECTED]> wrote:
> "Michael Langford" <[EMAIL PROTECTED]> wrote
>
> > I'm firmly with Kent here: OO programming is not about simulation.
>
> Wooah!
> I'm partly on board here and do agree the noun/verb thing is
> a gross simplification. But
OkaMthembo wrote:
> Which is better for large scale apps? I know YouOS and reddit use web.py
> - which big site successfully uses
> webware?
A starting point:
http://wiki.w4py.org/who-is-using-webware.html?
Probably a better place to ask:
http://www.mail-archive.com/[EMAIL PROTECTED]/
I'm curio
Michael Langford wrote:
>> Not sure how you would do that with unit tests?
>
> You write unit tests for each of your functions that test their input
> and output. Presumably, if you used a float somewhere in the middle
> there, when you don't use the float in the java implementation, you'll
> get
Toby wrote:
> What I'm saying is if I have used a certain variable to hold literally
> dozens of different values and I BELIEVE them all to be integers but I'm not
> entirely sure that I have not stumbled into the float realm is there a way
> to have python list all variables contained in a program
On Wed, Feb 20, 2008 at 6:39 PM, Tiger12506 <[EMAIL PROTECTED]> wrote:
>
> I'll throw a couple of thoughts out there since I know that you appreciate
> to see many points of view.
>
>
> > #!/usr/bin/python
>
> Hard-coded. That means you have to change the program to change the game. It
> would
Which is better for large scale apps? I know YouOS and reddit use web.py -
which big site successfully uses
webware?
Thanks.
--
Lloyd Dube
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
25 matches
Mail list logo