CoverArt Browser  v2.0
Browse your cover-art albums in Rhythmbox
coverart_rb3compat.ActionGroup Class Reference

List of all members.

Public Member Functions

def __init__
def name
def remove_actions
def get_action
def add_action_with_accel
def add_action

Public Attributes

 group_name
 shell
 actiongroup

Static Public Attributes

int STANDARD = 0
int TOGGLE = 1

Detailed Description

container for all Actions used to associate with menu items

Definition at line 410 of file coverart_rb3compat.py.


Constructor & Destructor Documentation

def coverart_rb3compat.ActionGroup.__init__ (   self,
  shell,
  group_name 
)
constructor
:param shell: `RBShell`
:param group_name: `str` unique name for the object to create

Definition at line 419 of file coverart_rb3compat.py.


Member Function Documentation

def coverart_rb3compat.ActionGroup.add_action (   self,
  func,
  action_name,
  args 
)
Creates an Action and adds it to the ActionGroup

:param func: function callback used when user activates the action
:param action_name: `str` unique name to associate with an action
:param args: dict of arguments - this is passed to the function callback

Notes: 
key value of "label" is the visual menu label to display
key value of "action_type" is the RB2.99 Gio.Action type ("win" or "app")
   by default it assumes all actions are "win" type
key value of "action_state" determines what action state to create

Definition at line 471 of file coverart_rb3compat.py.

def coverart_rb3compat.ActionGroup.add_action_with_accel (   self,
  func,
  action_name,
  accel,
  args 
)
Creates an Action with an accelerator and adds it to the ActionGroup

:param func: function callback used when user activates the action
:param action_name: `str` unique name to associate with an action
:param accel: `str` accelerator
:param args: dict of arguments - this is passed to the function callback

Notes: 
see notes for add_action

Definition at line 456 of file coverart_rb3compat.py.

def coverart_rb3compat.ActionGroup.get_action (   self,
  action_name 
)
utility function to obtain the Action from the ActionGroup

:param action_name: `str` is the Action unique name

Definition at line 448 of file coverart_rb3compat.py.

utility function to remove all actions associated with the ActionGroup

Definition at line 441 of file coverart_rb3compat.py.


The documentation for this class was generated from the following file:
 All Classes Functions