GRASS Programmer's Manual  6.5.svn(2012)-r51648
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
statusbar.SbMapScale Class Reference

Editable combobox to get/set current map scale. More...

Inheritance diagram for statusbar.SbMapScale:
Collaboration diagram for statusbar.SbMapScale:

Public Member Functions

def __init__
def Update
 Called when statusbar action is activated (e.g.
def OnChangeMapScale
 Map scale changed by user.

Data Fields

 name
 label
 widget
 lastMapScale

Detailed Description

Editable combobox to get/set current map scale.

Requires MapFrame.GetMapScale, MapFrame.SetMapScale and MapFrame.GetWindow (and GetWindow().UpdateMap()).

Definition at line 474 of file statusbar.py.


Constructor & Destructor Documentation

def statusbar.SbMapScale.__init__ (   self,
  mapframe,
  statusbar,
  position = 0 
)
Parameters:
mapframeinstance of class with MapFrame interface
statusbarstatusbar instance (wx.Statusbar)
positionitem position in statusbar
Todo:
rewrite Update also in derived classes to take in account item position

Reimplemented from statusbar.SbItem.

Definition at line 480 of file statusbar.py.


Member Function Documentation


Field Documentation

Definition at line 485 of file statusbar.py.

Referenced by statusbar.SbItem.GetWidget().


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