-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
Hello,
I'm using arrow buttons as follows:
import polyscope as ps
....
if ps.imgui.ArrowButton(my_button_string_id,ps.imgui.ImGuiDir_Up):
do somethingIt used to work with a previous version, but now it complains with the following message:
TypeError: ArrowButton(): incompatible function arguments. The following argument types are supported:
1. (str_id: str, dir: ImGuiDir) -> bool
Invoked with: 'arrowup', 2
ps.version('Polyscope') says '2.5.0'
Side notes:
- I have seen there is much activity in this project on the binding generator for Dear ImGui. I guess that the Dear ImGui binding of the new version expects a stricter typing, with a Python type for each enum, but I did not find this ImGuiDir type in
ps.imgui - All the rest of Dear Imgui seems to be functioning in pyGraphite (a special version of my Graphite software in Polyscope/Python), that makes a quite extensive use of Dear ImGui.
Metadata
Metadata
Assignees
Labels
No labels