-
Notifications
You must be signed in to change notification settings - Fork 185
Add support for ImGuiIO clipboard callbacks #144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for ImGuiIO clipboard callbacks #144
Conversation
|
Thanks for contribution! It features callbacks and we had some memory-safety issues when doing callbacks in different place. So I will just do some testing manually to check whether this needs some warnings in documentation. Will try to do that as soon as possible |
|
@swistakm Thanks for developing and maintaining this awesome library! There may also be Python 2/3 type compatibility issues when passing strings around. I can't trigger TypeErrors with the clipboard callbacks, but I stumbled upon such errors when I tried to add support for BTW: These type errors are triggered in |
|
Thanks for PR, sorry it took so long to review. I have verified the SDL2 implementation under Python2 and Python3 and fixed the typing issue I think you was referring to. |
|
Feature released in 1.2.0. |
|
Thanks for the release! Installed it already :-) |
- Facilities for accessing system clipboard are not supported on Linux, hence that we are not able to copy text from another program and paste it into `imgui` widgets. Since there is no native solution implemented in `pyglet`, we use an external module called `pyperclip` to solve this problem. See also: - pyimgui/pyimgui#115 - pyimgui/pyimgui#144
Allows user/system clipboard integration (aside from the internal ImGui clipboard and the out-of-the-box supported Windows clipboard).
System clipboard is enabled in GLFW integration.