GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
frame.PythonPanel Class Reference
Inheritance diagram for frame.PythonPanel:
Collaboration diagram for frame.PythonPanel:

Public Member Functions

def __init__
 Model as python script. More...
 
def OnRun
 Run Python script. More...
 
def OnDone
 Python script finished. More...
 
def SaveAs
 Save python script to file. More...
 
def OnSaveAs
 Save python script to file. More...
 
def RefreshScript
 Refresh Python script. More...
 
def OnRefresh
 Refresh Python script. More...
 
def IsModified
 Check if python script has been modified. More...
 
def IsEmpty
 Check if python script is empty. More...
 

Data Fields

 parent
 
 filename
 
 bodyBox
 
 body
 
 btnRun
 
 btnSaveAs
 
 btnRefresh
 

Detailed Description

Definition at line 1485 of file gmodeler/frame.py.

Constructor & Destructor Documentation

def frame.PythonPanel.__init__ (   self,
  parent,
  id = wx.ID_ANY,
  kwargs 
)

Model as python script.

Definition at line 1487 of file gmodeler/frame.py.

Member Function Documentation

def frame.PythonPanel.IsEmpty (   self)

Check if python script is empty.

Definition at line 1654 of file gmodeler/frame.py.

def frame.PythonPanel.IsModified (   self)

Check if python script has been modified.

Definition at line 1650 of file gmodeler/frame.py.

def frame.PythonPanel.OnRefresh (   self,
  event 
)

Refresh Python script.

Definition at line 1644 of file gmodeler/frame.py.

References frame.PythonPanel.RefreshScript().

def frame.PythonPanel.OnRun (   self,
  event 
)
def frame.PythonPanel.OnSaveAs (   self,
  event 
)

Save python script to file.

Definition at line 1610 of file gmodeler/frame.py.

References frame.PythonPanel.SaveAs().

def frame.PythonPanel.RefreshScript (   self)

Refresh Python script.

Returns
True on refresh
False script hasn't been updated

Definition at line 1615 of file gmodeler/frame.py.

Referenced by frame.PythonPanel.OnRefresh().

def frame.PythonPanel.SaveAs (   self,
  force = False 
)

Save python script to file.

Returns
filename

Definition at line 1563 of file gmodeler/frame.py.

Referenced by frame.PythonPanel.OnSaveAs().

Field Documentation

frame.PythonPanel.body

Definition at line 1498 of file gmodeler/frame.py.

frame.PythonPanel.bodyBox

Definition at line 1496 of file gmodeler/frame.py.

frame.PythonPanel.btnRefresh

Definition at line 1506 of file gmodeler/frame.py.

frame.PythonPanel.btnRun

Definition at line 1500 of file gmodeler/frame.py.

frame.PythonPanel.btnSaveAs

Definition at line 1503 of file gmodeler/frame.py.

frame.PythonPanel.filename

Definition at line 1494 of file gmodeler/frame.py.

Referenced by frame.PythonPanel.OnDone(), and frame.PythonPanel.OnRun().


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