Package pallavi :: Package plugins :: Module Statusbar
[hide private]
[frames] | no frames]

Module Statusbar

source code


This plugin provides a simple statusbar. It monitors the current line and
column number and allows general status messages to be sent via the
eventaction mechanism (this would allow the statusbar to be replaced
by another plugin without interfering

This plugin provides the following action:
SetStatusMessage message
        Set the status bar's status message.
        
This plugin listens for the following events:
Keystroke
TextViewFocused
        To update the line and column number
TextViewAdded
        Sets up a mouse click listener on a textview when it has been added to the view.
ViewCreated
        Sets up a mouse click listener and status bar on each new view



Functions [hide private]
 
setup()
Setup the statusbar, event listeners, and action to allow other plugins to set status messages
source code
 
NewView(name, view=None)
Called when a new view is created -- add a statusbar to that view
source code
 
TextViewAdded(eventname, textview)
Responds to the textviewadded event.
source code
 
SetStatusMessage(data)
Set the status message to a particular string, data.
source code
 
UpdateCursorPos(name, data=None)
Update the area of the statusbar that indicates the current line and column number.
source code
Function Details [hide private]

TextViewAdded(eventname, textview)

source code 
Responds to the textviewadded event. Should not be called directly

SetStatusMessage(data)

source code 
Set the status message to a particular string, data. This can be called directly if necessary, but its better to invoke the SetStatusMessage action instead

UpdateCursorPos(name, data=None)

source code 
Update the area of the statusbar that indicates the current line and column number. This function is automatically called when the mouse relocates the cursor, a new textview is focused, or a keypress moves the cursor.