[Tutor] Suggestions on pyserial for RS232 com monitor?

2015-02-18 Thread dw
ject, since the laptop has Ubuntu 12.04 OS. Any suggestions, script, or point me in a direction would be greatly appreciated. Sincere thanks! dw :-] -- bw...@fastmail.net ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription

[Tutor] Wondering if there is a print in location command for terminal?

2015-02-09 Thread dw
terminal) 10 spaces. Then print the string there. I wonder if what I'm looking for is the "Curses" library? I'm running Python 2.6 in Linux and 2.7 in Window. Thanks! dw :-] -- bw...@fastmail.net ___ Tutor maillist - Tutor@python.o

Re: [Tutor] Wondering about a project

2015-02-03 Thread dw
Thanks Dave A for your Tips!! I greatly appreciate. :-D Duane -- bw...@fastmail.net ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Wondering about a project

2015-02-03 Thread dw
Thanks Alan for the tips!!! I greatly appreciate. :-D Duane -- bw...@fastmail.net ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Wondering about a project

2015-02-03 Thread dw
Well I've made some progress in terminal mode. The OS is Ubuntu 12.04 LXDE desktop This script works. It prompts for the url, lets the user confirm download and then runs the video in Gnome-Player. Once Gnome-Player is dropped by the user, it prompts to either move the file to storage or delete.

[Tutor] Wondering about a project

2015-02-02 Thread dw
Hi Python gang. In my Ubuntu system, I'm pondering a first GUI Python project: 1) Prompt for a user input string. The intended string would be a youtube URL 2) Call youtube-dl to download the file 3) When the file is downloaded, call GnomePlayer or VLC to play the file I'm new at Python and ha

Re: [Tutor] Using if statement with csv file

2015-01-28 Thread dw
Hi Tammy, I wonder how big your csv file is? I have ever read a small csv file into one variable. Even a csv file with 100 rows. And then split it into identified fields from there. I look at the csv file with Notepad++ to see if the data rows end with a \r or a \n. I then split that into a list an

[Tutor] Initiating an external email transmission

2015-01-23 Thread dw
I have a python script that I've created. It logs into an online email service and sends out an email. It works in my Linux box, and it works in my Windows 7 box. I've also converted it with Py2EXE and it works as an executable in my Win-7 box. The issue is, I made it for someone else to use in hi

Re: [Tutor] Testing a string to see if it contains a substring (dw)

2015-01-23 Thread dw
Thanks for your good comments. I do think I found a work around body = "" for x in range(0,len(line_array)): test_line = len(re.findall(r'[0-9]{2}/[0-9]{2}/[0-9]{4}', line_array[x])) if test_line > 0: body = body + line_array[x]+"\n" For each iteration re.findall returns a lis

Re: [Tutor] Testing a string to see if it contains a substring (Steve and Mark)

2015-01-23 Thread dw
Thanks so much Steve and Mark! You've given me a lot to chew on. :-D I'll pursue! More Python FUN!! Based on your description, I think the best way to do this is: # remove blank lines line_array = [line for line in line_array if l

[Tutor] Testing a string to see if it contains a substring

2015-01-21 Thread dw
Hello Python Friends. I have a string array, called "line_array". There may be up to 50 or more elements in the array. So: - line_array[1] may contain "01/04/2013 10:43 AM17,410,217 DEV-ALL-01-04-13.rlc\n" - line_array[2] may contain "01/25/2013 03:21 PM17,431,230 DEV-ALL-01-25-2

[Tutor] Learning python scripts for practical linux activities.

2015-01-15 Thread dw
Hello, I'm new the the group and new to programming in Python. I would like to find a source, book etc of Python learning projects. Projects that are useful for standard Linux activities like bulk renaming files, managing repository packages. Maybe python scripts that incorporate "LAME" for mod