Skip to content

problem with imgui.ArrowButton() Python wrapper (regression ?) #65

@BrunoLevy

Description

@BrunoLevy

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 something

It 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions