Re: COM Error -- Urgent help

2006-10-17 Thread Teja
This is the trae back ,can you help me please. Traceback (most recent call last): File "C:\Documents and Settings\dzxbrn\Desktop\Stop Test\13 Oct\MainThread.py", line 13, in threadFunction obj.MyNavigate(dest) # this is gving an error. File "C:\Documents and Settings\dzxbrn\De

Re: COM Error -- Urgent help

2006-10-17 Thread Neil Hodgson
Teja: > ie=win32com.client.Dispatch('internetexplorer.application') > ie.Visible=1 > > class GenericFunctions: > def __init__(self): > print "In Constructor of Generic Functions" > def MyNavigate(self,dest): > ie.Navigate(dest) You are using an interface created on th

Re: COM Error -- Urgent help

2006-10-17 Thread Teja
Diez B. Roggisch wrote: > Teja wrote: > > > > > Dennis Lee Bieber wrote: > >> On 17 Oct 2006 00:58:59 -0700, "Teja" <[EMAIL PROTECTED]> declaimed > >> the following in comp.lang.python: > >> > >> >thread.start_new_thread(self.nav, (s,'www.google.com') > >> > > >> > I am getting an attribut

Re: COM Error -- Urgent help

2006-10-17 Thread Diez B. Roggisch
Teja wrote: > > Dennis Lee Bieber wrote: >> On 17 Oct 2006 00:58:59 -0700, "Teja" <[EMAIL PROTECTED]> declaimed >> the following in comp.lang.python: >> >> >thread.start_new_thread(self.nav, (s,'www.google.com') >> > >> > I am getting an attribute error >> >> That can not be the REAL code

Re: COM Error -- Urgent help

2006-10-17 Thread Fredrik Lundh
Teja wrote: > s=pythoncom.CoMarshalInterThreadInterfaceInStream(pythoncom.IID_IDispatch,i­­e) > >thread.start_new_thread(self.nav, (s,'www.google.com') > > I am getting an attribute error the traceback tells you what attribute Python was looking for, and may also provide additional clues

Re: COM Error -- Urgent help

2006-10-17 Thread Teja
Dennis Lee Bieber wrote: > On 17 Oct 2006 00:58:59 -0700, "Teja" <[EMAIL PROTECTED]> declaimed > the following in comp.lang.python: > > >thread.start_new_thread(self.nav, (s,'www.google.com') > > > > I am getting an attribute error > > That can not be the REAL code... I'd expect a sy

Re: COM Error -- Urgent help

2006-10-17 Thread Teja
Fredrik Lundh wrote: > Teja wrote: > > > I am sorry. By func(dest) I meant MyNavigate(dest). Can u please help > > me out... > > nobody here can read your mind. please post the code you're actually > using, *and* the error you're getting. > > Thnks for your immediate reply. Here is the code:

Re: COM Error -- Urgent help

2006-10-17 Thread Fredrik Lundh
Teja wrote: > I am sorry. By func(dest) I meant MyNavigate(dest). Can u please help > me out... nobody here can read your mind. please post the code you're actually using, *and* the error you're getting. -- http://mail.python.org/mailman/listinfo/python-list

Re: COM Error -- Urgent help

2006-10-17 Thread Teja
Méta-MCI wrote: > Hi! > > > .func( is not defined... > > > @-salutations > -- > Michel Claveau I am sorry. By func(dest) I meant MyNavigate(dest). Can u please help me out... Thnks, Teja.P -- http://mail.python.org/mailman/listinfo/python-list

Re: COM Error -- Urgent help

2006-10-16 Thread M�ta-MCI
Hi! .func( is not defined... @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

COM Error -- Urgent help

2006-10-16 Thread Teja
HI all, I have a problem in accesing COM objects in threads. To be precise, lets assume that I have a class GenericFunctions which is defined as follows: import win32com.client, pythoncom, thread ie=win32com.client.Dispatch('internetexplorer.application') ie.Visible=1 class GenericFunctions: