Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 4 and Version 5 of CompoundWidgets


Ignore:
Timestamp:
08/04/06 09:02:20 (13 years ago)
Author:
alberto
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CompoundWidgets

    v4 v5  
    11= Implementing and using CompoundWidgets = 
     2 
     3== Introduction == 
    24 
    35In this section I'll descrbe how to build compound widgets and use them. For the time being, here's a commented CompoundWidget demo TG widget's package. To install: 
     
    1012 
    1113And watch the ~~four~~ eight examples at the toolbox's widget browser. 
     14 
     15== How was the egg built? == 
     16 
     17{{{tg-admin}}} can create the skeleton of a widget's egg like this:  
     18{{{ 
     19tg-admin quickstart -ttgwidget compounddemo 
     20}}} 
     21It's the best way to reuse widgets among projects and to modularize your apps for easier maintenance. Best of all, they are easily re-distributed. 
     22 
     23Once you install the resulting egg just import the widgets in your app and enjoy. 
     24{{{ 
     25#!py 
     26from compounddemo import MyCompound 
     27 
     28w = MyCompound() 
     29}}} 
     30