Class s.g.f.FieldGrid(gtk.Layout):

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

Signals

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.
def __init__(self, font, width, height):
Undocumented
def _pick_field(self, window_x, window_y):
Undocumented
def _remove_field(self, field):
Undocumented
def _add_field(self, text, description, x, y, width=-1, height=1):
Undocumented
def _set_field_position(self, field, x, y):
Undocumented
def _resize_field(self, field, width, height):
Undocumented
def _get_field_from_widget(self, widget):
Undocumented
def _begin_move_field(self, field, x, y, time):
Undocumented
def _update_move_field(self, x, y):
Undocumented
def _end_move_field(self, time):
Undocumented
def _get_coords(self, x, y):
Returns the grid coordinates given absolute coordinates
Parametersxabsolute x
yabsoluyte y
Returns(gridx, gridy)
def _on_field__size_allocate(self, label, event, field):
Undocumented
def do_realize(self):
Undocumented
def do_size_request(self, req):
Undocumented
def do_expose_event(self, event):
Undocumented
def do_button_press_event(self, event):
Undocumented
def do_button_release_event(self, event):
Undocumented
def do_motion_notify_event(self, event):
Undocumented
def do_key_press_event(self, event):
Undocumented
def do_drag_drop(self, context, x, y, time):
Undocumented
def do_drag_data_received(self, context, x, y, data, info, time):
Undocumented
def do_focus(self, direction):
Undocumented
def do_move_field(self, movement_type, delta):
Undocumented
def do_remove_field(self):
Undocumented
def add_field(self, text, description, x, y, width=-1, height=1):
Adds a new field to the grid
Parameterstexttext of the field
descriptiondescription of the field
xx position of the field
yy position of the field
def select_field(self, field):
Selects a field
Parametersfieldthe field to select, must be FieldInfo or None
def get_selected_field(self):
Returns the currently selected field
Returnsthe currently selected field (type: FieldInfo )
def get_fields(self):
Returns a list of fields in the grid
Returnsa list of fields in the grid
def objectlist_dnd_handler(self, item, x, y):
A subclass can implement this to support dnd from an ObjectList.
Parametersitemthe row dragged from the objectlist
xthe x position it was dragged to
ythe y position it was dragged to
def resize(self, width, height):
Resize the grid.
Parameterswidththe new width
heightthe new height
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.