Skip to content

TypeError: argument 1 must be int, not HWND #8383

@Kawasaki5963

Description

@Kawasaki5963

What did you do?

from PIL import ImageWin
dib = ImageWin.Dib("RGB", (1, 1))
hwnd = ImageWin.HWND(0)
dib.expose(hwnd)

What did you expect to happen?

It works without errors.

What actually happened?

TypeError: argument 1 must be int, not HWND

What are your OS, Python and Pillow versions?

  • OS: Windows10
  • Python: 3.11.4
  • Pillow: 10.4.0

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions