How to import hackicon.dll

Terry Reedy tjreedy at udel.edu
Thu Jul 24 16:22:57 EDT 2003


"Sonia Rovner" <srovner at us.ibm.com> wrote in message
news:8a5a6d82.0307240417.494caa13 at posting.google.com...
> I'm using Python2.2.1 and Tcl/Tk 8.3 running on Win2000.  I've been
> researching how to change the icon on the title bar and found that
> hackicon is the one I should pursue.  However, hackicon package uses
a
> dll.  When I run the hi.py, I get an error saying
>     ImportError: DLL load failed: The specified module could not be
> found.
> I copied hackicon.dll to various directories in my pythonpath but
> nothing happens.

Unless hackicon.dll was specifically compiled to by Python importable,
the import should fail.  You probably need to wrap it.  I believe both
the calldll and ctypes third-party modules will work.  Either google
web andor newgroup for more info or wait for more informed answer
here.

Terry J. Reedy






More information about the Python-list mailing list