Logo Search packages:      
Sourcecode: quickly-widgets version File versions  Download package

def widgets::grid_column::StringColumn::__init__ (   self,
  key,
  index,
  dictionary_index,
  editable = True,
  format_function = None 
)

Create a GridFilter for filtering an associated treeview.
This class is used by BugsPane.

arguments:
headings -- a tuple of lists of column headers associated with the 
treeview. Each list includes a string for the column title, a constructor
for a widget that supports filtering (such as StringFilter or NumericFilter)
and a zero-based position index for the specific column in the treeview that
will position the header. 
treeview -- the treeview to be filtered. 

Definition at line 38 of file grid_column.py.

00038                                                                                             :
        """Create a GridFilter for filtering an associated treeview.
        This class is used by BugsPane.

        arguments:
        headings -- a tuple of lists of column headers associated with the 
        treeview. Each list includes a string for the column title, a constructor
        for a widget that supports filtering (such as StringFilter or NumericFilter)
        and a zero-based position index for the specific column in the treeview that
        will position the header. 
        treeview -- the treeview to be filtered. 

        """
        self.index = index
        self.key = key
        self.list_store = None
        self.dictionary_index = dictionary_index
        self.initialize_renderer(editable, index)
        
        gtk.TreeViewColumn.__init__( self, key, self.renderer, text=index)
        if format_function is not None:
            self.set_cell_data_func(self.renderer, self.on_format, format_function)

        self.set_clickable(True)
        self.connect('clicked', self.sort_rows)
        self.set_resizable(True)

    def sort_rows(self, widget):


Generated by  Doxygen 1.6.0   Back to index