error when calling method of class

2007-06-08 Thread Sean Farrow
Hi: I have defined a class in that class is a method defined as follows: def splitTime(n): seconds =float(n) I call the method in another procedure as follows: sefl.splitTime(200) the traceback states that splitTime takes one argument two given. why is this occuring? if I try calling it like:

Obtaining hte currently running script under windows

2007-06-08 Thread Sean Farrow
Hi: Is there any way to obtain the full path to the currently running script under win32? I am using the pythonw.exe file is that helps. Sean. -- http://mail.python.org/mailman/listinfo/python-list

converting an int to a string

2007-06-08 Thread Sean Farrow
Hi: I have the folling code: def parseTime(self, time): minutes =int(float(time)/60) seconds =int(float(time)-minutes*60) minutes =str(minutes) seconds =str(minutes) the statements that convert the minutes and seconds

Accessing the IRichEditOle interface

2007-06-02 Thread Sean Farrow
Hi: Can anyone tell me how to access the IRichEditOle interface from python. I realise I have to send a M_GETOLEINTERFACE message to the window concerned but from then on I am stuck. I carn't seem to find a type library. Any help apreciated. I am using either com types or the win32 extensions