Edit history

Edit: -1 of 1
Time: 2007-01-20 21:20:25
Note: /dabosite/wiki/DaboUiBrowse/reparent

changed:
-
Signature:

 <pycode>dabo.ui.browse(dataSource, parent=None)</pycode>

Description:

 Takes a data source, and constructs a grid to display that data. If the **'parent'** property is passed, the grid is created as a child of the parent object; otherwise, a new form is created and the grid added to that.

Returns:

 A 2-tuple containing references to the parent object and the grid

Comments:

 You can either pass a standard data set, or you can optionally pass any object that has a **'getDataSet()'** method, such as a Dabo cursor, which will be called to get the data set.