Giter VIP home page Giter VIP logo

bimpy's People

Contributors

gfannes avatar joellinn avatar lukeadams avatar njazz avatar podgorskiy avatar scotty007 avatar zakx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bimpy's Issues

DeprecationWarning

DeprecationWarning: an integer is required (got type _bimpy.Condition).  Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
  bimpy.set_next_window_pos(bimpy.Vec2(0, 0), bimpy.Condition.Once)

I get this warning when trying to set the window position, size, or calling begin.

gl3w dependency should be updated

Hello

Current bundled version of gl3w fails to download headers from Kronos website, it ends with 403 error.
Actual version of gl3w has a fix for that (added headers={'User-Agent': 'Mozilla/5.0'} for the urllib2.Request instead of plain string url)

Thanks

How to ID an input_text?

Does anyone know how to ID an input_text. By that I mean: For example you have a login page. How would it be possible to get the value of the username & the password?

Fails running example basic.py from terminal on my rPI desktop

Traceback (most recent call last):
  File "imu_test.py", line 5, in <module>
    ctx.init(600, 600, "Hello")
RuntimeError: GLFW initialization failed (glfwInit() failed).
This may happen if you try to run bimpy on a headless machine

I'm pretty sure doing this from my raspberry pi desktop means it's not headless ;)

Minor issue in the readme hello world:

Nice project!

bp.input_text('string', str, 256) should be bp.input_text('string', s, 256)

import bimpy as bp

ctx = bp.Context()

ctx.init(600, 600, "Hello")

s = bp.String()
f = bp.Float()

while not ctx.should_close():
    with ctx:
        bp.text("Hello, world!")

        if bp.button("OK"):
            print(s.value)

        bp.input_text('string', str, 256)

        bp.slider_float("float", f, 0, 1)

Compilation Error for Ubuntu Linux 16.04.

╰─➤  sudo pip3 install bimpy                                                                                                                           1 ↵
The directory '/home/quinn/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/quinn/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting bimpy
  Downloading bimpy-0.0.6.tar.gz (799kB)
    100% |████████████████████████████████| 808kB 1.7MB/s 
