[Tutor] running a program

2005-11-27 Thread David Jimenez
Hello everybody,I have a very simple question: how can I run a script that uses module Tkinter without using IDLE? Thank you,David Yahoo! Music Unlimited - Access over 1 million songs. Try it free.___ Tutor maillist - Tutor@python.org http:

Re: [Tutor] help

2005-11-27 Thread Danny Yoo
On Sun, 27 Nov 2005, Kevin Gall wrote: > how do i use python, do i download it? how do i use it . kevin. Hi Kevin, Out of curiosity, what do you know about Python or programming already? We want to avoid rehashing things that you already know, so if you can give any background on previous expe

[Tutor] help

2005-11-27 Thread Kevin Gall
how do i use python, do i download it? how do i use it . kevin.Don't just Search. Find! The new MSN Search: Fast. Clear. Easy. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Scientific Notation + 18 Digit Precision

2005-11-27 Thread Hubert Fitch
Thank you Danny for your comments!   I have now printed out four responses, and perhaps I might even learn some Python! It will take me some time to analyze all comments!    I had never heard of Python until I audited two Physics classes. "Math Methods for Physics,"  and "Quantum Mechanics.

Re: [Tutor] Scientific Notation + 18 Digit Precision

2005-11-27 Thread Danny Yoo
On Sun, 27 Nov 2005, Hubert Fitch wrote: > Thanks to all of you (Alan, Chris, Kent) for your responses! > > Before I try to follow up on these suggestions, it might be good to > examine the display function module, and provide a few lines from a .py > module that needs display. [warning: long m

[Tutor] Is it a good idea to use TKInter to change my password program into a GUI?

2005-11-27 Thread Nathan Pinno
Hey all,   Is it a good idea to use TKInter to change my password program into a GUI? I know it needs improvements, and I've noted them below:   [code] #This is for a password protected program to store passwords.import getpasspassword = "hello" # This should instead load a file with the pass

[Tutor] Scientific Notation + 18 Digit Precision

2005-11-27 Thread Hubert Fitch
Thanks to all of you (Alan, Chris, Kent) for your responses!   Before I try to follow up on these suggestions, it might be good to examine the display function module, and provide a few lines from a .py module that needs display.   Typical lines in a defintion module, that need a formatted d

[Tutor] Refactoring

2005-11-27 Thread Kent Johnson
Alan Gauld wrote: > Picking up Kent's message about refactoring, my approach tends to > mean I more often refactor by combining classes into a higher level one, > or reverting a class to a native data type than I do by breaking a class > into smaller pieces. Most folks tend to mean the opposite di

Re: [Tutor] Object-oriented design process

2005-11-27 Thread Kent Johnson
Alan Gauld wrote: >> I think you work at a much larger scale (of program size) than I do > > That's probably true. > > An average project for me involves about 3 months of architecture/design > generating maybe 5 or 6 workpackages given to different teams, each of > which will comprise between 10

[Tutor] lil help Booky.py - updated (Chris or Leslie Smith)

2005-11-27 Thread Alan
Smile Thanks #I am sorry I had bad cold #I am back I totally agree with you, I am sorry I was engrossed with the 150 lines of code Now I am attempting to address this booky.py script with your all help to clean the text Input Filename1.txt : 1|H A quote this is a cool python coders (some

Re: [Tutor] Object-oriented design process

2005-11-27 Thread Alan Gauld
> I think you work at a much larger scale (of program size) than I do That's probably true. My day job is as a systems architect/designer, most of the real coding is done by development teams scattered across the country. I use Python to prove the concepts of my design before converting it into Ja

Re: [Tutor] Scientific Notation + 18 digit precision

2005-11-27 Thread Alan Gauld
> Is there an easy way to convert these large numbers to the scientific > notation format? The numbers are, of course, stored in binary so the real question is: can we *display* them in scientific format? The answer is yes using string format operators. Try playing with the %e and %g options:

Re: [Tutor] Modifying Source Code while Program is Running

2005-11-27 Thread Alan Gauld
> However, I'm still slightly uncomfortable with it. It smells to me a > bit like the "as long as it works, its fine" school of thought. FRom the client point of view thats true, but from the class designers point of view its very important that the internals be we well designed. And that include