Re: [Tutor] omnicomplete vim python

2006-08-29 Thread Alan Gauld
>i want some form of suggestion or autocompletion > so if i say > import aspell > and then type > aspell. > i know what are available without running to pyshell or some > interpreter > and aspell.Dict( > should suggest wat are the possible arguments This isn't answering Anil's question but I'm cu

Re: [Tutor] How would I make a program that password protects on aninactivity timer?

2006-08-29 Thread Alan Gauld
> (This is on Windows, on something called novell, > or something close which acts as a logon service) Hmm, Novell, the second biggest networking company in the world might not be too pleased with that description... :-) Novell provides a comprehensive network resource and inventory management

Re: [Tutor] interested in python

2006-08-29 Thread Alan Gauld
Hi Conrad, Welcome to the tutor list. >I am just wondering if I would be able to hire a tutor to learn >Python or We come free. > not, I know there is a tutorial, but I dont seem to be learning > throught > tuturials, OK, The way this list works is you pick one (or more!) tutorials and try t

Re: [Tutor] How would I make a program that password protects on aninactivity timer?

2006-08-29 Thread R. Alan Monroe
> I'd try the screen saver settings first, its much easier! This is not Python specific, but very informative: http://www.codeproject.com/cpp/holsavers.asp Alan ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] program that 'waits' for file?

2006-08-29 Thread Tim Golden
[Kay White] | I'm trying to make a program that will wait for a specific | file to be made by another program, and when that happens it | opens and modifies that file. The other program is a | commercial game that allows the player to take screenshots. | It saves the screenshots in a particula

Re: [Tutor] omnicomplete vim python

2006-08-29 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Alan Gauld > Sent: Tuesday, August 29, 2006 1:26 AM > To: anil maran > Cc: tutor@python.org > Subject: Re: [Tutor] omnicomplete vim python > [...] > > This isn't answering Anil's question but I'm c

Re: [Tutor] How would I make a program that password protects on an inactivity timer?

2006-08-29 Thread Kent Johnson
[EMAIL PROTECTED] wrote: > If this is not possible, is there any way to end/restart the explorer.exe > program? If not, is there any other way you would reccomend securing the > computer? (not a program thats downloaded, we have to prove that everything > we download is for educational purposes

[Tutor] thanks

2006-08-29 Thread Joe Gamman
just a quick note to say thanks to all the replies i got from the community.  once again, my idea has already been done, and far better than i could have imagined.  i'm off to wander aimlessly around the useless python site ;-) ___ Tutor maillist - Tuto

Re: [Tutor] omnicomplete vim python

2006-08-29 Thread Andrew Robert
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mike Hansen wrote: > > >> -Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf Of Alan Gauld >> Sent: Tuesday, August 29, 2006 1:26 AM >> To: anil maran >> Cc: tutor@python.org >> Subject: Re: [Tutor] omnic

Re: [Tutor] omnicomplete vim python

2006-08-29 Thread Alan Gauld
Thanks for that, it definitely improves a few things, well worth having. Thanks. And the other advantage of this thread is it let me know vim 7 is out - yippee! :-) Alan G. "Andrew Robert" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > -BEGIN PGP SIGNED MESSAGE- > Hash:

Re: [Tutor] How would I make a program that password protects on aninactivity timer?

2006-08-29 Thread Bill Burns
[Alan Gauld] > I'd try the screen saver settings first, its much easier! > As Alan has stated above, the screen saver idea is probably the easiest way to go, but personally... I always to do it the the hard way :-) Using ideas from eariler posts (regarding Windows events and ctypes), here's my a

Re: [Tutor] How would I make a program that password protects on aninactivity timer?

2006-08-29 Thread Bill Burns
[Bill Burns] > import pythoncom > import ctypes > import win32api You can lose the win32api import in my code. Initially, I was using `win32api.ExitWindowsEx(0, 0)` to logout, but after Kent posted the link to ctypes.windll.user32.LockWorkStation(), I switched to the cytpes method. I just forg

[Tutor] Install problems

2006-08-29 Thread Maureen OSullivan
When I tried to install Windows/x86 I got this message:  Internal Error 2229. ,Control, SELECT ‘Control’, ‘Type’, ‘X’, ‘Y’, ‘Width’, ‘Height’, ‘Attributes’, ‘Property’, ‘Text’, ‘Control_Next’, ‘Help’ FROM ‘Control’ WHERE ‘Dialog_’=?   Can you tell me how to get Python to install.   Tha

[Tutor] Unicode problems

2006-08-29 Thread Ed Singleton
I've been having unicode problems in python on Mac OS 10.4. I googled for it and found a good page in Dive Into Python that I thought might help (http://www.diveintopython.org/xml_processing/unicode.html). I tried following the instructions and set my default encoding using a sitecustomize.py, bu

[Tutor] File IO

2006-08-29 Thread Amadeo Bellotti
Ok im trying to create a file that the user chooses the name of and print a varible that is a string to the text file. but for some reason whne i do this code: FILE = open(filename, "w") FILE.write(puzzleanswers) FILE.close() it doesnt write anything does anyone know how to fix it  so it works? _

Re: [Tutor] Unicode problems

2006-08-29 Thread Kent Johnson
Ed Singleton wrote: > I've been having unicode problems in python on Mac OS 10.4. > > I googled for it and found a good page in Dive Into Python that I > thought might help > (http://www.diveintopython.org/xml_processing/unicode.html). > > I tried following the instructions and set my default encod

Re: [Tutor] File IO

2006-08-29 Thread Kent Johnson
Amadeo Bellotti wrote: > Ok im trying to create a file that the user chooses the name of and print a > varible that is a string to the text file. but for some reason whne i do > this code: > > FILE = open(filename, "w") > FILE.write(puzzleanswers) > FILE.close() > > it doesnt write anything does an

Re: [Tutor] File IO

2006-08-29 Thread Amadeo Bellotti
i do and they have writing but its just not printing it at allOn 8/29/06, Kent Johnson <[EMAIL PROTECTED]> wrote: Amadeo Bellotti wrote:> Ok im trying to create a file that the user chooses the name of and print a > varible that is a string to the text file. but for some reason whne i do> this code

Re: [Tutor] File IO

2006-08-29 Thread Bob Gailer
Amadeo Bellotti wrote: > Ok im trying to create a file that the user chooses the name of and > print a varible that is a string to the text file. but for some reason > whne i do this code: > > FILE = open(filename, "w") > FILE.write(puzzleanswers) > FILE.close() > > it doesnt write anything That

Re: [Tutor] File IO

2006-08-29 Thread Amadeo Bellotti
well i made a typo and puzzleanswers was empty i fixed it and it works fine thank you guys so muchOn 8/29/06, Bob Gailer < [EMAIL PROTECTED]> wrote:Amadeo Bellotti wrote:> Ok im trying to create a file that the user chooses the name of and > print a varible that is a string to the text file. but fo

Re: [Tutor] Install problems

2006-08-29 Thread Alan Gauld
Maureen, > When I tried to install Windows/x86 I got this message: Internal > Error >2229. ,Control, SELECT 'Control', 'Type', 'X', 'Y', 'Width', >'Height', >'Attributes', 'Property', 'Text', 'Control_Next', 'Help' FROM >'Control' > WHERE 'Dialog_'=? >Can you tell me how to get Python to inst

Re: [Tutor] File IO

2006-08-29 Thread Alan Gauld
>i do and they have writing but its just not printing it at all > How do you know? Where are you looking for the file? Are you sure its not a Path issue? Alan G. > On 8/29/06, Kent Johnson <[EMAIL PROTECTED]> wrote: >> >> Amadeo Bellotti wrote: >> > Ok im trying to create a file that the user

Re: [Tutor] File IO

2006-08-29 Thread Amadeo Bellotti
no no the file shows up in the same directory as the .py file and i no it works cause i read the text fileOn 8/29/06, Alan Gauld < [EMAIL PROTECTED]> wrote:>i do and they have writing but its just not printing it at all >How do you know? Where are you looking for the file?Are you sure its not a Pat

Re: [Tutor] re syntax

2006-08-29 Thread Tiago Saboga
Em Segunda 28 Agosto 2006 15:54, Kent Johnson escreveu: > A 'space character' is the single character \x20. A 'whitespace > character' is any character in a some set of non-printing (white) > characters. I guess it is a subtle distinction but it's common usage, > not just Python; it even has a Wiki

[Tutor] About cholesky funtion

2006-08-29 Thread 李 建强
Hi, In my procedure, I use the cholesky(a) function in the scipy.linalg.decomp model. If the max number of row and column in matrix a is less equal 15, cholesky(a) is OK. But when the max number is larger than 15, there will have a error message: “File "C:\Python24\Lib\site-packages\scipy\linal