Feb-04-2018, 08:31 PM
(This post was last modified: Feb-04-2018, 08:32 PM by Gribouillis.)
One way to do this could be to incorporate a python console in your GUI application. I have an example of how this can be done in pygtk. I'm not the author of this program (see the credits at the top of the file), it was part of the Umit project but as you see it was free software under GPLv2 when I downloaded it a long time ago. It still runs under python 2.7 and it is basically both a pygtk widget and a python console.
This program could be extended by adding widgets to draw anything you want and the console could access directly the drawing data.
The program is not very long, so I think it can be rewritten for other gui toolkits and versions of python without too much effort. The file is here: umitconsole.py
This program could be extended by adding widgets to draw anything you want and the console could access directly the drawing data.
The program is not very long, so I think it can be rewritten for other gui toolkits and versions of python without too much effort. The file is here: umitconsole.py