GRASS Programmer's Manual  6.4.3(2013)-r
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 1481 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 1483 of file gmodeler/frame.py.

Member Function Documentation

def frame.PythonPanel.IsEmpty (   self)

Check if python script is empty.

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

def frame.PythonPanel.IsModified (   self)

Check if python script has been modified.

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

def frame.PythonPanel.OnRefresh (   self,
  event 
)

Refresh Python script.

Definition at line 1640 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 1606 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 1611 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 1559 of file gmodeler/frame.py.

Referenced by frame.PythonPanel.OnSaveAs().

Field Documentation

frame.PythonPanel.body

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

frame.PythonPanel.bodyBox

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

frame.PythonPanel.btnRefresh

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

frame.PythonPanel.btnRun

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

frame.PythonPanel.btnSaveAs

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

frame.PythonPanel.filename

Definition at line 1490 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: