[PEAK] Trellis-ified wx Dialog

Grant Baillie grant at osafoundation.org
Thu Jul 19 14:51:24 EDT 2007

On 19 Jul, 2007, at 11:43, Phillip J. Eby wrote:
> ...
> As you can see, having a little bit of glue helps a lot -- I  
> believe the result is shorter than the original, even if you  
> include the new EditBridge class.
> By the way, the general rule of Trellis programming is that if  
> you're assigning to cells in a rule, you're probably doing  
> something wrong.  (That is, you're not thinking declaratively  
> enough.)  The revised version here only assigns cells from non- 
> Trellis code (i.e., widget callbacks), which is how things should  
> almost always be.

Yeah, that's definitely a cleaner way to go.


More information about the PEAK mailing list