Re: [Tutor] Comparing times

2006-07-19 Thread Steve Nelson
On 7/18/06, John Fouhy <[EMAIL PROTECTED]> wrote: > On 18/07/06, Steve Nelson <[EMAIL PROTECTED]> wrote: > > What I want to do is establish if the time of the process is *later* > > than the system date. For example, we might have a process with a > > time of 11:15:00, when the system time is 10:

Re: [Tutor] removing a card

2006-07-19 Thread John Fouhy
On 20/07/06, Christopher Spears <[EMAIL PROTECTED]> wrote: >def __cmp__(self): [...] > I am confused by this error because I modified __cmp__ > in the Card class to take two arguments. Am I missing > something here? You haven't defined it that way in the code you posted.. I presume you m

[Tutor] removing a card

2006-07-19 Thread Christopher Spears
Chapter 15 of How to Think Like a Computer Scientist teaches you how to deal with sets of objects by creating a deck of cards. The tutorial can be found here: http://www.ibiblio.org/obp/thinkCSpy/chap15.htm. Here is my code so far in card.py: class Card: suitList = ["Clubs", "Diamonds",

Re: [Tutor] List Box binding

2006-07-19 Thread Michael Lange
On Wed, 19 Jul 2006 06:45:36 -0400 Kent Johnson <[EMAIL PROTECTED]> wrote: > Joe Cox wrote: > > I am using Tk and have a series of Radio buttons that I want to bind > > to it's own listbox for further selection. > > I just don't get the point how to click the button and select the > > proper lis

Re: [Tutor] format string

2006-07-19 Thread Kent Johnson
devayani barve wrote: > Hi > > This is my program: > > import urllib > ans='y' > while ans=='y': > name=raw_input("Enter search:") > name=name.replace(' ','+') > name=name.replace('&','%26') > go_url=" http://www.google.co.in/search?hl=en&q=%s >

Re: [Tutor] Needing to create a program that will search my hard drive for certain files in certain folders

2006-07-19 Thread Danny Yoo
> I would like to create an executable program that when ran it will > search my hard drive for certain folders that contain different files. > Once the program finds these folders, I would like the program to zip > each of the folders up and then e-mail each of the folders to a certain > e-mai

Re: [Tutor] format string

2006-07-19 Thread Danny Yoo
> It gives following error: > Traceback (most recent call last): > File "C:\python\urllib.py", line 1, in -toplevel- > import urllib > File "C:\python\urllib.py", line 9, in -toplevel- > page = urllib.urlopen(go_url).read() > AttributeError: 'module' object has no attribute 'urlopen' Hi Devan

[Tutor] format string

2006-07-19 Thread devayani barve
Hi   This is my program: import urllibans='y'while ans=='y':        name=raw_input("Enter search:")    name=name.replace(' ','+')    name=name.replace('&','%26')    go_url=" http://www.google.co.in/search?hl=en&q=%s" %name+"&meta=lr\%3Dlang_en"    print go_url    page = urllib.urlopen(go_url).read

Re: [Tutor] List Box binding

2006-07-19 Thread Kent Johnson
Joe Cox wrote: > I am using Tk and have a series of Radio buttons that I want to bind > to it's own listbox for further selection. > I just don't get the point how to click the button and select the > proper listbox I want it tied too. Do you mean you want clicking on the radio button to enable a

Re: [Tutor] Needing to create a program that will search my hard drive for certain files in certain folders

2006-07-19 Thread Luke Paireepinart
Bobby J. Howerton Jr. wrote: > Hello, > I am new to programming in Python, but I am very excited about the > possibilities that it (Python) has. > > I maybe jumping the gun a little bit here, but this is what I would > like to do: > *

[Tutor] List Box binding

2006-07-19 Thread Joe Cox
I am using Tk and have a series of Radio buttons that I want to bind to it's own listbox for further selection. I just don't get the point how to click the button and select the proper listbox I want it tied too. Joe Cox513-293-4830 mobile[EMAIL PROTECTED]   ___

[Tutor] Needing to create a program that will search my hard drive for certain files in certain folders

2006-07-19 Thread Bobby J. Howerton Jr.
Hello,I am new to programming in Python, but I am very excited about the possibilities that it (Python) has.I maybe jumping the gun a little bit here, but this is what I wouldlike to do:I would like to creat

Re: [Tutor] Win32Com.client help

2006-07-19 Thread wesley chun
> docString = self.wdApp.Documents[0].Content > return str(docString).decode('latin-1') i've been experimenting with Win32 COM client stuff myself lately, having added a section for it in the upcoming 2nd ed. of Core Python. i haven't tried what you're doing yet though, but i hav