GOffice.ActionComboStack

g GObject.GInterface GObject.GInterface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable GObject.Object GObject.Object Gtk.Action Gtk.Action GObject.Object->Gtk.Action GOffice.ActionComboStack GOffice.ActionComboStack Gtk.Action->GOffice.ActionComboStack Gtk.Buildable->Gtk.Action

Subclasses:None

Methods

Inherited:Gtk.Action (42), GObject.Object (37), Gtk.Buildable (10)
Structs:GObject.ObjectClass (5)
  pop (n)
  push (str, key)
  selection ()
  truncate (n)

Properties

Inherited:Gtk.Action (16)

Class Details

class GOffice.ActionComboStack(*args, **kwargs)
Bases:Gtk.Action
Abstract:No
pop(n)
Parameters:n (int) – GOffice.count

Shorten list self by removing n off the top (or fewer if the list is shorter)

push(str, key)
Parameters:
  • str (str) – The label to push
  • key (object or None) – a key GOffice.value to id the pushe item
selection()
Returns:the key of the item last selected in one of the proxies. Yes this interface is terrible, but we can’t return the key in the activate signal.

NOTE : see writeup in cb_tool_popped.

Return type:object or None
truncate(n)
Parameters:n (int) – maximum length

Ensure that list self is no longer than n, dropping any extra off the bottom.