Skip to content

pygui.windows.v1.92.6.1

Latest

Choose a tag to compare

@JaedanC JaedanC released this 01 Mar 23:20
· 8 commits to master since this release
c8c73f1

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.py now references files using resource_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.