·
8 commits
to master
since this release
Breaking changes:
- See Imgui docs for breaking changes around particularly images and TextureRefs.
- TextureRefs were introduced in the previous version of ImGui. This version expands upon this and changes the Pygui API to include TextureRefs only. You can no longer pass int's from PIL/OpenGL straight to ImGui. It must be wrapped in a TextureRef first. See below:
from PIL import Image
image = Image.open(resource_path("pygui/img/code.png"))
texture_id = pygui.load_image(image)
texture_ref = pygui.ImTextureRef.create(texture_id)
...
pygui.image(texture_ref, (100, 100))
...
texture_ref.destroy()Features:
- Updated ImGui version to v1.92.6-docking
- As seen above,
pygui_demo.pynow references files usingresource_path. This allows resources to be correctly loaded when Pygui is compiled using PyInstaller. - Fixed broken vsync toggle in
app.py. - Added
pygui_demo.limit_fps()function for those looking for a non-vsync way to limit fps.