[Tutor] Text matching

2007-05-03 Thread Gardner, Dean
Hi Folks I wish to isolate certain changelog entries and display them to the user, for example: Changelog.txt --Some Module Tag -- M 000751 - Title what was amended Reviewed by: Someone --Some Module Tag -- A 000752 - Title what was amended Reviewed by:

[Tutor] os.path.join question

2007-05-03 Thread Jason Coggins
Is it possible to use os.path.join to link to a file located in the directory above where you are currently located? If so, what is the syntax? Jason___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Trouble with RuntimeError: underlying C/C++ object has been deleted.

2007-05-03 Thread Lawrence Shafer
Hello List, I am just learning Python/PyQt4, and have a problem I cannot figure out. Here's what happens. Traceback (most recent call last): File iac.py, line 124, in on_actionOpen_triggered self.open() File iac.py, line 66, in open if self.isUntitled and

Re: [Tutor] Text matching

2007-05-03 Thread Kent Johnson
Gardner, Dean wrote: Hi Folks I wish to isolate certain changelog entries and display them to the user, for example: Changelog.txt --Some Module Tag -- M 000751 - Title what was amended Reviewed by: Someone For this text file I wish to find all entries for 000751

Re: [Tutor] Text matching

2007-05-03 Thread Gardner, Dean
Here is a test sample of what I have: This currently correctly identifies the start and the end of the changelog entries and I can identify the requested item records. What I am struggling with at present is to how to create records of the full changelog entries for each of the found items. Again

Re: [Tutor] Text matching

2007-05-03 Thread Kent Johnson
Gardner, Dean wrote: Here is a test sample of what I have: This currently correctly identifies the start and the end of the changelog entries and I can identify the requested item records. What I am struggling with at present is to how to create records of the full changelog entries for each

Re: [Tutor] Text matching

2007-05-03 Thread Gardner, Dean
Thanks I will try that. Your help is very much appreciated. Dean Gardner Test Engineer Barco Bonnington Bond, 2 Anderson Place, Edinburgh EH6 5NP, UK Tel + 44 (0) 131 472 5731 Fax + 44 (0) 131 472 4799 www.barco.com [EMAIL PROTECTED] -Original Message- From: Kent Johnson

Re: [Tutor] os.path.join question

2007-05-03 Thread Bill Campbell
On Wed, May 02, 2007, Jason Coggins wrote: Is it possible to use os.path.join to link to a file located in the directory above where you are currently located? os.path.join('..', filename) os.path.realpath(os.path.join('..', filename)) Bill -- INTERNET: [EMAIL PROTECTED] Bill

[Tutor] Regular expression questions

2007-05-03 Thread Bernard Lebel
Hello, Once again struggling with regular expressions. I have a string that look like something_shp1. I want to replace _shp1 by _shp. I'm never sure if it's going to be 1, if there's going to be a number after _shp. So I'm trying to use regular expression to perform this replacement. But I

[Tutor] New York City Python Users Group Meeting - Tuesday May 8th

2007-05-03 Thread John Clark
Greetings! The next New York City Python Users Group meeting is this Tuesday, May 8th, 6:30pm at at the Millennium Partners office at 666 Fifth Avenue (53rd St. and 5th Ave.) on the 8th Floor. We welcome all those in the NYC area who are interested in Python to attend. However, we need a list of

Re: [Tutor] Regular expression questions

2007-05-03 Thread Kent Johnson
Bernard Lebel wrote: Hello, Once again struggling with regular expressions. I have a string that look like something_shp1. I want to replace _shp1 by _shp. I'm never sure if it's going to be 1, if there's going to be a number after _shp. So I'm trying to use regular expression to

[Tutor] C API Tutorial Class Question

2007-05-03 Thread Arthur Coleman
I am using Windows XP and have successfully build the Boost libraries, plus boost_python.dll. I am trying to work through the C API tutorial where the file hello.cpp is found at libs/python/example/tutorial. I have been able to compile and execute the first example building the supplied

Re: [Tutor] Regular expression questions

2007-05-03 Thread Bernard Lebel
Thanks a lot Kent, that indeed solves the issues altogether. Cheers Bernard On 5/3/07, Kent Johnson [EMAIL PROTECTED] wrote: Bernard Lebel wrote: Hello, Once again struggling with regular expressions. I have a string that look like something_shp1. I want to replace _shp1 by

[Tutor] canvas - make an object 'seem' to move

2007-05-03 Thread Teresa Stanton
Hi all: I am working on a program that will take a .gif and move it from origin, along a path where the mouse clicks. I understand that the move is simply changing the coordinates. I can place several .gif's on the canvas, but I would like to make the previous image go away (delete or be

Re: [Tutor] canvas - make an object 'seem' to move

2007-05-03 Thread John Fouhy
On 04/05/07, Teresa Stanton [EMAIL PROTECTED] wrote: the image and moves it. I should mention that I've tried 'move() and coord()' to get the object to move, but I am not getting the effect I want. When I use move in successive steps it just appears at the last move coordinates. My Tkinter

[Tutor] What's wrong with this?

2007-05-03 Thread Jason Coggins
I have the following function in a program: os.popen('filename.py') What I want to do is launch the program in the os.popen() function. The file I am trying to launch is located in the same directory as the program the function is contained in. I also use Linux if that makes a difference.

Re: [Tutor] What's wrong with this?

2007-05-03 Thread Andre Roberge
Perhaps the following might be helpful: http://groups.google.com/group/comp.lang.python/browse_thread/thread/f1b60f4739591d6b/4417f807848b4b5d?lnk=gstq=launchingrnum=4#4417f807848b4b5d (if the link does not work, google for launching python program cross-platform or go to