[Tutor] Help Installing Livewires

2007-01-06 Thread Stormtrooper30
Hi I succesfully installed pygame and then attempted to install Livewires on my Windows laptop. I am using Python 2.4 and when I try to call a module from Livewires it says that "module Livewires does not exist". I double clicked the setup program and it displayed some text then shut off. _

Re: [Tutor] Floats and rounding down

2007-01-06 Thread Kent Johnson
Alan Gauld wrote: > "Toon Pieton" <[EMAIL PROTECTED]> wrote > >> Something like temp = '$' + str(round(x,2)) will make x = $1.537 >> read as >> $1.54. That's perfect. However, when x = 1.3, or x = 5.0, it will >> display >> just that: $1.3 or $5. I don't like that - I wan't 1.30 and 5.00, >> be

Re: [Tutor] Query about using Pmw entry widget...

2007-01-06 Thread Luke Paireepinart
Asrarahmed Kadri wrote: > Hello Folks, > > I am using Pmw mdoule to develop a User interface and in that I am > using entry widget. > > Can some one help me how to add validation : only integers are allowed > and minimum value should be 1. > > timeInterval = Pmw.EntryField(label_text='Time

Re: [Tutor] Floats and rounding down

2007-01-06 Thread Alan Gauld
"Toon Pieton" <[EMAIL PROTECTED]> wrote > Something like temp = '$' + str(round(x,2)) will make x = $1.537 > read as > $1.54. That's perfect. However, when x = 1.3, or x = 5.0, it will > display > just that: $1.3 or $5. I don't like that - I wan't 1.30 and 5.00, > because > that looks much mor

Re: [Tutor] Question about ConfigParser

2007-01-06 Thread Dave Kuhlman
On Sat, Jan 06, 2007 at 10:40:27PM +0100, Jan Erik Mostr??m wrote: > I'm trying to use ConfigParser for the first time and I'm > missing something. I have this code > > import ConfigParser > import datetime > > conf = ConfigParser.ConfigParser() > > conf.add_section('general') > conf.set( 'gene

[Tutor] Query about using Pmw entry widget...

2007-01-06 Thread Asrarahmed Kadri
Hello Folks, I am using Pmw mdoule to develop a User interface and in that I am using entry widget. Can some one help me how to add validation : only integers are allowed and minimum value should be 1. timeInterval = Pmw.EntryField(label_text='Time Interval(in sec.):',labelpos='w',validate = 'n

[Tutor] Floats and rounding down

2007-01-06 Thread Toon Pieton
Hey all! A very simple question. I'm writing a simple program which does some calculations with money. I use floats for that, and yes, I know that floats arent as perfect as decimals, but its doesnt have to be a perfect program. I have, however, run into a "visual" problem. Something like temp

[Tutor] Question about ConfigParser

2007-01-06 Thread Jan Erik Moström
I'm trying to use ConfigParser for the first time and I'm missing something. I have this code import ConfigParser import datetime conf = ConfigParser.ConfigParser() conf.add_section('general') conf.set( 'general', 'revision', 0 ) conf.set( 'general', 'date', datetime.datetime.now().strftime("%

Re: [Tutor] Need help with rewriting script to use Decimal module

2007-01-06 Thread Dick Moores
At 10:40 AM 1/6/2007, Dick Moores wrote: >At 11:21 PM 1/4/2007, Terry Carroll wrote: > >On Wed, 3 Jan 2007, Dick Moores wrote: > > > > > Be that as it may, farey() is an amazing program. > > > >Not to beat this subject to death, but the comment at the bottom of > >http://aspn.activestate.com/ASPN/C

Re: [Tutor] Need help with rewriting script to use Decimal module

2007-01-06 Thread Dick Moores
At 11:21 PM 1/4/2007, Terry Carroll wrote: >On Wed, 3 Jan 2007, Dick Moores wrote: > > > Be that as it may, farey() is an amazing program. > >Not to beat this subject to death, but the comment at the bottom of >http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52317 about >continued fractions

Re: [Tutor] need help with sending email

2007-01-06 Thread Alan Gauld
"Luke Paireepinart" <[EMAIL PROTECTED]> wrote > do you guys buy SMS messages or is there some way to communicate > with > text message users for free? Just to blow my own companies trumpet for once, if you sign up to our new Web21C SDK you get a certain number of SMS messages/month for free as p

Re: [Tutor] need help with sending email

2007-01-06 Thread Christopher Arndt
Luke Paireepinart schrieb: > Just wondering - > do you guys buy SMS messages or is there some way to communicate with > text message users for free? There are some providers that give you a certain amount of SMS per month for free, even if you only have a prepaid SIM card. O2 Ireland is an exampl

Re: [Tutor] need help with sending email

2007-01-06 Thread Luke Paireepinart
shawn bright wrote: > this is really cool. working too, > we have one provider now that it does not work with, but i think its > them this time. > thanks for your help on this Just wondering - do you guys buy SMS messages or is there some way to communicate with text message users for free? Thank

Re: [Tutor] Tutor Digest, Vol 35, Issue 18

2007-01-06 Thread Luke Paireepinart
Tony Cappellini wrote: > Message: 7 > Date: Fri, 5 Jan 2007 08:04:23 -0800 (PST) > From: Mike Ellis <[EMAIL PROTECTED] > > Subject: [Tutor] Python gui for file input > To: tutor@python.org > Message-ID: < [EMAIL PROTECTED] >