Python Forum
Gtk3, grab output of python into dialogue? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Networking (https://python-forum.io/forum-12.html)
+--- Thread: Gtk3, grab output of python into dialogue? (/thread-12862.html)



Gtk3, grab output of python into dialogue? - TimeMen - Sep-16-2018

Hey there,
not sure if i post at the right place.

I use google_images_download (available via pip) to get images from Google.
I wanna put the output into a Gtk3+ dialogue or better something like a popup, if something like this is available in Gtk3+.
But how can I grab the ouput of the following lines, where the last one is the line which gives me the following output
species = self.builder.get_object('Tbo_Species').get_text()
arguments = {"keywords":species,"limit":5,"size":"large"}
paths = response.download(arguments)
Output:
Item no.: 1 --> Item name = Blaukehlchen Evaluating... Starting Download... Completed Image ====> 1. maxresdefault.jpg Completed Image ====> 2. blaukelch.jpg Completed Image ====> 3. image.jpg Completed Image ====> 4. image.jpg Completed Image ====> 5. maxresdefault.jpg Errors: 0
The output does not appear at one time, but each line is coming after the other, and I want it to be print like it appears in the stacktrace, so to say a live view of the commands progress.
Best Wishes,
TimeMen