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

Public Member Functions

def __init__
 
def handleSave
 
def handleCancel
 

Public Attributes

 item
 
 lined0
 
 lined1
 
 mle
 

Detailed Description

Definition at line 54 of file panels.py.

Constructor & Destructor Documentation

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

Definition at line 55 of file panels.py.

55 
56  def __init__(self,parent,item):
57  QVBox.__init__(self,parent)
58  self.item=item
59  self.setSpacing( 5 )
60 
61  row0=QHBox(self)
62  label=QLabel("Name: ",row0)
63  self.lined0 = QLineEdit(self.item.node.getName(),row0)
64 
65  row1=QHBox(self)
66  label=QLabel("Fname: ",row1)
67  self.lined1 = QLineEdit(self.item.node.getFname(),row1)
68 
69  label=QLabel("Function: ",self)
70  self.mle=Editor.Editor(self,"multiLineEdit" )
71  self.mle.setText(self.item.node.getScript())
72 
73  row2=QHBox(self)
74  but1=QPushButton( "Save", row2 )
75  but1.setFixedSize( but1.sizeHint())
76  but2=QPushButton( "Cancel", row2 )
77  but2.setFixedSize( but2.sizeHint())
78  self.connect( but1, SIGNAL("clicked()"), self.handleSave )
79  self.connect( but2, SIGNAL("clicked()"), self.handleCancel )

Member Function Documentation

def gui.panels.PanelFunc.handleCancel (   self)

Definition at line 84 of file panels.py.

84 
85  def handleCancel(self):
86  self.lined0.setText(self.item.node.getName())
87  self.lined1.setText(self.item.node.getFname())
88  self.mle.setText(self.item.node.getScript())
def gui.panels.PanelFunc.handleSave (   self)

Definition at line 80 of file panels.py.

80 
81  def handleSave(self):
82  self.item.node.setFname(str(self.lined1.text()))
83  self.item.node.setScript(str(self.mle.text()))

Member Data Documentation

gui.panels.PanelFunc.item

Definition at line 57 of file panels.py.

gui.panels.PanelFunc.lined0

Definition at line 62 of file panels.py.

gui.panels.PanelFunc.lined1

Definition at line 66 of file panels.py.

gui.panels.PanelFunc.mle

Definition at line 69 of file panels.py.


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