Package aldrin :: Module main :: Class MainToolbarService
[show private | hide private]
[frames | no frames]

Type MainToolbarService

object --+        
         |        
 Interface --+    
             |    
      IToolbar --+
                 |
                MainToolbarService


Main Toolbar service for extensions.
Method Summary
  __init__(self, rootwindow)
  add_click_handler(self, toolid, func)
Adds a handler for when a tool is being clicked by the user.
  add_tool(self, label, bitmap1, bitmap2, kind, tooltip, description)
Adds a new tool to the toolbar.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
type __interface__ = aldrin.interface.IToolbar
str __uri__ = '@zzub.org/ui/mainframe/toolbar'
int i = 31                                                                    
int TOOLBASE = 8977                                                                  

Method Details

add_click_handler(self, toolid, func)

Adds a handler for when a tool is being clicked by the user.
Parameters:
toolid - Id of the tool as returned by add_tool()
           (type=int)
func - Function to call. The function should take an additional event parameter.
           (type=callable)
Overrides:
aldrin.interface.IToolbar.add_click_handler

add_tool(self, label, bitmap1, bitmap2=wxPython wrapper for UNBORN object! (The C++ object is no..., kind=0, tooltip='', description='')

Adds a new tool to the toolbar.
Parameters:
label - Label of the button. Will not be visible on all systems.
           (type=str)
bitmap1 - Bitmap for the button.
           (type=wx.Bitmap)
bitmap2 - Bitmap for disabled button.
           (type=wx.Bitmap)
kind - One of wx.ITEM_NORMAL, wx.ITEM_CHECK or wx.ITEM_RADIO
           (type=int)
tooltip - Tooltip Text
           (type=str)
description - Description for Status bar.
           (type=str)
Overrides:
aldrin.interface.IToolbar.add_tool

Class Variable Details

__uri__

Type:
str
Value:
'@zzub.org/ui/mainframe/toolbar'                                       

i

Type:
int
Value:
31                                                                    

TOOLBASE

Type:
int
Value:
8977                                                                  

Generated by Epydoc 2.1 on Fri Nov 24 13:58:33 2006 http://epydoc.sf.net