aeldemery

Results 19 comments of aeldemery

Hope you stop watching too much TV. Also life without faith is unbearable. Maybe this awakening gets you in the right direction.

I gave this issue a little bit of thoughts over the last couple of days. I have explored how the `python` and `javascript` solve the issue, only to find that...

could you please provide the nim code for it?

Thanks for bringing up this topic. I was just about to try to code one of the list demos, for example the [list_clock](https://github.com/aeldemery/gtk4_list_clocks), in Nim. I choose this demo because...

@gavr123456789 Thanks for the friendly reception :) I wouldn't be too excited as I'm trying to find my way around in Nim. So don't expect something useful, yet ;)

@gavr123456789 how to implement certain interfaces like GDK.Paintable or Glib.ListModel. please note that those are interfaces not classes.

@StefanSalewski thanks for the detailed answer. As a concrete example, as shown in this [demo](https://github.com/aeldemery/gtk4_list_clocks/blob/2a9e320232d1997dd1b4035a394e093ca647ea24/src/Widgets/Clock.vala#L39), an object conforms to the `Gdk.Paintable` interface, that is, implement `snapshot (Gtk.Snapshot, width, height)` and...

@StefanSalewski Thanks for your reply. Actually previously, as I started learning Vala/Gtk, I was trying to translate the C code as much as possible. But as my knowledge about the...

Just for info, I've updated the [clock list demo](https://github.com/aeldemery/gtk4_list_clocks) to make it a little more interesting, and separated display widget from data source.