[Sugar-devel] Help Needed: Observer design Pattern

Yash Agarwal agrwal.ysh94 at gmail.com
Thu Jun 9 15:18:43 EDT 2016


Hi,
I'm having trouble implementing  an observer pattern
<https://en.wikipedia.org/wiki/Observer_pattern> based Gtk layout.

This is my current method to dynamically change the layout:
for implementing this
<https://raw.githubusercontent.com/sugarlabs/edit-fonts-activity/yash-v0/button_demo.gif>,
a grid with pagination, I'm destroying all the elements of the grid when
either of the buttons is pressed and then add the new elements to the grid
based on a counter.

I don't think this is the most efficient method to do this, hence I need
help in implementing observer pattern in this.

with Regards,
Yash Agarwal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20160609/586d5bdd/attachment.html>


More information about the Sugar-devel mailing list