Version: 8.3.0
gui.panels.PanelScript Class Reference
Inheritance diagram for gui.panels.PanelScript:
Collaboration diagram for gui.panels.PanelScript:

Public Member Functions

def __init__
 
def handleSave
 
def handleCancel
 

Public Attributes

 item
 
 lined0
 
 mle
 

Detailed Description

Definition at line 25 of file panels.py.

Constructor & Destructor Documentation

def gui.panels.PanelScript.__init__ (   self,
  parent,
  item 
)

Definition at line 26 of file panels.py.

26 
27  def __init__(self,parent,item):
28  QVBox.__init__(self,parent)
29  self.item=item
30  self.setSpacing( 5 )
31 
32  row0=QHBox(self)
33  label=QLabel("Name: ",row0)
34  self.lined0 = QLineEdit(item.node.getName(),row0)
35 
36  label=QLabel("Script: ",self)
37  self.mle=Editor.Editor(self,"multiLineEdit" )
38  self.mle.setText(item.node.getScript())
39 
40  row2=QHBox(self)
41  but1=QPushButton( "Save", row2 )
42  but1.setFixedSize( but1.sizeHint())
43  but2=QPushButton( "Cancel", row2 )
44  but2.setFixedSize( but2.sizeHint())
45  self.connect( but1, SIGNAL("clicked()"), self.handleSave )
46  self.connect( but2, SIGNAL("clicked()"), self.handleCancel )

Member Function Documentation

def gui.panels.PanelScript.handleCancel (   self)

Definition at line 50 of file panels.py.

50 
51  def handleCancel(self):
52  self.lined0.setText(self.item.node.getName())
53  self.mle.setText(self.item.node.getScript())
def gui.panels.PanelScript.handleSave (   self)

Definition at line 47 of file panels.py.

47 
48  def handleSave(self):
49  self.item.node.setScript(str(self.mle.text()))

Member Data Documentation

gui.panels.PanelScript.item

Definition at line 28 of file panels.py.

gui.panels.PanelScript.lined0

Definition at line 33 of file panels.py.

gui.panels.PanelScript.mle

Definition at line 36 of file panels.py.


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