Re: [Tutor] nube question...

2007-03-25 Thread Alan Gauld
Lurch [EMAIL PROTECTED] wrote the nuts,bolts, and the occasional nail. Now Im trying to code a simple status window to let the dumb user (me) know what's going on behind the curtain. The idea is, the application calls the subroutine, the subroutine pops open a frame and print some text

Re: [Tutor] Pmw BLT help

2007-03-25 Thread Alan Gauld
Chris Smith [EMAIL PROTECTED] wrote I'm trying to learn how to use Pmw.BLT line 16, in __init__ self.vector_x = Pmw.Blt.Vector() File C:\Python24\lib\site-packages\Pmw\Pmw_1_2\lib\PmwBlt.py, line 99, in __init__ self.tk.call(_vectorCommand, 'create', self._name) TclError:

Re: [Tutor] Tutor Digest, Vol 37, Issue 63

2007-03-25 Thread Jay Mutter III
Message: 1 Date: Sat, 24 Mar 2007 16:41:22 -0700 (PDT) From: Jaggo [EMAIL PROTECTED] Subject: Re: [Tutor] Tutor Digest, Vol 37, Issue 62 To: tutor@python.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 Message: 2 Date: Sat, 24 Mar 2007 19:25:10 -0400

Re: [Tutor] Tutor Digest, Vol 37, Issue 63

2007-03-25 Thread Rikard Bosnjakovic
On 3/25/07, Jay Mutter III [EMAIL PROTECTED] wrote: [snip huge post] 92% of the lines in your post contained quotes from earlier posts. Please try to reduce the amount of quoted lines. -- - Rikard. ___ Tutor maillist - Tutor@python.org

[Tutor] Some Strange Behavior

2007-03-25 Thread Utkarsh Tandon
Umm, hey everyone I'm a newbie to the world of programming. The best way to learn anything is to do it. So I was just trying to make a program that removed comments from a C program. The program worked but a whitespace came after every character. Can anyone please tell me the reason for thw

Re: [Tutor] Some Strange Behavior

2007-03-25 Thread Rikard Bosnjakovic
On 3/25/07, Utkarsh Tandon [EMAIL PROTECTED] wrote: realtext = str(realtext) Here's the problem. Use this instead: realtext = .join(realtext) realtext = realtext.replace('[', ).replace(']', ).replace(',', ).replace(', ).replace('\\n', ).replace('\\t', ) And delete this one. --

Re: [Tutor] Some Strange Behavior

2007-03-25 Thread Alan Gauld
Utkarsh Tandon [EMAIL PROTECTED] wrote So I was just trying to make a program that removed comments from a C program. The program worked but a whitespace came after every character. Can anyone please tell me the reason for thw whitespace. See comments below. But a general observation

Re: [Tutor] Pmw BLT help

2007-03-25 Thread Chris Smith
Alan Gauld wrote: Chris Smith [EMAIL PROTECTED] wrote I'm trying to learn how to use Pmw.BLT line 16, in __init__ self.vector_x = Pmw.Blt.Vector() File C:\Python24\lib\site-packages\Pmw\Pmw_1_2\lib\PmwBlt.py, line 99, in __init__ self.tk.call(_vectorCommand, 'create',

Re: [Tutor] Tutor Digest, Vol 37, Issue 63

2007-03-25 Thread Alan Gauld
Jay Mutter III [EMAIL PROTECTED] wrote The following is what I put in (interactively) and what I got out. ss = open('inp.txt') s = ss.read() s.replace('p. ','\n') 'Barnett, John B., assignor of one-half to R. N. Tutt, Kansas City, Mo. Automatic display-sign.\xc2\xa0 \xc2\xa0 No. 1,330

Re: [Tutor] Pmw BLT help

2007-03-25 Thread Alan Gauld
Chris Smith [EMAIL PROTECTED] wrote I'm trying to learn how to use Pmw.BLT I know I've installed Pmw ok since all I do for installation is unpack it and put in into the site-packages folder in the python installation. I admire your optimism! :-) Have you actually proved it by getting some