How to import hackicon.dll

Terry Reedy tjreedy at
Thu Jul 24 22:22:57 CEST 2003

"Sonia Rovner" <srovner at> wrote in message
news:8a5a6d82.0307240417.494caa13 at
> 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
> dll.  When I run the, 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

Terry J. Reedy

More information about the Python-list mailing list