Questions tagged [pyimgui]

8 questions
1
vote
0 answers

Pyimgui with pygame opengl scene

I am having some difficulties trying to integrate Pyimgui with pygame scene. I am currently following this tutorial for the 3D pygame Scene https://github.com/ax-va/PyOpenGL-Pygame-Stemkoski-Pascale-2021/blob/main/py3d/core/base.py and I am using…
DTdevDT
  • 11
  • 1
0
votes
1 answer

TypeError: a bytes-like object is required, not 'list' when using pyimgui.plot_lines()

Here is my code: import imgui foo = [0.9, 1.1, 1.3, 2.5] imgui.begin() imgui.plot_lines("Plot", foo) imgui.end() And it gives me this error: File "imgui\core.pyx", line 6042, in imgui.core.plot_lines File "stringsource", line 660, in…
0
votes
1 answer

Rendering Triangle using PyImgui/PyOpenGL/GLFW stack

I'm new to the intermediate GUI framework world and OpenGL. I'm trying to get this example to work: # -*- coding: utf-8 -*- import glfw import OpenGL.GL as gl import numpy as np import imgui from imgui.integrations.glfw import GlfwRenderer def…
OptimizePrime
  • 118
  • 1
  • 3
0
votes
0 answers

Using imgui from a python plugin

We have a C++ application that uses imgui extensively with very good results. We want to offer our users the possibility to write plugins in python, and to provide own controls for the plugins we would prefer that rendering of the plugin controls is…
Heiner
  • 165
  • 1
  • 11
0
votes
1 answer

I can't install pyimgui library on fedora

I'm using fedora 36. I tried the install pyimgui python library like its github page. sudo pip install imgui[full] But this error occured and I don't know what should I do? [mehmed-irumi@fedora ~]$ sudo pip install imgui[full] Collecting…
0
votes
1 answer

Imgui asertion error when loading custom font

I'm loading a custom font in pyimgui: io = imgui.get_io(); io.fonts.clear() io.font_global_scale = 1 new_font = io.fonts.add_font_from_file_ttf( "Broken Glass.ttf", 20.0, io.fonts.get_glyph_ranges_latin() ); …
James Bord
  • 31
  • 2
0
votes
0 answers

Is there a way to efficiently (realtime) convert numpy arrays into bytes in Python?

I am looking for an efficient way to convert multiple numpy arrays (images) into bytes so I can display them into a GUI, in my case imgui from https://github.com/pyimgui/pyimgui. The way I'm doing this seems a bit counterintuitive, since I am…
kashik
  • 9
  • 4
0
votes
2 answers

Closing an Imgui window: this seems like it should be easy. How does one do it?

I have started using the imgui system for visualizing "whatever". I am in my first few hours, and am running up against what seem to be common snags. However, although I can see some pretty good support for the C++ versions of ImGui (which I'll…
Chris
  • 28,822
  • 27
  • 83
  • 158