How to import hackicon.dll

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sonia Rovner

    How to import hackicon.dll

    Hello,
    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.
  • Terry Reedy

    #2
    Re: How to import hackicon.dll


    "Sonia Rovner" <srovner@us.ibm .com> wrote in message
    news:8a5a6d82.0 307240417.494ca a13@posting.goo gle.com...[color=blue]
    > 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[/color]
    a[color=blue]
    > 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.[/color]

    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


    Comment

    • 336699

      #3
      Re: How to import hackicon.dll

      srovner@us.ibm. com (Sonia Rovner) wrote in message news:<8a5a6d82. 0307240417.494c aa13@posting.go ogle.com>...[color=blue]
      > Hello,
      > 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.[/color]

      Use tkIcon


      Comment

      • Sonia Rovner

        #4
        Re: How to import hackicon.dll

        336699@emailacc ount.com (336699) wrote in message news:<ef100524. 0307242124.30fc 7bc1@posting.go ogle.com>...[color=blue]
        > srovner@us.ibm. com (Sonia Rovner) wrote in message news:<8a5a6d82. 0307240417.494c aa13@posting.go ogle.com>...[color=green]
        > > Hello,
        > > 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.[/color]
        >
        > Use tkIcon
        >
        > http://effbot.org/downloads/index.cg...9-19980218.zip[/color]
        I didn't have much luck with tkIcon either. It required installing
        PIL so that the import image works. I was hoping not to have to
        install another libray. Maybe I don't have any choice. Thanks all.
        Sonia

        Comment

        Working...