[Tutor] Display in a text field using tkinter

2010-04-01 Thread adedoyin adegoke
from Tkinter import * import MySQLdb class Snoop(Frame): def __init__(self, master): Frame.__init__(self, master) self.grid() self.create_widgets() def create_widgets(self): Label(self, text = "Database Name:").grid(row = 0, column = 0, sticky = W)

Re: [Tutor] Searching for time in a given string

2010-04-01 Thread Mark Tolonen
"Judith Flores" wrote in message news:27451.74230...@web113808.mail.gq1.yahoo.com... Hello, I was wondering if someone could provide me with the pattern syntax to find the time in a given string. The time usually appears as "14:28:32" (for example) within a string ("Sun Jan 23 14:28:32 19

[Tutor] Searching for time in a given string

2010-04-01 Thread Judith Flores
Hello, I was wondering if someone could provide me with the pattern syntax to find the time in a given string. The time usually appears as "14:28:32" (for example) within a string ("Sun Jan 23 14:28:32 1965"). How can I retrieve the time? Thank you very much in advance for your help, Judi

Re: [Tutor] Decoding MIME Attachments

2010-04-01 Thread Wayne Werner
On Thu, Apr 1, 2010 at 5:47 PM, wrote: > Hi, all; > > I am a longtime linux sysadmin that is fairly new to Python. I've got a > project for which Python seems to be perfect (or, at least, I've found a > way to integrate my learning :-) Welcome to Python! I highly recommend this book by Noah G

[Tutor] Decoding MIME Attachments

2010-04-01 Thread jneiss
Hi, all; I am a longtime linux sysadmin that is fairly new to Python. I've got a project for which Python seems to be perfect (or, at least, I've found a way to integrate my learning :-) I receive log files via email from an outside vendor. We use Splunk to generate reports based on these and

[Tutor] os.fork | queue

2010-04-01 Thread Jojo Mwebaze
I am trying to implement parallel processing with os.fork.. However i want to collect results from each process.. I thought i could use Queues, but i cant seem to get it work. Threading, can not work for me, because of the way some functions have been written - Below is a copy of what i had writte

Re: [Tutor] what's wrong in my command?

2010-04-01 Thread Dave Angel
Shurui Liu (Aaron Liu) wrote: OK, can you tell me import.py is empty or not? If it's not an empty document, what's its content? (Please don't top-post, Add your comments after what you're quoting, or at the end) That was a typo in my message. I should have said pickle.py, not import.p

Re: [Tutor] what's wrong in my command?

2010-04-01 Thread Alan Gauld
"Shurui Liu (Aaron Liu)" wrote OK, can you tell me import.py is empty or not? If it's not an empty document, what's its content? On Thu, Apr 1, 2010 at 5:45 AM, Dave Angel wrote: # Pickle import pickle This is where you told it to load import.py. Normally, that just quietly loads the stand

Re: [Tutor] what's wrong in my command?

2010-04-01 Thread Shurui Liu (Aaron Liu)
OK, can you tell me import.py is empty or not? If it's not an empty document, what's its content? On Thu, Apr 1, 2010 at 5:45 AM, Dave Angel wrote: > Shurui Liu (Aaron Liu) wrote: >> >> # geek_translator3.py >> >> # Pickle >> import pickle >> >> > > This is where you told it to load import.py.  

Re: [Tutor] what's wrong in my command?

2010-04-01 Thread Dave Angel
Shurui Liu (Aaron Liu) wrote: # geek_translator3.py # Pickle import pickle This is where you told it to load import.py. Normally, that just quietly loads the standard module included with your system. When I run it, the system gave me the feedback below: Traceback (most recent call las