Part of stoqlib.gui.fieldgrid View In Hierarchy
Known subclasses: stoqlib.gui.editors.invoiceeditor.InvoiceGrid
FieldGrid is a Grid like widget which you can add fields to
| Method | __init__ | Undocumented |
| Method | _pick_field | Undocumented |
| Method | _remove_field | Undocumented |
| Method | _add_field | Undocumented |
| Method | _set_field_position | Undocumented |
| Method | _resize_field | Undocumented |
| Method | _get_field_from_widget | Undocumented |
| Method | _begin_move_field | Undocumented |
| Method | _update_move_field | Undocumented |
| Method | _end_move_field | Undocumented |
| Method | _get_coords | Returns the grid coordinates given absolute coordinates |
| Method | _on_field__size_allocate | Undocumented |
| Method | do_realize | Undocumented |
| Method | do_size_request | Undocumented |
| Method | do_expose_event | Undocumented |
| Method | do_button_press_event | Undocumented |
| Method | do_button_release_event | Undocumented |
| Method | do_motion_notify_event | Undocumented |
| Method | do_key_press_event | Undocumented |
| Method | do_drag_drop | Undocumented |
| Method | do_drag_data_received | Undocumented |
| Method | do_focus | Undocumented |
| Method | do_move_field | Undocumented |
| Method | do_remove_field | Undocumented |
| Method | add_field | Adds a new field to the grid |
| Method | select_field | Selects a field |
| Method | get_selected_field | Returns the currently selected field |
| Method | get_fields | Returns a list of fields in the grid |
| Method | objectlist_dnd_handler | A subclass can implement this to support dnd from |
| Method | resize | Resize the grid. |
| Parameters | x | absolute x |
| y | absoluyte y | |
| Returns | (gridx, gridy) | |
| Parameters | text | text of the field |
| description | description of the field | |
| x | x position of the field | |
| y | y position of the field |
| Parameters | field | the field to select, must be FieldInfo or None |
| Returns | the currently selected field (type: FieldInfo ) | |
| Parameters | item | the row dragged from the objectlist |
| x | the x position it was dragged to | |
| y | the y position it was dragged to |