Progress bars for QB64 (Linux) - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3) +---- Forum: Works in Progress (https://qb64phoenix.com/forum/forumdisplay.php?fid=9) +---- Thread: Progress bars for QB64 (Linux) (/showthread.php?tid=2068) |
Progress bars for QB64 (Linux) - SpriggsySpriggs - 10-06-2023 Inspired by my code for pipecom for Linux, which uses popen to read from a process, I decided to write up some code for progress bars using Zenity in Linux. I will not post all the code just yet but I wanted to show it at least working. Here is a small recording of a simple progress bar: RE: Progress bars for QB64 (Linux) - grymmjack - 10-06-2023 (10-06-2023, 02:12 PM)SpriggsySpriggs Wrote: Inspired by my code for pipecom for Linux, which uses popen to read from a process, I decided to write up some code for progress bars using Zenity in Linux. I will not post all the code just yet but I wanted to show it at least working. Here is a small recording of a simple progress bar: This is dope @spriggsyspriggs ! Well done. I have no experience with Zenity but it seems like a CLI based widget thing? RE: Progress bars for QB64 (Linux) - mnrvovrfc - 10-06-2023 Originally Zenity was written to offer "pretty" GTK+ dialog boxes for "bash" scripts on Linux. Which go beyond the realm of "gdialog" or predecessor that relied entirely on text-based "ncurses" library. There is also Yad, but the syntax for that one could be much more involved because it could support more than one control in one dialog. If you have used the MX Tools on MX Linux, those are replete with Yad. I'm not sure if there's a "quick" dialog kit which uses Qt framework instead. RE: Progress bars for QB64 (Linux) - SpriggsySpriggs - 10-06-2023 Yeah, I like Zenity. I use it all the time when writing things for Linux. I'm currently working on a dialog library for QB64 that uses Zenity. It will be similar to the tinyfiledialogs backend that QB64 already uses but will have more functionality and more dialogs. RE: Progress bars for QB64 (Linux) - SpriggsySpriggs - 10-06-2023 Here is some code to run and try it yourself. Code: (Select All)
RE: Progress bars for QB64 (Linux) - SpriggsySpriggs - 10-06-2023 In that last post, I also added the `--time-remaining` flag, which estimates how much longer it will take to complete the process. This code also allows you to change the size of the progress bar window. Code: (Select All)
|