class documentation

class SingleClickTreeView(Gtk.TreeView): (source)

Known subclasses: zim.gui.widgets.BrowserTreeView, zim.plugins.versioncontrol.VersionsTreeView

View In Hierarchy

Sub-class of Gtk.TreeView that implements single-click navigation.
Method do_button_press_event Undocumented
Method do_button_release_event Undocumented
Method do_initialize_popup No summary
Method get_cell_renderer_number_of_items No summary
Method get_popup No summary
Method populate_popup_expand_collapse No summary
Class Variable __gsignals__ Undocumented
Class Variable mask Undocumented
def do_button_press_event(self, event): (source)

Undocumented

def do_button_release_event(self, event): (source)

Undocumented

def do_initialize_popup(self, menu): (source)
Initialize the context menu. This method is called before the populate-popup signal and can be used to put any standard items in the menu.
Parameters
menuthe Gtk.Menu object for the popup
Unknown Field: implementation
can be implemented by sub-classes. Default implementation calls populate_popup_expand_collapse() if the model is a Gtk.TreeStore. Otherwise it does nothing.
def get_cell_renderer_number_of_items(self): (source)
Get a Gtk.CellRendererText that is set up for rendering the number of items below a tree item. Used to enforce common style between tree views.
Returns
a Gtk.CellRendererText object
def get_popup(self): (source)
Get a popup menu (the context menu) for this widget
Returns
a Gtk.Menu or None
Unknown Field: emits
populate-popup
Unknown Field: implementation
do NOT overload this method, implement do_initialize_popup instead
def populate_popup_expand_collapse(self, menu, prepend=False): (source)
Adds "Expand _all" and "Co_llapse all" items to a context menu. Called automatically by the default implementation of do_initialize_popup().
Parameters
menuthe Gtk.Menu object for the popup
prependif False append, if True prepend
mask = (source)

Undocumented