ToscaWidgets can be installed using easy_install from setuptools.
To install the latest stable release type in a shell:
$ easy_install ToscaWidgets
For the tutorials below, you will also need tw.forms:
$ easy_install tw.forms
For instructions and an example, select your framework:
Once you’ve enabled ToscaWidgets, you can move on to the tw.forms tutorial.
If you only have a few widgets, just define them in the controller. If you have more, create a separate widgets.py file.