Re: [Tutor] While Loop

2012-06-12 Thread Dave Angel
On 06/13/2012 01:29 AM, Andrew Brunn wrote: > Let me preface by saying that I am currently taking my first programming > class; so I have been a "programmer" for just over a week now. > > Here is my question; > > I > am trying to create a while loop that will allow me ask for a username > and pa

[Tutor] While Loop

2012-06-12 Thread Andrew Brunn
Let me preface by saying that I am currently taking my first programming class; so I have been a "programmer" for just over a week now. Here is my question; I am trying to create a while loop that will allow me ask for a username and password.  If a wrong username and password is entered, I wo

Re: [Tutor] Question about autocomplete functionality

2012-06-12 Thread Alan Gauld
On 12/06/12 21:17, Prasad, Ramit wrote: The discouraging of 'almost duplicate' tags is going to be more difficult I understood the OP to simply mean that autocompletion would reduce the amount of mis-typing by only completing existing tag values therefore reducing misspellings etc. If that

Re: [Tutor] Question about autocomplete functionality

2012-06-12 Thread Alan Gauld
If you want a GUI desktop sort of application check this out: http://www.freenetpages.co.uk/hp/alan.gauld/ There is a chapter on GUI programming that might give you some good ideas But that's a prehistoric version of the tutor :-) Use the link in my sig instead... -- Alan G Author of the Lea

Re: [Tutor] Question about autocomplete functionality

2012-06-12 Thread Prasad, Ramit
> However, this is only really useful if I can keep a running list of all tags > that have ever been entered and use a sort of autocomplete functionality to > make them quicker to enter. And to reduce the number of, and discourage the > use of, 'almost duplicate' tags. > > Are there any resources

Re: [Tutor] Question about autocomplete functionality

2012-06-12 Thread Joel Goldstick
On Tue, Jun 12, 2012 at 3:01 PM, Richard Querin wrote: > Hi All, > > I wrote a small utility several months ago to easily search a project list > (an excel spreadsheet) by project name or number etc. However I am thinking > of expanding it with the following sort of functionality - the ability to

Re: [Tutor] Question about autocomplete functionality

2012-06-12 Thread Alan Gauld
On 12/06/12 20:01, Richard Querin wrote: tags that have ever been entered and use a sort of autocomplete functionality to make them quicker to enter. And to reduce the number of, and discourage the use of, 'almost duplicate' tags. Are there any resources out there (libraries, tutorials etc) tha

Re: [Tutor] Question about autocomplete functionality

2012-06-12 Thread Joel Goldstick
On Tue, Jun 12, 2012 at 3:38 PM, Joel Goldstick wrote: > On Tue, Jun 12, 2012 at 3:01 PM, Richard Querin wrote: >> Hi All, >> >> I wrote a small utility several months ago to easily search a project list >> (an excel spreadsheet) by project name or number etc. However I am thinking >> of expandin

[Tutor] Question about autocomplete functionality

2012-06-12 Thread Richard Querin
Hi All, I wrote a small utility several months ago to easily search a project list (an excel spreadsheet) by project name or number etc. However I am thinking of expanding it with the following sort of functionality - the ability to add 'tags' to a given project (tags being just simple descriptive

Re: [Tutor] Issue with classes

2012-06-12 Thread Peter Otten
Bod Soutar wrote: > Hi, > > I am having some difficulty calling a class method from a different class. > When I run the attached script like this "python cheatsheet.py --list" > > C:\>python cheatsheet.py --list > done > here? > Traceback (most recent call last): > File "cheatsheet.py", line 1

Re: [Tutor] Issue with classes

2012-06-12 Thread Devin Jeanpierre
On Tue, Jun 12, 2012 at 4:07 AM, Bod Soutar wrote: > I confess I don't know anything about classes really so I'm probably doing > something stupid, but can anyone point me in the right direction? A smaller example: def foo(): mydict = {} bar() print mydict def bar(): mydict[3] =

Re: [Tutor] Issue with classes

2012-06-12 Thread Bod Soutar
On Jun 12, 2012 9:56 AM, "Andreas Perstinger" wrote: > > On Tue, 12 Jun 2012 09:07:13 +0100 > Bod Soutar wrote: > > > C:\>python cheatsheet.py --list > > done > > here? > > Traceback (most recent call last): > > File "cheatsheet.py", line 167, in > > main() > > File "cheatsheet.py", line

Re: [Tutor] Issue with classes

2012-06-12 Thread Andreas Perstinger
On Tue, 12 Jun 2012 09:07:13 +0100 Bod Soutar wrote: > C:\>python cheatsheet.py --list > done > here? > Traceback (most recent call last): > File "cheatsheet.py", line 167, in > main() > File "cheatsheet.py", line 165, in main > ca.parseArgs() > File "cheatsheet.py", line 39, in p

[Tutor] Issue with classes

2012-06-12 Thread Bod Soutar
Hi, I am having some difficulty calling a class method from a different class. When I run the attached script like this "python cheatsheet.py --list" C:\>python cheatsheet.py --list done here? Traceback (most recent call last): File "cheatsheet.py", line 167, in main() File "cheatsheet.p