I want to make a program with Gtk that reads data from standard input and interprets by doing drawings in a DrawingArea
.
The concept is simple, but I came across a problem: after I call Gtk::Application::run
the only code written by me to execute is the on_draw
sign of DrawingArea
.
I need to receive the default entry and I can not do this in the on_draw
method because the program would stop responding.
What I want is to be able to send data at any time, and the drawing updates in real time.
Drawing input, interpretation, and display on the screen are easy to implement, but doing them together seems like a daunting task.
So how could I do it? A simple example would be very useful (basically what I want is to be able to enter text while the Gtk::Application::run
function executes)