sciter-sdk / pysciter

Python bindings for Sciter
https://sciter.com
MIT License
396 stars 40 forks source link

'ID2D1RenderTarget' is not defined on macOS #43

Closed AlecHaring closed 3 years ago

AlecHaring commented 3 years ago

There seems to be an issue with 0.5.0 on macOS. I get this error:

Traceback (most recent call last):
  File "/Users/alecharing/Desktop/Python Projects/sciter_testing/test.py", line 2, in <module>
    import sciter
  File "/Users/alecharing/Desktop/Python Projects/sciter_testing/venv/lib/python3.8/site-packages/sciter/__init__.py", line 18, in <module>
    from .capi.scapi import SciterAPI
  File "/Users/alecharing/Desktop/Python Projects/sciter_testing/venv/lib/python3.8/site-packages/sciter/capi/scapi.py", line 46, in <module>
    SciterRenderD2D = SCFN(BOOL, HWINDOW, POINTER(ID2D1RenderTarget))
NameError: name 'ID2D1RenderTarget' is not defined

which originates in the scapi.py file. Looking at the git revision history, it seems like ID2D1RenderTarget used to only be referenced if SCITER_WIN was true. Should this still be the case?

pravic commented 3 years ago

Could you check 27a43ab153?

AlecHaring commented 3 years ago

Works like a charm! Thank you

pravic commented 3 years ago

Published as 0.5.1