-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Tkinter alternative backend for GUI #4
Comments
Ahh, you know this would probably work pretty well in pyscript in the browser.
|
That looks really interesting. Thanks for the tip @Neon22. Feel free to give it a go if you are interested and I can make the necessary changes in the packaging. This app however will need the full CPython interpreter on WASM (i.e. not just micropython) since we have at least Numpy as a dependency as of now. Maybe it could be possible to use the |
OK. Thanks. Tried the isentropic example and got the following errors:
I will keep experimenting with your examples.
|
Here are the error messages for the
|
|
The example: caeroc_old_single_file.py The errors were:
The link to this example (which you can clone and edit) is:
|
OK. I have gone back to the "Compressible Aerodynamics calculator" and added some basic UI. But getting this error:
The code is:
and is called with:
where I'm keep adding the target DIV but fixing that. Could be a useful starting point for someone like a student to add to. Especially as they can edit it online. |
For the error, you need to replace |
Thanks @ashwinvis. Pretty much got it all going now.
Plots on the left - terminal in a slider on the right. |
@Neon22 Very nice effort for such little time! To be honest, I don't recall if that script was right or wrong. Maybe you can check if you have training in aerospace engineering 😉. The technique was called Method of Characteristics. Also feel free to submit a PR, so I can feature it in the README |
I will submit PR for fixed example and for link to pyscript example. Alas I am not an aerospace engineer... |
For the main calculator, the following is the class which generates the Qt GUI. https://github.com/ashwinvis/caeroc/blob/main/src/caeroc/gui/runtime.py If you are not familiar with Qt, it works on the concept of "Slots" which are essentially user events like pressing a button which does something to the output. I think it can be easily translated to Ltk also. |
As of now PyQt5 and PySide are supported.
The text was updated successfully, but these errors were encountered: