-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
tqdm_gui.write() in the GUI instead of console? #172
Comments
I use wxPython and I am creating a GUI that use a CLI Python program (and inside it, tqdm). About create a graphical independent process bar for tqdm, it is interesting if could run in different graphical libraries / not depend of more package installations / or, at least, use the default graphical library already provide in Python (Python 2 use TKinter and Python 3, not, if I remember). |
This should be easier with inheritance in the new architecture which will be in v5. |
Glad to hear that. |
On version 4, is it possible to overload some class to:
Which class or function I have to overload? |
all of this is do-able as-is, but I'm hesitant because it'll be clunky and have to be upgraded when I (finally) get around to v5... |
see #494 for hacky parsing of update strings, and |
I'm using a package that uses tqdm to print progress on console. |
I time ago I wrote this code https://github.com/hildogjr/KiCost/blob/master/kicost/kicost_gui.py, it is not fancy but worked. The tool was mainly CLI and I just wanted to create a gauge of |
tqdm_gui.write()
currently outputs text into the console. Maybe it should prints into the GUI, below the figure in a textbox that would autowrap and overflow (have scrollbars)?I googled a bit, but it will likely be very complicated to do that using only matplotlib (the currently used lib for drawing the GUI). Eg:
A solution would be to encase the matplotlib drawing into a QT window, but then the GUI would depend on QT lib...
The text was updated successfully, but these errors were encountered: