Re: [Tutor] Indentation Issue and Blind People

2007-12-03 Thread Ricardo Aráoz
jim stockford wrote: > you might consider keeping your code at two > spaces and when/if the need arises to share > your code, write a little filter program that > translates the two-space indents to four. > very interesting idea to play piano notes. > how'd you do that? > Why not just use

Re: [Tutor] lstrip removes '/' unexpectedly

2007-12-03 Thread Ricardo Aráoz
Danny Yoo wrote: >> Hello: >> I'm seeing some strange behavior with lstrip operating >> on string representations of *nix-style file paths >> Example: > s = '/home/test/' > s1 = s.lstrip('/home') > s1 >> 'test/' ## '/test/' was expected! '/' was unexpectedly removed >> Any comments or

Re: [Tutor] lstrip removes '/' unexpectedly

2007-12-03 Thread Aditya Lal
On Dec 3, 2007 4:29 PM, Ricardo Aráoz <[EMAIL PROTECTED]> wrote: > Danny Yoo wrote: > >> Hello: > >> I'm seeing some strange behavior with lstrip operating > >> on string representations of *nix-style file paths > >> Example: > > s = '/home/test/' > > s1 = s.lstrip('/home') > > s1 > >>

Re: [Tutor] lstrip removes '/' unexpectedly

2007-12-03 Thread Eric Brunson
Ricardo Aráoz wrote: > Danny Yoo wrote: > >>> Hello: >>> I'm seeing some strange behavior with lstrip operating >>> on string representations of *nix-style file paths >>> Example: >>> >> s = '/home/test/' >> s1 = s.lstrip('/home') >> s1 >> >>> 'test/' ## '/t

[Tutor] help

2007-12-03 Thread Andrew Critchley
I recently downloaded the newer version of python, the 2.5.1 one, and when ever i try to make an input what ever i type into the brackets appears on the next line and when i try to add the next line it carries on from the input,This is what happens: I type this down: # Area calculation program

[Tutor] multithread question

2007-12-03 Thread János Juhász
Dear Tutors, I have a multithread python service on a windows server, that brekas down sometimes. It is a service, that runs on a server and listen on the 9100 tcp port on three IP addresses, just as three jetdirect devices. It listens as a virtual printer, captures the content of the print jobs

[Tutor] Problems with List Server?

2007-12-03 Thread Tim Johnson
I appear to be having a weird problem with the List Server. At first, email sent to this address did not appear at all. After contacting the ML maintainers only one email from me to this address go through. When I replied to the thread which the email started, it was not delivered. This is a very

Re: [Tutor] Selecting a browser

2007-12-03 Thread Ricardo Aráoz
Martin Walsh wrote: > Ricardo Aráoz wrote: >> Hi, I've checked webbrowser module and so far I find no way of selecting >> a browser other than the default one. Say I want certain places opened >> with IE and others with Mozilla, and I don't want to mess with the >> user's setting of the default bro

Re: [Tutor] lstrip removes '/' unexpectedly

2007-12-03 Thread Tiger12506
>> ## > s = '/home/test/' > s1 = s.lstrip('/ehmo') > s1 >> 'test/' >> ## >> >> Take a closer look at the documentation of lstrip, and you should see >> that >> what it takes in isn't treated as a prefix: rather, it'll be treated as a >> se

Re: [Tutor] [wxPython-users] passing file name from one script to theGUI class

2007-12-03 Thread Tiger12506
I do not currently have wx installed, but I can see the errors... I think some information will help you more than answers in this instance. When you 'import clases_calling', what you are doing is creating a new namespace. Inside that namespace is the class 'funct'. In your code, you call the fu

Re: [Tutor] Selecting a browser

2007-12-03 Thread Martin Walsh
Ricardo Aráoz wrote: > Martin Walsh wrote: > Hi Marty, thanks for your help. > I've tried your suggestions but they don't seem to work for me. In W's > system window I can do : > C:/> S:\FirefoxPortable\FirefoxPortable.exe http://www.google.com > and it will open my browser ok. But no matter what I

Re: [Tutor] Selecting a browser

2007-12-03 Thread Kent Johnson
Ricardo Aráoz wrote: import webbrowser ff = webbrowser.get("S:\FirefoxPortable\FirefoxPortable.exe %s &") ff.open('http://www.google.com') > False Beware of backslashes in file paths - backslash introduces a character escape in Python strings. You can fix by any of - use \\ instead

Re: [Tutor] help

2007-12-03 Thread bob gailer
Andrew Critchley wrote: > I recently downloaded the newer version of python, the 2.5.1 one, and > when ever i try to make an input what ever i type into the brackets > appears on the next line and when i try to add the next line it > carries on from the input,This is what happens: > > I type t

Re: [Tutor] Selecting a browser

2007-12-03 Thread Ricardo Aráoz
Kent Johnson wrote: > Ricardo Aráoz wrote: > import webbrowser > ff = webbrowser.get("S:\FirefoxPortable\FirefoxPortable.exe %s &") > ff.open('http://www.google.com') >> False > > Beware of backslashes in file paths - backslash introduces a character > escape in Python strings. You ca

Re: [Tutor] Selecting a browser

2007-12-03 Thread Ricardo Aráoz
Martin Walsh wrote: > Ricardo Aráoz wrote: >> Martin Walsh wrote: >> Hi Marty, thanks for your help. >> I've tried your suggestions but they don't seem to work for me. In W's >> system window I can do : >> C:/> S:\FirefoxPortable\FirefoxPortable.exe http://www.google.com >> and it will open my brow

Re: [Tutor] Selecting a browser

2007-12-03 Thread Simone
Ricardo Aráoz ha scritto: >> ff = webbrowser.get("S:/FirefoxPortable/FirefoxPortable.exe %s &") > That did it, but as I told Kent : > > ff.open('http://www.google.com') > Traceback (most recent call last): > File "", line 1, in > File "E:\Python25\lib\webbrowser.py", line 168, in open >