treeEdit — Phatch v0.2 documentation

### Navigation

- index
- modules |
- next |
- previous |
- Phatch v0.2 documentation »
- lib »
- pyWx »

# treeEdit

class `lib.pyWx.treeEdit.` `TreeMixin`(form_factory={}, CtrlMixin=[], icon_size=(28, 28), show_error=<function _do_nothing at 0xeecd320>, set_dirty=<function _do_nothing at 0xeecd320>)

  Bases: `lib.pyWx.treeDragDrop.Mixin`

  - form is like an action
  `CreateImageList`(icon_size)
  `append_field`(parent, label, field, method=None, item=None)
  `append_form`(form, item=-1)
  `append_form_by_label`(item, label)
  `append_form_by_label_to_last`(label)
  `append_form_by_label_to_selected`(label)
  `append_forms`(forms)
  `close_popup`(event=None)
  `collapse_forms`()
  `create_popup`(item)
    Connect formField.field to popup.Ctrl (VIP!)
  `create_popup_selected`()
  `delete_all_forms`()
  `enable_collapse_automatic`(state)
  `enable_form`(item, bool)
  `enable_form_item`(item, bool)
  `enable_selected_form`(bool)
  `events`()
  `expand_forms`()
  `export_form`(item, label=None)
  `export_forms`()
  `get_form`(item, label=None)
  `get_form_field`(item)
  `get_form_fields_visible`(item, form)

    Retrieves the visible fields and their values. If a field is dirty, its value will be overwritten with the newly given value.

    Very important: this handles the dirty fields.

  `get_form_item`(item)
  `get_form_selected`()
  `get_last_form`()
  `get_popup_pos_offset_size`(item)
  `has_forms`()
  `import_form`(item, form)
  `is_field`(item)
  `is_field_selected`()
  `is_form`(item)
  `is_form_enabled`(item)
  `is_form_selected`()
  `move_form_selected_down`()
  `move_form_selected_up`()
  `on_item_activated`(event)
  `on_item_expanding`(event)
  `on_left_down`(event)
  `on_sel_changed`(event)
  `on_sel_changing`(event)
  `on_select`(event)
  `remove_selected_form`()
  `resize_popup`()
  `set_form_field_value`(item, value_as_string)
  `set_form_field_value_selected`(value)
  `set_item_image`(x, image)
  `toggle_form_item`(item, event)
  `tree_label`(name, value)
  `update_form_relevance`(field_item)
    Conditional form

`lib.pyWx.treeEdit.` `example`()

`lib.pyWx.treeEdit.` `get_index`(li, index, n=3)

`lib.pyWx.treeEdit.` `rescale`(image, x, y, filter=None)
  For compatibility with wxPython 2.6

### Navigation

- index
- modules |
- next |
- previous |
- Phatch v0.2 documentation »
- lib »
- pyWx »