Tableview
A table widget that inspects the admin class and changes the behavior of the table as specified in the admin class
A table widget to be used as the frozen table widget inside a table widget.
HeaderWidget for a tableview, containing the title, the search widget, and the number of rows in the table
alias of RowsWidget
alias of SimpleSearchControl
Widget that is part of the header widget, displaying the number of rows in the table view
Custom implementation of QSplitter to use the custom SplitterHandle
Custom implementation of QSplitterHandle to provide more functions, such as hiding a widget by clicking the handle
A generic tableview widget that puts together some other widgets. The behaviour of this class and the resulting interface can be tuned by specifying specific class attributes which define the underlying widgets used
class MovieRentalTableView(TableView):
title_format = 'Grand overview of recent movie rentals'
The attributes that can be specified are :
The widget class to be used as a header in the table view:
header_widget = HeaderWidget
The widget class used to display a table within the table view
table_widget = TableWidget
A string used to format the title of the view
title_format = ‘%(verbose_name_plural)s’
A class implementing QAbstractTableModel that will be used as a model for the table view
table_model = QueryTableProxy
A table widget that inspects the admin class and changes the behavior of the table as specified in the admin class
Returns: | a list with all the objects corresponding to the rows in the table |
---|
Returns: | a function that when called return an iterable with all the |
---|
objects corresponding to the selected rows in the table.
alias of HeaderWidget
Switch to a different subclass, where admin is the admin object of the subclass
alias of QueryTableProxy
A widget displaying a table, to be used within a TableView. This is a pumped up version of the QTableView widget providing extra functions such as frozen columns. But it does not rely on the model being Camelot specific, or a Collection Proxy.
margin, specified as a number of pixels, used to calculate the height of a row in the table, the minimum row height will allow for this number of pixels below and above the text.