Trees | Indices | Help |
|
---|
|
widget.tkinterwidget.schroWidget --+ | Tkinter.Misc --+ | | | Tkinter.BaseWidget --+ | | | Tkinter.Pack --+ | | | Tkinter.Place --+ | | | Tkinter.Grid --+ | | | Tkinter.Widget --+ | | | Tkinter.Frame --+ | widget.tkinterwidget.Frame --+ | PropertySelector
Class for selecting properties, with features to organize by family/owner, filter by name, and/or sort items in the list. The PropertySelector displays a list of property user names, specified as structure.PropertyName objects. Duplicate user names are distinguished by creating a PropertyName.user_name attribute to with a unique numerical id suffix. e.g. foo, foo-1, foo-2. The name checking is done once, at __init__. Class Attributes ---------------- None Instance Attributes ------------------- displayed_proplist (list) List of PropertyNames currently displayed in the (primary) listbox, in the order they appear in the list. This is typically a subset of self.proplist. propfamilies (dict) Family name keys for a list of structure.PropertyName instances in that roup. displayed_aux_proplist (list) List of PropertyNames currently displayed in the auxilary listbox, in the order they appear in the list. This is typically a subset of self.proplist. selected_not_displayed_proplist (list) List of PropertyNames for item not currently displayed due to family menu or field regex filtering. move_to_aux (bool) If True, items will be moved from main table to auxilary table when they are selected. If false, they will be duplicated in both tables if selected (default False)
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from Inherited from |
|
PropertySelector is a stk.Frame, and this container accepts all standard options from that base class. Other keyword options: proplist (list) List of structure.PropertyName instances. The order of items in the list is the default order of items in the list box. multi (boolean) True allows selecting multiple properties. Default is False, single item selection. show_family_menu (boolean) True add property family menu to control visible list items. Default is True. show_family_name (boolean) True displays the family/owner in parentheses after each name. Default is True. show_alpha_toggle (boolean) True displays the alphabetize checkbox toggle. Default is False. show_filter_field (boolean) True displays the string filter controls. Default is False. show_aux_listbox (boolean) True displays the auxilary listbox, add and remove buttons, and decrement/increment buttons. self.getSelected() returns all the items in the auxilary list box, in the order they appear. presort (boolean) True orders the properties alphabetically by PropertyName.userName() values. move_to_aux (bool) If True, items will be moved from main table to auxilary table when they are selected. If false, they will be duplicated in both tables if selected (default False)
|
Assigns PropertyName.user_name attributes, for all members in self.proplist. The user_names are unique within the PropertySelector instance. The user_name strings are typically just the PropertyName.userName(), but may be modified with a numerical suffix to make them unique, or decorated with the family name (which does not garuntee uniqeness, but may make the items easier for the end user to visually group). |
Create a dictionary of families. PropertyName.family keys for a list of PropertyNames in that family. |
Set the listbox items to the structure.PropertyName.user_name attributes for the PropertyName instances in proplist. proplist (list) A list of structure.PropertyName objects. selected (list) List of structure.PropertyName instances in proplist that should be selected. |
Place the PropertyName.userName in the listbox. The items appear in the input list order. If aux table is present and move_to_aux is set; do not include properties that are in the aux table. proplist (list) List of structure.PropertyName instances. selected (list) List of structure.PropertyName instances in proplist that should be selected (used when there is no aux table). |
Place only the properties of the specified family/owner in the listbox. 'family' is the family/owner string for a property (e.g., 'qp' for the property 'i_qp_#amide'). |
Enable/disable the PropertySelector widget. If the widget has no property list, it is disabled. Otherwise, the 'state' can be set to stk.NORMAL or stk.DISABLED. |
Display the auxilary listbox items to the structure.PropertyName.user_name attributes for the PropertyName instances in proplist. proplist (list) List of structure.PropertyName instances. selected (list) List of structure.PropertyName instances in proplist that should be selected. |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Aug 6 04:50:51 2015 | http://epydoc.sourceforge.net |