Installing collected packages: bimpy
  Running setup.py install for bimpy ... error
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-9f792sty/bimpy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-k6mjik9k-record/install-record.txt --single-version-externally-managed --compile:
    Reusing glcorearb.h from gl3w/include/GL...
    Parsing glcorearb.h header...
    Generating gl3w.h in gl3w/include/GL...
    Generating gl3w.c in gl3w/src...
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.5
    creating build/lib.linux-x86_64-3.5/bimpy
    copying bimpy/themes.py -> build/lib.linux-x86_64-3.5/bimpy
    copying bimpy/__init__.py -> build/lib.linux-x86_64-3.5/bimpy
    running build_ext
    building '_bimpy' extension
    creating build/temp.linux-x86_64-3.5
    creating build/temp.linux-x86_64-3.5/glfw
    creating build/temp.linux-x86_64-3.5/glfw/src
    creating build/temp.linux-x86_64-3.5/gl3w
    creating build/temp.linux-x86_64-3.5/gl3w/src
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/context.c -o build/temp.linux-x86_64-3.5/glfw/src/context.o
    In file included from glfw/src/x11_platform.h:157:0,
                     from glfw/src/internal.h:186,
                     from glfw/src/context.c:28:
    glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     typedef void (*OSMESAproc)();
     ^
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/init.c -o build/temp.linux-x86_64-3.5/glfw/src/init.o
    In file included from glfw/src/x11_platform.h:157:0,
                     from glfw/src/internal.h:186,
                     from glfw/src/init.c:28:
    glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     typedef void (*OSMESAproc)();
     ^
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/input.c -o build/temp.linux-x86_64-3.5/glfw/src/input.o
    In file included from glfw/src/x11_platform.h:157:0,
                     from glfw/src/internal.h:186,
                     from glfw/src/input.c:28:
    glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     typedef void (*OSMESAproc)();
     ^
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/monitor.c -o build/temp.linux-x86_64-3.5/glfw/src/monitor.o
    In file included from glfw/src/x11_platform.h:157:0,
                     from glfw/src/internal.h:186,
                     from glfw/src/monitor.c:28:
    glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     typedef void (*OSMESAproc)();
     ^
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/vulkan.c -o build/temp.linux-x86_64-3.5/glfw/src/vulkan.o
    In file included from glfw/src/x11_platform.h:157:0,
                     from glfw/src/internal.h:186,
                     from glfw/src/vulkan.c:28:
    glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     typedef void (*OSMESAproc)();
     ^
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/window.c -o build/temp.linux-x86_64-3.5/glfw/src/window.o
    In file included from glfw/src/x11_platform.h:157:0,
                     from glfw/src/internal.h:186,
                     from glfw/src/window.c:29:
    glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     typedef void (*OSMESAproc)();
     ^
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/x11_init.c -o build/temp.linux-x86_64-3.5/glfw/src/x11_init.o
    In file included from glfw/src/x11_platform.h:157:0,
                     from glfw/src/internal.h:186,
                     from glfw/src/x11_init.c:28:
    glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     typedef void (*OSMESAproc)();
     ^
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/x11_monitor.c -o build/temp.linux-x86_64-3.5/glfw/src/x11_monitor.o
    In file included from glfw/src/x11_platform.h:157:0,
                     from glfw/src/internal.h:186,
                     from glfw/src/x11_monitor.c:28:
    glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     typedef void (*OSMESAproc)();
     ^
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/x11_window.c -o build/temp.linux-x86_64-3.5/glfw/src/x11_window.o
    In file included from glfw/src/x11_platform.h:157:0,
                     from glfw/src/internal.h:186,
                     from glfw/src/x11_window.c:28:
    glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     typedef void (*OSMESAproc)();
     ^
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/xkb_unicode.c -o build/temp.linux-x86_64-3.5/glfw/src/xkb_unicode.o
    In file included from glfw/src/x11_platform.h:157:0,
                     from glfw/src/internal.h:186,
                     from glfw/src/xkb_unicode.c:28:
    glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     typedef void (*OSMESAproc)();
     ^
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/posix_time.c -o build/temp.linux-x86_64-3.5/glfw/src/posix_time.o
    In file included from glfw/src/x11_platform.h:157:0,
                     from glfw/src/internal.h:186,
                     from glfw/src/posix_time.c:28:
    glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     typedef void (*OSMESAproc)();
     ^
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/posix_thread.c -o build/temp.linux-x86_64-3.5/glfw/src/posix_thread.o
    In file included from glfw/src/x11_platform.h:157:0,
                     from glfw/src/internal.h:186,
                     from glfw/src/posix_thread.c:28:
    glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     typedef void (*OSMESAproc)();
     ^
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/glx_context.c -o build/temp.linux-x86_64-3.5/glfw/src/glx_context.o
    In file included from glfw/src/x11_platform.h:157:0,
                     from glfw/src/internal.h:186,
                     from glfw/src/glx_context.c:28:
    glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     typedef void (*OSMESAproc)();
     ^
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/egl_context.c -o build/temp.linux-x86_64-3.5/glfw/src/egl_context.o
    In file included from glfw/src/x11_platform.h:157:0,
                     from glfw/src/internal.h:186,
                     from glfw/src/egl_context.c:28:
    glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     typedef void (*OSMESAproc)();
     ^
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/osmesa_context.c -o build/temp.linux-x86_64-3.5/glfw/src/osmesa_context.o
    In file included from glfw/src/x11_platform.h:157:0,
                     from glfw/src/internal.h:186,
                     from glfw/src/osmesa_context.c:32:
    glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     typedef void (*OSMESAproc)();
     ^
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/linux_joystick.c -o build/temp.linux-x86_64-3.5/glfw/src/linux_joystick.o
    In file included from glfw/src/x11_platform.h:157:0,
                     from glfw/src/internal.h:186,
                     from glfw/src/linux_joystick.c:28:
    glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     typedef void (*OSMESAproc)();
     ^
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c gl3w/src/gl3w.c -o build/temp.linux-x86_64-3.5/gl3w/src/gl3w.o
    creating build/temp.linux-x86_64-3.5/imgui
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c imgui/imgui.cpp -o build/temp.linux-x86_64-3.5/imgui/imgui.o -std=c++11
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c imgui/imgui_demo.cpp -o build/temp.linux-x86_64-3.5/imgui/imgui_demo.o -std=c++11
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c imgui/imgui_draw.cpp -o build/temp.linux-x86_64-3.5/imgui/imgui_draw.o -std=c++11
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    imgui/imgui_draw.cpp: In function ‘bool ImFontAtlasBuildWithStbTruetype(ImFontAtlas*)’:
    imgui/imgui_draw.cpp:92:54: warning: ‘spc.stbtt_pack_context::nodes’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     #define STBTT_free(x,u)    ((void)(u), ImGui::MemFree(x))
                                                          ^
    imgui/imgui_draw.cpp:1452:24: note: ‘spc.stbtt_pack_context::nodes’ was declared here
         stbtt_pack_context spc;
                            ^
    In file included from imgui/imgui_draw.cpp:100:0:
    imgui/stb_truetype.h:3629:50: warning: ‘spc.stbtt_pack_context::padding’ may be used uninitialized in this function [-Wmaybe-uninitialized]
                 stbrp_coord pad = (stbrp_coord) spc->padding;
                                                      ^
    imgui/imgui_draw.cpp:1452:24: note: ‘spc.stbtt_pack_context::padding’ was declared here
         stbtt_pack_context spc;
                            ^
    In file included from imgui/imgui_draw.cpp:100:0:
    imgui/stb_truetype.h:3652:60: warning: ‘spc.stbtt_pack_context::stride_in_bytes’ may be used uninitialized in this function [-Wmaybe-uninitialized]
                    stbtt__h_prefilter(spc->pixels + r->x + r->y*spc->stride_in_bytes,
                                                                ^
    imgui/imgui_draw.cpp:1452:24: note: ‘spc.stbtt_pack_context::stride_in_bytes’ was declared here
         stbtt_pack_context spc;
                            ^
    imgui/imgui_draw.cpp:1522:70: warning: ‘spc.stbtt_pack_context::pack_info’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             stbrp_pack_rects((stbrp_context*)spc.pack_info, tmp.Rects, n);
                                                                          ^
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c bimpy.cpp -o build/temp.linux-x86_64-3.5/bimpy.o -std=c++11
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    bimpy.cpp: In lambda function:
    bimpy.cpp:529:54: error: format not a string literal and no format arguments [-Werror=format-security]
      m.def("text", [](const char* text){ ImGui::Text(text); });
                                                          ^
    bimpy.cpp: In lambda function:
    bimpy.cpp:530:93: error: format not a string literal and no format arguments [-Werror=format-security]
      m.def("text_colored", [](const ImVec4& col, const char* text){ ImGui::TextColored(col, text); });
                                                                                                 ^
    bimpy.cpp: In lambda function:
    bimpy.cpp:531:71: error: format not a string literal and no format arguments [-Werror=format-security]
      m.def("text_disabled", [](const char* text){ ImGui::TextDisabled(text); });
                                                                           ^
    bimpy.cpp: In lambda function:
    bimpy.cpp:532:69: error: format not a string literal and no format arguments [-Werror=format-security]
      m.def("text_wrapped", [](const char* text){ ImGui::TextWrapped(text); });
                                                                         ^
    bimpy.cpp: In lambda function:
    bimpy.cpp:533:91: error: format not a string literal and no format arguments [-Werror=format-security]
      m.def("label_text", [](const char* label, const char* text){ ImGui::LabelText(label, text); });
                                                                                               ^
    bimpy.cpp: In lambda function:
    bimpy.cpp:534:67: error: format not a string literal and no format arguments [-Werror=format-security]
      m.def("bullet_text", [](const char* text){ ImGui::BulletText(text); });
                                                                       ^
    cc1plus: some warnings being treated as errors
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    
    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-9f792sty/bimpy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-k6mjik9k-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-9f792sty/bimpy/
You are using pip version 9.0.1, however version 9.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

add ImGui::PushFont()

it is very weird. There is a function bimpy.add_font_from_file_ttf ("font", size) but there is no function to use the font something like: bimpy.push_font(font)

Add OpenGL example

Hi,
first, thanks for mantaining Python bindings for ImGui!
I noticed this line on bimpy readme file:
bimpy already has all necessary functionality for window/OpenGL context creation and hides those details from the user.

But I can't find examples anywhere. It would be awesome to have a simple "OpenGL Bimpy hello world", maybe just a triangle that you can switch its color with a color picker.

I'm already trying to implement this, but my triangles are not being rendered. I suppose I should just put the rendering code inside bimpy context loop like this:

        while not ctx.should_close():

            ctx.new_frame()

            glClearColor(0.0, 0.0, 0.0, 1.0)
            glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT)
            glDrawElements(GL_TRIANGLES, 6, GL_UNSIGNED_INT, None)

            ctx.render()

