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 6 and Version 7 of CompoundWidgets


Ignore:
Timestamp:
06/24/07 17:34:13 (12 years ago)
Author:
Chris Arndt
Comment:

migration notice

Legend:

Unmodified
Added
Removed
Modified
  • CompoundWidgets

    v6 v7  
    1 = Implementing and using CompoundWidgets = 
    2  
    3 == Introduction == 
    4  
    5 In 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: 
    61{{{ 
    7 $ tar xvjf compounddemo.vN.tar.bz2 
    8 $ cd compounddemo 
    9 $ python setup.py develop 
    10 $ tg-admin toolbox 
     2#!rst 
     3.. note:: This page has been migrated too http://docs.turbogears.org/1.0/CompoundWidgets. 
    114}}} 
    12  
    13 And 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 {{{ 
    19 tg-admin quickstart -t tgwidget compounddemo 
    20 }}} 
    21 It'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  
    23 Once you install the resulting egg just import the widgets in your app and enjoy. 
    24 {{{ 
    25 #!py 
    26 from compounddemo import MyCompound 
    27  
    28 w = MyCompound() 
    29 }}} 
    30