Package peppy :: Package actions :: Module minibuffer :: Class InPlaceCompletionMinibuffer
[frames] | no frames]

Class InPlaceCompletionMinibuffer

      object --+            
               |            
debug.debugmixin --+        
                   |        
          Minibuffer --+    
                       |    
          TextMinibuffer --+
                           |
                          InPlaceCompletionMinibuffer

Base class for a simple autocompletion minibuffer.

This completion style is like Outlook's email address completion where it suggests the best completion ahead of the cursor, adjusting as you type. There is no dropdown list; everything is handled in the text ctrl.

This class doesn't implement the complete method, leaving its implementation to subclasses.

Instance Methods
 
createWindow(self)
Create a window that represents the minibuffer, and set self.win to that window.
 
SetFocus(self)
 
OnText(self, evt)
 
complete(self, text)
Generate the completion list.
 
processCompletion(self, text)
 
OnKeyDown(self, evt)

Inherited from TextMinibuffer: OnEnter, convert

Inherited from Minibuffer: __init__, close, focus, removeFromParent

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

Class Methods

Inherited from debug.debugmixin: dprint

Class Variables

Inherited from TextMinibuffer: error, label

Inherited from debug.debugmixin: debuglevel

Properties

Inherited from object: __class__

Method Details

createWindow(self)

 

Create a window that represents the minibuffer, and set self.win to that window.

Overrides: Minibuffer.createWindow
(inherited documentation)

complete(self, text)

 

Generate the completion list.

The best guess should be returned as the first item in the list, with each subsequent entry being less probable.