GithubHelp home page GithubHelp logo

Comments (4)

swistakm avatar swistakm commented on June 23, 2024 1

Oh, I see.

This won't work. imgui package is not able to render anything on it's own. This is why you need to either use built-in integrations or create own rendering code. Everything is explained in the documentation page titled First steps with imgui. Links to the examples can be found on the bottom of that page. They lead directly to doc/examples project source tree on GitHub.

Read it carefully and you should be able to make your own GUI in a few minutes.

I understand that current documentation may not be clear enough on this topic. Of course, any suggestions on improvements in this area would be very welcome.

from pyimgui.

swistakm avatar swistakm commented on June 23, 2024

Hi @EMGPY, could you share a snippet of your code? The issue tittle says it happens at basic rendering loop so I guess it is short and you can paste whole your code.

Have you tried using any any of the built-in integrations from imgui.integrations subpackage? It seems that you don't use any these.

The error information says that internal ImGui state object isn't properly initialized yet. In such case you need to do proper initialization all by yourself. Unfortunately I didn't have enough time to document how to deal with that yet. The integration modules in imgui.integrations and examples under doc/examples may serve as a basis for making your own integrations.

from pyimgui.

EliasMasche avatar EliasMasche commented on June 23, 2024
import imgui

imgui.new_frame()
imgui.begin("Mi primera ventana", True)
imgui.text("Hola Mundo")
imgui.end()
imgui.render()

This is the example code i tried to run.
About imgui.integrations i didn't used any, because don't want to used, just want to use imgui to create some basics gui apps.
Where i can find the doc/examples because in the imgui folder is missing.

from pyimgui.

EliasMasche avatar EliasMasche commented on June 23, 2024

Thanks to make it clear.

from pyimgui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.