Re: EuGTK - GtkListStore - color?
- Posted by irv Sep 12, 2010
- 1635 views
Thanks. The example works. But now I have the problem of understanding the code.
You're not the only one who can't understand this stuff - hence the lack of tutorials on using TreeView/ListView controls. It's a case of letting computer science theory override practicality.
In Theory - the M/V/C (Model/View/Controller) architecture allows you to display and manipulate *one* set of data in many different ways. See: http://en.wikipedia.org/wiki/Model%E2%80%93View%E2%80%93Controller
In Practice - programmers seldom need or want to do that, and when they do need to do so, they already have better methods available.
It's sort of like:
In Theory - if we put wings and floats on cars, they would be able to go more places, fly over traffic jams, and be safer if we fell into the water.
In Practice - you'd need a pilot's license, a driver's license, and a sea captain's ticket to use the thing, and it would take an hour to get the million $ car started and get clearance to leave your driveway.
So, seeing as how they (the GTK folks) decided to go this route instead of implementing something simple and usable - what do we do?
We can either work within the framework GTK provides, which is what I did in the code above, or we can write a Euphoria 'wrapper' to handle the sticky details. I'm trying different ways of doing that now.