Table of Contents

Class: EditObjectAttributesDialog ./EditObjectAttributesDialog.py

Creates an editable (pseudo-)inspector for a selected set of attributes of a given object

  • master : tk master widget - object : the object, whose attributes we want to edit - attr_names : a list of attr_names

By making use of Python 2.2's capability of subclassing built-in types such as ints, information about editing etc. is conveyed. An attr must have: - validate(value) method [return 1, if value is a valid new value for attr]

The class of an attr can have the following mix-ins: - Popubable - WithDefault

Base Classes   
tkSimpleDialog.Dialog
Methods   
__init__
body
editWidget
validate
  __init__ 
__init__ (
        self,
        master,
        object,
        attr_names,
        )

  body 
body ( self,  master )

  editWidget 
editWidget (
        self,
        master,
        object,
        attr_name,
        )

Create a widget capable of editing attr and insert attr's current value

  validate 
validate ( self )

Exceptions   
ValueError

Table of Contents

This document was automatically generated on Fri Mar 15 11:15:02 2002 by HappyDoc version 2.0