On 08/19/2013 02:28 AM, Markus Elfring wrote:
Do you see any technical problems with what I posted?
Eventually, yes.

It depends on the observed execution speed in your application for example. When
would you categorise the situation that a specific graphical user interface
becomes unresponsive?
Do you expect visual feedback in less than a second for your programs?
The program executes. The gui is updated in a faction of a second. If I placed a left a button there as I find in most of the examples it would take longer to see the update because a person can't press a button in less than a faction of a second.

But again, my code doesn't experience any delay that I can identify. The output is just as immediate as I can see as if it were output with "cout" to standard out.

As far as you seeing a technical problem, is it possible that you could post some code that would actually work to identify the problem?

Also do you see the same problem with the code supplied by Alan and discussed in depth here:
https://mail.gnome.org/archives/gtkmm-list/2013-August/msg00052.html

I tried to model my code based on what I learned from there and from what Kjell provided, as well as everything I can see in the documentation. I don't understand how it differs from Alan's code except mainly that I change it from the Label widget to a textview widget.

I was hoping to have the simplest example so that I could use the example to test various widgets and get a good grip on how to build my own.

Do you think you could make it more efficient?
There are more aspects to consider besides efficiency. How do you think about to
apply the design pattern "Model-View-Controller"?
http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller


I studied the link you provided above. I can't say I fully understand it. I had studied it before I asked the group for help, of which I received Alan's example that worked.

Then, instead of writing three lines to update the gui window, I'd
be able to type:

gprint("Updated text");
Such a desire is fine until you clarify a few more implementation details.
I don't currently know how to implement the "gprint()" goal. But I'm working on it. When my current position is clean enough for a discussion I will present it in a different thread, unless someone else sees the answer while reading this thread and brings it up.

Currently if the lines of code that I have already posted could be improved that would satisfy the namesake of this thread. Of course if I could see some code example of the problem that you're describing with my current code, that would be great! I'd be glad to work with it and see the functionality. But so far all the technical suggestions that I'm getting appears to actually already be implemented in the 47 lines of code that I published.

-- L. James

--
L. D. James
lja...@apollo3.com
www.apollo3.com/~ljames
_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to