This post originated from an RSS feed registered with Python Buzz
by Hans Nowak.
Original Post: A non-Wax issue: declarative GUI design
Feed Title: Efectos Especiales
Feed URL: http://www.zephyrfalcon.org/weblog2/rss.xml
Feed Description: Ramblings, rants, musings, ideas and observations. Topics include (but are not limited to): programming (especially Python), books, games (especially CCGs and board games), astrology, design, writing, painting, etc.
In a current thread on comp.lang.python, Anton Muhin writes: [...] I mostly prefer declarative approach for the problems like that. Therefore, wouldn't it be interesting to describe the structure with class and metaclass mechanism, like: class MainFrame(FrameDescription): class b1(ButtonDescription): size = (40, 40) text = "b1" Many people seem to like this style of GUI building. ... [300 words]