Sep-10-2019, 01:22 AM
(This post was last modified: Sep-10-2019, 01:22 AM by LeftyGuitar.)
Hello,
I am trying to wrap the Sigil library, which was written in C. I have had success wrapping it in other languages such as Ruby and Euphoria, however with Python I keep hitting roadblocks.
I am trying to wrap the Sigil library, which was written in C. I have had success wrapping it in other languages such as Ruby and Euphoria, however with Python I keep hitting roadblocks.
sigil.slWindow.argtypes = [ctypes.c_int,ctypes.c_int,ctypes.c_wchar_p,ctypes.c_int] sigil.slWindow.restype = None sigil.slClose.argtype = None sigil.slClose.restype = None sigil.slShouldClose.argtype = None sigil.slShouldClose.restype = ctypes.c_bool def slWindow(width,height,title,fullScreen): return sigil.slWindow(width,height,title,fullScreen) def slClose(): return sigil.slClose() sigil.slRender.argtype = None sigil.slRender.restype = None def slRender(): return slRender() def slShouldClose(): return sigil.slShouldClose() slWindow(640,480,"Hello World",0) #only the H is printed in the title screen while not slShouldClose(): slRender()The window shows up, but it only shows a white screen when it should be blank(black) and I can't close the window, I have to use CTRL+ALT+DELETE to close the window.