-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Interface legacy C++ GUI Widget system with Python #484
Comments
The old C++ widget system is good, but most people just using python now. I think pip users won't like the code never reached in Solution 1: How do you think? I personally tend to solution 2. Btw, why not taichi-dev/taichi_assets? |
My feeling is that we should first go 1 since it's not a lot of work (just export a few functions and callbacks). 2 sounds like more work but also more extensible. The question is as a compiler do we really need a super fancy widget system? My feeling tends to be no, but I'm open to any inputs.
Currently the only file we need in that submodule is a font file ( |
You're right. the GUI system isn't a center point of a compiler.
Yeah I made a symbolic link from |
Warning: The issue has been out-of-update for 50 days, marking |
People might be happy if they could use this in their TopOp build on taichi.py, working on this now :) |
That would be very helpful! But again, I suggest we go with your "Solution 1": simply add python bindings of existing C++ widget classes. |
Concisely describe the proposed feature
As mentioned in #478 we do have an old yet helpful C++ widget system that supports sliders, buttons, etc:
(How to run it: just use the latest commit, clone taichi_assets as
taichi/assets
, and executeti test_gui
)Since literally nobody is using Taichi via C++ anymore, we should consider adding a Python binding via
pybind11
, potentially extendingti.GUI
.(Why don't we use Qt: Taichi used to depend on Qt, yet a lot of users had problems installing it, even
PyQt
... Also the types of widgets we need to support is rather minimal and Qt is an overkill.)The text was updated successfully, but these errors were encountered: