Package peppy :: Package plugins :: Module text_transforms :: Class Rot13
[frames] | no frames]

Class Rot13

                        object --+            
                                 |            
actions.base.BufferBusyActionMixin --+        
                                     |        
                    object --+       |        
                             |       |        
              debug.debugmixin --+   |        
                                 |   |        
              actions.SelectAction --+        
                                     |        
   actions.base.TextModificationAction --+    
                                         |    
           actions.base.RegionMutateAction --+
                                             |
                                            Rot13

Convert the region using the rot13 encoding.

Instance Methods
 
mutate(self, txt)
Change to all lower case.

Inherited from actions.base.RegionMutateAction: action, isActionAvailable, mutateSelection

Inherited from actions.base.BufferBusyActionMixin: isEnabled

Inherited from actions.SelectAction: __call__, __init__, getMenuItemName, getSubIds, getTooltip, initPostHook, initPreHook, insertIntoMenu, insertIntoToolbar, showEnable

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Methods

Inherited from actions.base.TextModificationAction: worksWithMajorMode

Inherited from actions.SelectAction: getHelp, setAcceleratorText

Inherited from debug.debugmixin: dprint

Class Variables
  alias = 'rot13-region'
This alias holds an emacs style name that is used during M-X processing.
  name = 'Rot13'
This is the name of the menu entry as it appears in the menu bar.
  default_menu = ('Transform', -800)
The default menu location is specified here as a tuple containing the menu path (separated by / characters) and a number between 1 and 1000 representing the position within the menu.

Inherited from actions.SelectAction: default_toolbar, global_id, icon, key_bindings, keyboard, stock_id, tooltip

Inherited from debug.debugmixin: debuglevel

Properties

Inherited from object: __class__

Method Details

mutate(self, txt)

 

Change to all lower case.

Parameters:
  • txt - input text
Returns:
text resulting from the desired processing
Overrides: actions.base.RegionMutateAction.mutate