wxPython - processes

2005-11-30 Thread ccahoon
In wxPython, I want to be able to start downloading a file and have the
window doing such remain interactive, so that the user can cancel
downloading the next file.  Also, if there is a way to cancel a
downloading process, what is it?

I am using urllib.urlretrieve.  Thanks for any help, in advance.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: wxPython - processes

2005-12-01 Thread ccahoon
Thanks!

-- 
http://mail.python.org/mailman/listinfo/python-list


Problem with DispatchWithEvents

2005-05-23 Thread ccahoon
Traceback (most recent call last):
  File "windowedfax.py", line 223, in OnClick
self.iexplore = DispatchWithEvents("InternetExplorer.Application",
eventHandling)
  File "C:\Python24\Lib\site-packages\win32com\client\__init__.py",
line 268, in DispatchWithEvents
user_event_class.__init__(instance)
  File "windowedfax.py", line 178, in __init__
this.iexploreInstance = self
NameError: global name 'this' is not defined

Output completed (18 sec consumed) - Normal Termination

I am running Python 2.4 with the most recent 2.4 win32all package
installed.  This is straight from the installer.  I did a clean
installation of everything.

This was working before I tried an ActivePython distribution.  It
stopped working because ActivePython did not seem to support my SSL
usage in urllib, so I returned to a stock python distribution.

The line where I call DispatchWithEvents is like this:
iexplore = DispatchWithEvents("InternetExplorer.Application",
eventHandling)

where eventHandling is a functioning class to that purpose.

Thanks for any help, in advance.

-- 
http://mail.python.org/mailman/listinfo/python-list