ogtgui.xobjects.*

@author: Peter Morgan <pete@daffodil.uk.com>

class ogtgui.xobjects.XSortFilterProxyModel(parent=None, active=None, source_model=None)[source]

Bases: PyQt4.QtGui.QSortFilterProxyModel

get_dic_from_index(pidx)[source]
get_dic_items_from_index(pidx)[source]
get_items_from_index(pidx)[source]
lessThan(lidx, ridx)[source]
set_active_filter(activ)[source]
class ogtgui.xobjects.XStandardItemModel(parent=None)[source]

Bases: PyQt4.QtGui.QStandardItemModel

An extended model with convenience functions, intended as a base model

get_items_from_index(midx)[source]
get_items_from_item(item)[source]
get_items_from_row(ridx)[source]
make_blank_row()[source]
make_row(xid, col)[source]
remove_rows()[source]
set_header(col, text, align=None, tooltip=None, sort=None)[source]

Sets a horizontal header

Parameters:
  • col (int) -- The column index
  • label (str`) -- The text label
  • align (Qt.Align) -- Text alignment
  • tooltip (str) -- The tooltip to show on header hover
  • sort (int) -- # TBA
set_row_bg(ridx, color)[source]
set_widget(widget)[source]
strike_row(ridx, state)[source]