Python Forum

Full Version: Gtk3, grab output of python into dialogue?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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