I got no errors, just an empty window, although changing the color in glClearColor properly changes the window background color.

Any pointers are welcome.
Thanks!

How to build for Apple M1 Mac?

I could not install bimpy using conda and pip so I tried to build it from source code.

On running:
python setup.py install

Output Downloading libs/gl3w/include/GL/glcorearb.h... Downloading libs/gl3w/include/KHR/khrplatform.h... Parsing glcorearb.h header... Generating libs/gl3w/include/GL/gl3w.h... Generating libs/gl3w/src/gl3w.c... running install running bdist_egg running egg_info creating bimpy.egg-info writing bimpy.egg-info/PKG-INFO writing dependency_links to bimpy.egg-info/dependency_links.txt writing top-level names to bimpy.egg-info/top_level.txt writing manifest file 'bimpy.egg-info/SOURCES.txt' reading manifest file 'bimpy.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'gl3w/gl3w_gen.py' warning: no files found matching '*.py' under directory 'example' warning: no files found matching '*.c*' under directory 'libs/gl3w/include' warning: no files found matching '*.h' under directory 'config' warning: no files found matching '*.h' adding license file 'LICENSE.txt' writing manifest file 'bimpy.egg-info/SOURCES.txt' installing library code to build/bdist.macosx-11-arm64/egg running install_lib running build_py creating build creating build/lib.macosx-11-arm64-3.9 creating build/lib.macosx-11-arm64-3.9/bimpy copying bimpy/themes.py -> build/lib.macosx-11-arm64-3.9/bimpy copying bimpy/download.py -> build/lib.macosx-11-arm64-3.9/bimpy copying bimpy/__init__.py -> build/lib.macosx-11-arm64-3.9/bimpy copying bimpy/utils.py -> build/lib.macosx-11-arm64-3.9/bimpy copying bimpy/app.py -> build/lib.macosx-11-arm64-3.9/bimpy creating build/lib.macosx-11-arm64-3.9/bimpy/multilingual copying bimpy/multilingual/unicode_ranges.py -> build/lib.macosx-11-arm64-3.9/bimpy/multilingual copying bimpy/multilingual/load_fonts.py -> build/lib.macosx-11-arm64-3.9/bimpy/multilingual copying bimpy/multilingual/__init__.py -> build/lib.macosx-11-arm64-3.9/bimpy/multilingual running build_ext building '_bimpy' extension creating build/temp.macosx-11-arm64-3.9 creating build/temp.macosx-11-arm64-3.9/libs creating build/temp.macosx-11-arm64-3.9/libs/glfw creating build/temp.macosx-11-arm64-3.9/libs/glfw/src creating build/temp.macosx-11-arm64-3.9/libs/gl3w creating build/temp.macosx-11-arm64-3.9/libs/gl3w/src clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -D_GLFW_COCOA=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs/glfw/include -Ilibs/imgui -Ilibs/pybind11/include -Ilibs/backward-cpp -Ilibs/gl3w/include -Isources/config -Isources -I/opt/homebrew/include -I/opt/homebrew/opt/[email protected]/include -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c libs/glfw/src/context.c -o build/temp.macosx-11-arm64-3.9/libs/glfw/src/context.o clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -D_GLFW_COCOA=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs/glfw/include -Ilibs/imgui -Ilibs/pybind11/include -Ilibs/backward-cpp -Ilibs/gl3w/include -Isources/config -Isources -I/opt/homebrew/include -I/opt/homebrew/opt/[email protected]/include -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c libs/glfw/src/init.c -o build/temp.macosx-11-arm64-3.9/libs/glfw/src/init.o clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -D_GLFW_COCOA=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs/glfw/include -Ilibs/imgui -Ilibs/pybind11/include -Ilibs/backward-cpp -Ilibs/gl3w/include -Isources/config -Isources -I/opt/homebrew/include -I/opt/homebrew/opt/[email protected]/include -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c libs/glfw/src/input.c -o build/temp.macosx-11-arm64-3.9/libs/glfw/src/input.o clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -D_GLFW_COCOA=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs/glfw/include -Ilibs/imgui -Ilibs/pybind11/include -Ilibs/backward-cpp -Ilibs/gl3w/include -Isources/config -Isources -I/opt/homebrew/include -I/opt/homebrew/opt/[email protected]/include -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c libs/glfw/src/vulkan.c -o build/temp.macosx-11-arm64-3.9/libs/glfw/src/vulkan.o clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -D_GLFW_COCOA=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs/glfw/include -Ilibs/imgui -Ilibs/pybind11/include -Ilibs/backward-cpp -Ilibs/gl3w/include -Isources/config -Isources -I/opt/homebrew/include -I/opt/homebrew/opt/[email protected]/include -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c libs/glfw/src/monitor.c -o build/temp.macosx-11-arm64-3.9/libs/glfw/src/monitor.o clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -D_GLFW_COCOA=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs/glfw/include -Ilibs/imgui -Ilibs/pybind11/include -Ilibs/backward-cpp -Ilibs/gl3w/include -Isources/config -Isources -I/opt/homebrew/include -I/opt/homebrew/opt/[email protected]/include -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c libs/glfw/src/window.c -o build/temp.macosx-11-arm64-3.9/libs/glfw/src/window.o clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -D_GLFW_COCOA=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs/glfw/include -Ilibs/imgui -Ilibs/pybind11/include -Ilibs/backward-cpp -Ilibs/gl3w/include -Isources/config -Isources -I/opt/homebrew/include -I/opt/homebrew/opt/[email protected]/include -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c libs/glfw/src/cocoa_time.c -o build/temp.macosx-11-arm64-3.9/libs/glfw/src/cocoa_time.o clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -D_GLFW_COCOA=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs/glfw/include -Ilibs/imgui -Ilibs/pybind11/include -Ilibs/backward-cpp -Ilibs/gl3w/include -Isources/config -Isources -I/opt/homebrew/include -I/opt/homebrew/opt/[email protected]/include -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c libs/glfw/src/posix_thread.c -o build/temp.macosx-11-arm64-3.9/libs/glfw/src/posix_thread.o clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -D_GLFW_COCOA=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs/glfw/include -Ilibs/imgui -Ilibs/pybind11/include -Ilibs/backward-cpp -Ilibs/gl3w/include -Isources/config -Isources -I/opt/homebrew/include -I/opt/homebrew/opt/[email protected]/include -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c libs/glfw/src/egl_context.c -o build/temp.macosx-11-arm64-3.9/libs/glfw/src/egl_context.o clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -D_GLFW_COCOA=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs/glfw/include -Ilibs/imgui -Ilibs/pybind11/include -Ilibs/backward-cpp -Ilibs/gl3w/include -Isources/config -Isources -I/opt/homebrew/include -I/opt/homebrew/opt/[email protected]/include -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c libs/glfw/src/osmesa_context.c -o build/temp.macosx-11-arm64-3.9/libs/glfw/src/osmesa_context.o clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -D_GLFW_COCOA=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs/glfw/include -Ilibs/imgui -Ilibs/pybind11/include -Ilibs/backward-cpp -Ilibs/gl3w/include -Isources/config -Isources -I/opt/homebrew/include -I/opt/homebrew/opt/[email protected]/include -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c libs/gl3w/src/gl3w.c -o build/temp.macosx-11-arm64-3.9/libs/gl3w/src/gl3w.o creating build/temp.macosx-11-arm64-3.9/libs/imgui creating build/temp.macosx-11-arm64-3.9/sources clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -D_GLFW_COCOA=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs/glfw/include -Ilibs/imgui -Ilibs/pybind11/include -Ilibs/backward-cpp -Ilibs/gl3w/include -Isources/config -Isources -I/opt/homebrew/include -I/opt/homebrew/opt/[email protected]/include -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c libs/imgui/imgui.cpp -o build/temp.macosx-11-arm64-3.9/libs/imgui/imgui.o -std=c++11 clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -D_GLFW_COCOA=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs/glfw/include -Ilibs/imgui -Ilibs/pybind11/include -Ilibs/backward-cpp -Ilibs/gl3w/include -Isources/config -Isources -I/opt/homebrew/include -I/opt/homebrew/opt/[email protected]/include -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c libs/imgui/imgui_draw.cpp -o build/temp.macosx-11-arm64-3.9/libs/imgui/imgui_draw.o -std=c++11 clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -D_GLFW_COCOA=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs/glfw/include -Ilibs/imgui -Ilibs/pybind11/include -Ilibs/backward-cpp -Ilibs/gl3w/include -Isources/config -Isources -I/opt/homebrew/include -I/opt/homebrew/opt/[email protected]/include -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c libs/imgui/imgui_demo.cpp -o build/temp.macosx-11-arm64-3.9/libs/imgui/imgui_demo.o -std=c++11 clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -D_GLFW_COCOA=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs/glfw/include -Ilibs/imgui -Ilibs/pybind11/include -Ilibs/backward-cpp -Ilibs/gl3w/include -Isources/config -Isources -I/opt/homebrew/include -I/opt/homebrew/opt/[email protected]/include -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c sources/bimpy.cpp -o build/temp.macosx-11-arm64-3.9/sources/bimpy.o -std=c++11 clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -D_GLFW_COCOA=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs/glfw/include -Ilibs/imgui -Ilibs/pybind11/include -Ilibs/backward-cpp -Ilibs/gl3w/include -Isources/config -Isources -I/opt/homebrew/include -I/opt/homebrew/opt/[email protected]/include -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c libs/imgui/imgui_widgets.cpp -o build/temp.macosx-11-arm64-3.9/libs/imgui/imgui_widgets.o -std=c++11 clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -D_GLFW_COCOA=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs/glfw/include -Ilibs/imgui -Ilibs/pybind11/include -Ilibs/backward-cpp -Ilibs/gl3w/include -Isources/config -Isources -I/opt/homebrew/include -I/opt/homebrew/opt/[email protected]/include -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c sources/imgui_impl_opengl3.cpp -o build/temp.macosx-11-arm64-3.9/sources/imgui_impl_opengl3.o -std=c++11 In file included from sources/bimpy.cpp:6: In file included from libs/imgui/imgui.h:42: In file included from sources/config/bimpy_imgui_config.h:6: sources/runtime_error.h:47:70: warning: field 'ap' is uninitialized when used here [-Wuninitialized] std::runtime_error(string_format(fmt_str, (va_start(ap, fmt_str), ap))) ^ In file included from libs/imgui/imgui_draw.cpp:29: In file included from libs/imgui/imgui.h:42: In file included from sources/config/bimpy_imgui_config.h:6: sources/runtime_error.h:47:70: warning: field 'ap' is uninitialized when used here [-Wuninitialized] std::runtime_error(string_format(fmt_str, (va_start(ap, fmt_str), ap))) ^ In file included from sources/imgui_impl_opengl3.cpp:54: In file included from libs/imgui/imgui.h:42: In file included from sources/config/bimpy_imgui_config.h:6: sources/runtime_error.h:47:70: warning: field 'ap' is uninitialized when used here [-Wuninitialized] std::runtime_error(string_format(fmt_str, (va_start(ap, fmt_str), ap))) ^ In file included from libs/imgui/imgui.cpp:793: In file included from libs/imgui/imgui.h:42: In file included from sources/config/bimpy_imgui_config.h:6: sources/runtime_error.h:47:70: warning: field 'ap' is uninitialized when used here [-Wuninitialized] std::runtime_error(string_format(fmt_str, (va_start(ap, fmt_str), ap))) ^ In file included from libs/imgui/imgui_demo.cpp:67: In file included from libs/imgui/imgui.h:42: In file included from sources/config/bimpy_imgui_config.h:6: sources/runtime_error.h:47:70: warning: field 'ap' is uninitialized when used here [-Wuninitialized] std::runtime_error(string_format(fmt_str, (va_start(ap, fmt_str), ap))) ^ In file included from libs/imgui/imgui_widgets.cpp:35: In file included from libs/imgui/imgui.h:42: In file included from sources/config/bimpy_imgui_config.h:6: sources/runtime_error.h:47:70: warning: field 'ap' is uninitialized when used here [-Wuninitialized] std::runtime_error(string_format(fmt_str, (va_start(ap, fmt_str), ap))) ^ 1 warning generated. clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -D_GLFW_COCOA=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs/glfw/include -Ilibs/imgui -Ilibs/pybind11/include -Ilibs/backward-cpp -Ilibs/gl3w/include -Isources/config -Isources -I/opt/homebrew/include -I/opt/homebrew/opt/[email protected]/include -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c sources/imgui_impl_glfw.cpp -o build/temp.macosx-11-arm64-3.9/sources/imgui_impl_glfw.o -std=c++11 In file included from sources/imgui_impl_glfw.cpp:40: In file included from libs/imgui/imgui.h:42: In file included from sources/config/bimpy_imgui_config.h:6: sources/runtime_error.h:47:70: warning: field 'ap' is uninitialized when used here [-Wuninitialized] std::runtime_error(string_format(fmt_str, (va_start(ap, fmt_str), ap))) ^ 1 warning generated. In file included from sources/bimpy.cpp:18: libs/backward-cpp/backward.hpp:4160:60: error: member reference type 'struct __darwin_mcontext64 *' is a pointer; did you mean to use '->'? error_addr = reinterpret_cast(uctx->uc_mcontext.pc); ~~~~~~~~~~~~~~~~~^ -> libs/backward-cpp/backward.hpp:4160:61: error: no member named 'pc' in '__darwin_mcontext64' error_addr = reinterpret_cast(uctx->uc_mcontext.pc); ~~~~~~~~~~~~~~~~~ ^ sources/bimpy.cpp:753:17: warning: explicitly assigning value of variable of type 'const pybind11::detail::self_t' to itself [-Wself-assign-overloaded] .def(py::self -= py::self) ~~~~~~~~ ^ ~~~~~~~~ sources/bimpy.cpp:1648:29: warning: lambda capture 'get_persistent_storage' is not used [-Wunused-lambda-capture] m.def("add_font_default", [get_persistent_storage](int oversample=2, bool merge=false) ^~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. 1 warning generated. 1 warning generated. 3 warnings and 2 errors generated. 1 warning generated. error: command '/usr/bin/clang' failed with exit code 1

How to reproduce:
git submodule update --init
python3 setup.py install

Could not find a version that satisfies the requirement gl3w_gen

when running python setup.py install on window10 with python 3.7 and 3.8 with pip 10.0 and 20.2 I get the following error:

Traceback (most recent call last):
  File "setup.py", line 22, in <module>
    from gl3w import gl3w_gen
ImportError: cannot import name 'gl3w_gen' from 'gl3w' (unknown location)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "setup.py", line 25, in <module>
    import gl3w_gen
ModuleNotFoundError: No module named 'gl3w_gen'

Docking

Loving this extension of DearImGui! I have a need for Docking though, so I've forked the repository to https://github.com/temportalflux/bimpy/tree/docking and added docking myself. I don't plan to maintain it in the long term, and its not ready for PR, but if/when y'all want to integrate docking either on master when docking gets merged in DearImGui or in your own docking branch, you're more than welcome to pull in my changes.

DeprecationWarning with Python 3.8

Firstly, thanks for creating Bimpy. I am enjoying working with it, especially because how simple you've made it to work with images. I am trying bimpy with Python 3.8 and get the following warning:

bimpy_minimal.py:10: DeprecationWarning: an integer is required (got type _bimpy.Condition).  Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
  bimpy.set_next_window_pos(bimpy.Vec2(20, 20), bimpy.Condition.Once)
bimpy_minimal.py:11: DeprecationWarning: an integer is required (got type _bimpy.WindowFlags).  Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
  bimpy.begin("Hello World")

Here is what bimpy_minimal.py looks like:

import bimpy

ctx = bimpy.Context()
ctx.init(1200,768, "Hello bimpy!")


while(not ctx.should_close()):
    with ctx:
        # bimpy.themes.set_light_theme()
        bimpy.set_next_window_pos(bimpy.Vec2(20, 20), bimpy.Condition.Once)
        bimpy.begin("Hello World")
        bimpy.end()

pass custom params in init

If possible, pass GLFW args (like GLFW_TRANSPARENT_FRAMEBUFFER, etc) on .init params

eg.: cpx.init(100,100,"name", GLFW_FLOATING | GLFW_HOVERED)

Can't pip install bimpy on raspberry pi os :(

I can't get bimpy to pip install .... keep getting the following error:

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting bimpy
  Using cached https://files.pythonhosted.org/packages/59/10/fa47d72afbea9205804b96f3f13f56f6da0297837c05305d44776c3ebdf8/bimpy-0.1.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "/tmp/pip-install-tl2fmrev/bimpy/setup.py", line 47, in <module>
        from libs.gl3w import gl3w_gen
    ImportError: cannot import name 'gl3w_gen' from 'libs.gl3w' (unknown location)
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-tl2fmrev/bimpy/setup.py", line 50, in <module>
        import gl3w_gen
    ModuleNotFoundError: No module named 'gl3w_gen'
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-tl2fmrev/bimpy/```

I even built gl3w from source but still no good as bumpy is supposed to ship with it's own gl3w built in.

Ay ideas?

Python 3.7.3 (also tried 3.9.0) and Raspbian version: 10.8

Feature Request: DPI Content Scaling

I would like to scale depending on monitor DPI.

I think this can be done by providing access to glfwGetMonitorContentScale() function in the API.

Thanks

Install Error

Hello, i can't install Bimpy. My error.

`ERROR: Command errored out with exit status 1:
command: 'c:\users\user\appdata\local\programs\python\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\user\AppData\Local\Temp\pip-install-gasiy11s\bimpy_9622d8cdff6942879647ea7baaa98902\setup.py'"'"'; file='"'"'C:\Users\user\AppData\Local\Temp\pip-install-gasiy11s\bimpy_9622d8cdff6942879647ea7baaa98902\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\user\AppData\Local\Temp\pip-wheel-mnc2psf4'
cwd: C:\Users\user\AppData\Local\Temp\pip-install-gasiy11s\bimpy_9622d8cdff6942879647ea7baaa98902
Complete output (84 lines):
Reusing libs/gl3w/include/GL/glcorearb.h...
Reusing libs/gl3w/include/KHR/khrplatform.h...
Parsing glcorearb.h header...
Generating libs/gl3w/include/GL/gl3w.h...
Generating libs/gl3w/src/gl3w.c...
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\bimpy
copying bimpy\app.py -> build\lib.win-amd64-3.9\bimpy
copying bimpy\download.py -> build\lib.win-amd64-3.9\bimpy
copying bimpy\themes.py -> build\lib.win-amd64-3.9\bimpy
copying bimpy\utils.py -> build\lib.win-amd64-3.9\bimpy
copying bimpy_init_.py -> build\lib.win-amd64-3.9\bimpy
creating build\lib.win-amd64-3.9\bimpy\multilingual
copying bimpy\multilingual\load_fonts.py -> build\lib.win-amd64-3.9\bimpy\multilingual
copying bimpy\multilingual\unicode_ranges.py -> build\lib.win-amd64-3.9\bimpy\multilingual
copying bimpy\multilingual_init_.py -> build\lib.win-amd64-3.9\bimpy\multilingual
running build_ext
building '_bimpy' extension
creating build\temp.win-amd64-3.9
creating build\temp.win-amd64-3.9\Release
creating build\temp.win-amd64-3.9\Release\libs
creating build\temp.win-amd64-3.9\Release\libs\glfw
creating build\temp.win-amd64-3.9\Release\libs\glfw\src
creating build\temp.win-amd64-3.9\Release\libs\gl3w
creating build\temp.win-amd64-3.9\Release\libs\gl3w\src
D:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DGLFW_USE_HYBRID_HPG=0 -D_GLFW_WIN32=1 -D_CRT_SECURE_NO_WARNINGS=1 -DNOMINMAX=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs\glfw/include -Ilibs\imgui -Ilibs\pybind11/include -Ilibs\backward-cpp -Ilibs\gl3w/include -Isources/config -Isources -Ic:\users\user\appdata\local\programs\python\python39\include -Ic:\users\user\appdata\local\programs\python\python39\include -ID:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /Tclibs\glfw/src/context.c /Fobuild\temp.win-amd64-3.9\Release\libs\glfw/src/context.obj /MT /fp:fast /GL /GR-
cl : Command line warning D9025 : overriding '/MD' with '/MT'
context.c
D:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DGLFW_USE_HYBRID_HPG=0 -D_GLFW_WIN32=1 -D_CRT_SECURE_NO_WARNINGS=1 -DNOMINMAX=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs\glfw/include -Ilibs\imgui -Ilibs\pybind11/include -Ilibs\backward-cpp -Ilibs\gl3w/include -Isources/config -Isources -Ic:\users\user\appdata\local\programs\python\python39\include -Ic:\users\user\appdata\local\programs\python\python39\include -ID:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /Tclibs\glfw/src/init.c /Fobuild\temp.win-amd64-3.9\Release\libs\glfw/src/init.obj /MT /fp:fast /GL /GR-
cl : Command line warning D9025 : overriding '/MD' with '/MT'
init.c
D:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DGLFW_USE_HYBRID_HPG=0 -D_GLFW_WIN32=1 -D_CRT_SECURE_NO_WARNINGS=1 -DNOMINMAX=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs\glfw/include -Ilibs\imgui -Ilibs\pybind11/include -Ilibs\backward-cpp -Ilibs\gl3w/include -Isources/config -Isources -Ic:\users\user\appdata\local\programs\python\python39\include -Ic:\users\user\appdata\local\programs\python\python39\include -ID:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /Tclibs\glfw/src/input.c /Fobuild\temp.win-amd64-3.9\Release\libs\glfw/src/input.obj /MT /fp:fast /GL /GR-
cl : Command line warning D9025 : overriding '/MD' with '/MT'
input.c
D:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DGLFW_USE_HYBRID_HPG=0 -D_GLFW_WIN32=1 -D_CRT_SECURE_NO_WARNINGS=1 -DNOMINMAX=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs\glfw/include -Ilibs\imgui -Ilibs\pybind11/include -Ilibs\backward-cpp -Ilibs\gl3w/include -Isources/config -Isources -Ic:\users\user\appdata\local\programs\python\python39\include -Ic:\users\user\appdata\local\programs\python\python39\include -ID:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /Tclibs\glfw/src/monitor.c /Fobuild\temp.win-amd64-3.9\Release\libs\glfw/src/monitor.obj /MT /fp:fast /GL /GR-
cl : Command line warning D9025 : overriding '/MD' with '/MT'
monitor.c
D:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DGLFW_USE_HYBRID_HPG=0 -D_GLFW_WIN32=1 -D_CRT_SECURE_NO_WARNINGS=1 -DNOMINMAX=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs\glfw/include -Ilibs\imgui -Ilibs\pybind11/include -Ilibs\backward-cpp -Ilibs\gl3w/include -Isources/config -Isources -Ic:\users\user\appdata\local\programs\python\python39\include -Ic:\users\user\appdata\local\programs\python\python39\include -ID:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /Tclibs\glfw/src/vulkan.c /Fobuild\temp.win-amd64-3.9\Release\libs\glfw/src/vulkan.obj /MT /fp:fast /GL /GR-
cl : Command line warning D9025 : overriding '/MD' with '/MT'
vulkan.c
D:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DGLFW_USE_HYBRID_HPG=0 -D_GLFW_WIN32=1 -D_CRT_SECURE_NO_WARNINGS=1 -DNOMINMAX=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs\glfw/include -Ilibs\imgui -Ilibs\pybind11/include -Ilibs\backward-cpp -Ilibs\gl3w/include -Isources/config -Isources -Ic:\users\user\appdata\local\programs\python\python39\include -Ic:\users\user\appdata\local\programs\python\python39\include -ID:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /Tclibs\glfw/src/window.c /Fobuild\temp.win-amd64-3.9\Release\libs\glfw/src/window.obj /MT /fp:fast /GL /GR-
cl : Command line warning D9025 : overriding '/MD' with '/MT'
window.c
D:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DGLFW_USE_HYBRID_HPG=0 -D_GLFW_WIN32=1 -D_CRT_SECURE_NO_WARNINGS=1 -DNOMINMAX=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs\glfw/include -Ilibs\imgui -Ilibs\pybind11/include -Ilibs\backward-cpp -Ilibs\gl3w/include -Isources/config -Isources -Ic:\users\user\appdata\local\programs\python\python39\include -Ic:\users\user\appdata\local\programs\python\python39\include -ID:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /Tclibs\glfw/src/win32_init.c /Fobuild\temp.win-amd64-3.9\Release\libs\glfw/src/win32_init.obj /MT /fp:fast /GL /GR-
cl : Command line warning D9025 : overriding '/MD' with '/MT'
win32_init.c
D:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DGLFW_USE_HYBRID_HPG=0 -D_GLFW_WIN32=1 -D_CRT_SECURE_NO_WARNINGS=1 -DNOMINMAX=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs\glfw/include -Ilibs\imgui -Ilibs\pybind11/include -Ilibs\backward-cpp -Ilibs\gl3w/include -Isources/config -Isources -Ic:\users\user\appdata\local\programs\python\python39\include -Ic:\users\user\appdata\local\programs\python\python39\include -ID:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /Tclibs\glfw/src/win32_joystick.c /Fobuild\temp.win-amd64-3.9\Release\libs\glfw/src/win32_joystick.obj /MT /fp:fast /GL /GR-
cl : Command line warning D9025 : overriding '/MD' with '/MT'
win32_joystick.c
D:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DGLFW_USE_HYBRID_HPG=0 -D_GLFW_WIN32=1 -D_CRT_SECURE_NO_WARNINGS=1 -DNOMINMAX=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs\glfw/include -Ilibs\imgui -Ilibs\pybind11/include -Ilibs\backward-cpp -Ilibs\gl3w/include -Isources/config -Isources -Ic:\users\user\appdata\local\programs\python\python39\include -Ic:\users\user\appdata\local\programs\python\python39\include -ID:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /Tclibs\glfw/src/win32_monitor.c /Fobuild\temp.win-amd64-3.9\Release\libs\glfw/src/win32_monitor.obj /MT /fp:fast /GL /GR-
cl : Command line warning D9025 : overriding '/MD' with '/MT'
win32_monitor.c
D:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DGLFW_USE_HYBRID_HPG=0 -D_GLFW_WIN32=1 -D_CRT_SECURE_NO_WARNINGS=1 -DNOMINMAX=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs\glfw/include -Ilibs\imgui -Ilibs\pybind11/include -Ilibs\backward-cpp -Ilibs\gl3w/include -Isources/config -Isources -Ic:\users\user\appdata\local\programs\python\python39\include -Ic:\users\user\appdata\local\programs\python\python39\include -ID:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /Tclibs\glfw/src/win32_time.c /Fobuild\temp.win-amd64-3.9\Release\libs\glfw/src/win32_time.obj /MT /fp:fast /GL /GR-
cl : Command line warning D9025 : overriding '/MD' with '/MT'
win32_time.c
D:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DGLFW_USE_HYBRID_HPG=0 -D_GLFW_WIN32=1 -D_CRT_SECURE_NO_WARNINGS=1 -DNOMINMAX=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs\glfw/include -Ilibs\imgui -Ilibs\pybind11/include -Ilibs\backward-cpp -Ilibs\gl3w/include -Isources/config -Isources -Ic:\users\user\appdata\local\programs\python\python39\include -Ic:\users\user\appdata\local\programs\python\python39\include -ID:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /Tclibs\glfw/src/win32_thread.c /Fobuild\temp.win-amd64-3.9\Release\libs\glfw/src/win32_thread.obj /MT /fp:fast /GL /GR-
cl : Command line warning D9025 : overriding '/MD' with '/MT'
win32_thread.c
D:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DGLFW_USE_HYBRID_HPG=0 -D_GLFW_WIN32=1 -D_CRT_SECURE_NO_WARNINGS=1 -DNOMINMAX=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs\glfw/include -Ilibs\imgui -Ilibs\pybind11/include -Ilibs\backward-cpp -Ilibs\gl3w/include -Isources/config -Isources -Ic:\users\user\appdata\local\programs\python\python39\include -Ic:\users\user\appdata\local\programs\python\python39\include -ID:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /Tclibs\glfw/src/win32_window.c /Fobuild\temp.win-amd64-3.9\Release\libs\glfw/src/win32_window.obj /MT /fp:fast /GL /GR-
cl : Command line warning D9025 : overriding '/MD' with '/MT'
win32_window.c
D:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DGLFW_USE_HYBRID_HPG=0 -D_GLFW_WIN32=1 -D_CRT_SECURE_NO_WARNINGS=1 -DNOMINMAX=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs\glfw/include -Ilibs\imgui -Ilibs\pybind11/include -Ilibs\backward-cpp -Ilibs\gl3w/include -Isources/config -Isources -Ic:\users\user\appdata\local\programs\python\python39\include -Ic:\users\user\appdata\local\programs\python\python39\include -ID:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /Tclibs\glfw/src/wgl_context.c /Fobuild\temp.win-amd64-3.9\Release\libs\glfw/src/wgl_context.obj /MT /fp:fast /GL /GR-
cl : Command line warning D9025 : overriding '/MD' with '/MT'
wgl_context.c
D:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DGLFW_USE_HYBRID_HPG=0 -D_GLFW_WIN32=1 -D_CRT_SECURE_NO_WARNINGS=1 -DNOMINMAX=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs\glfw/include -Ilibs\imgui -Ilibs\pybind11/include -Ilibs\backward-cpp -Ilibs\gl3w/include -Isources/config -Isources -Ic:\users\user\appdata\local\programs\python\python39\include -Ic:\users\user\appdata\local\programs\python\python39\include -ID:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /Tclibs\glfw/src/egl_context.c /Fobuild\temp.win-amd64-3.9\Release\libs\glfw/src/egl_context.obj /MT /fp:fast /GL /GR-
cl : Command line warning D9025 : overriding '/MD' with '/MT'
egl_context.c
D:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DGLFW_USE_HYBRID_HPG=0 -D_GLFW_WIN32=1 -D_CRT_SECURE_NO_WARNINGS=1 -DNOMINMAX=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs\glfw/include -Ilibs\imgui -Ilibs\pybind11/include -Ilibs\backward-cpp -Ilibs\gl3w/include -Isources/config -Isources -Ic:\users\user\appdata\local\programs\python\python39\include -Ic:\users\user\appdata\local\programs\python\python39\include -ID:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /Tclibs\glfw/src/osmesa_context.c /Fobuild\temp.win-amd64-3.9\Release\libs\glfw/src/osmesa_context.obj /MT /fp:fast /GL /GR-
cl : Command line warning D9025 : overriding '/MD' with '/MT'
osmesa_context.c
D:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DGLFW_USE_HYBRID_HPG=0 -D_GLFW_WIN32=1 -D_CRT_SECURE_NO_WARNINGS=1 -DNOMINMAX=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs\glfw/include -Ilibs\imgui -Ilibs\pybind11/include -Ilibs\backward-cpp -Ilibs\gl3w/include -Isources/config -Isources -Ic:\users\user\appdata\local\programs\python\python39\include -Ic:\users\user\appdata\local\programs\python\python39\include -ID:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /Tclibs/gl3w/src/gl3w.c /Fobuild\temp.win-amd64-3.9\Release\libs/gl3w/src/gl3w.obj /MT /fp:fast /GL /GR-
cl : Command line warning D9025 : overriding '/MD' with '/MT'
gl3w.c
creating build\temp.win-amd64-3.9\Release\libs\imgui
creating build\temp.win-amd64-3.9\Release\sources
D:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DGLFW_USE_HYBRID_HPG=0 -D_GLFW_WIN32=1 -D_CRT_SECURE_NO_WARNINGS=1 -DNOMINMAX=1 -DIMGUI_USER_CONFIG="bimpy_imgui_config.h" -Ilibs\glfw/include -Ilibs\imgui -Ilibs\pybind11/include -Ilibs\backward-cpp -Ilibs\gl3w/include -Isources/config -Isources -Ic:\users\user\appdata\local\programs\python\python39\include -Ic:\users\user\appdata\local\programs\python\python39\include -ID:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /EHsc /Tplibs\imgui/imgui.cpp /Fobuild\temp.win-amd64-3.9\Release\libs\imgui/imgui.obj /MT /fp:fast /GL /GR-
cl : Command line warning D9025 : overriding '/MD' with '/MT'
imgui.cpp
C:\Users\user\AppData\Local\Temp\pip-install-gasiy11s\bimpy_9622d8cdff6942879647ea7baaa98902\libs\imgui\imgui.h(42): fatal error C1083: Cannot open include file: 'bimpy_imgui_config.h': No such file or directory
error: command 'D:\Visual Studio IDE\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit code 2

ERROR: Failed building wheel for bimpy`

using pip install bimpy

program crashes if you type quickly in multiline box

import bimpy

ctx = bimpy.Context()

ctx.init(1024, 768, "very dummy text editor")

str = bimpy.String()
f = bimpy.Float()

while(not ctx.should_close()):
    with ctx:
        bimpy.begin("dummy edior")
        bimpy.text("type your text:")
        typing = bimpy.input_text_multiline("urls", str, 1000)
        if typing:
            print(str.value)

if you type very quick, program crashes with no error and exit code -1073741819 (0xC0000005)

combining flags doesn't seem possible

Combining flags doesn't seem possible since each flag is a class where or operator seems to fail bimpy.begin("Hi", flags=bimpy.WindowFlags.AlwaysAutoResize | bimpy.WindowFlags.NoTitleBar)

is there another way to do this?

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.