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

Public Member Functions

def __init__
 
def handleSave
 
def handleCancel
 

Public Attributes

 item
 
 lined0
 

Detailed Description

Definition at line 89 of file panels.py.

Constructor & Destructor Documentation

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

Definition at line 90 of file panels.py.

90 
91  def __init__(self,parent,item):
92  QVBox.__init__(self,parent)
93  self.item=item
94  vsplit=QSplitter(Qt.Vertical,self,"VSplitter")
95  vbox=QVBox(vsplit)
96  vbox.layout().setAlignment(Qt.AlignTop|Qt.AlignLeft)
97 
98  row0=QHBox(vbox)
99  label=QLabel("Name: ",row0)
100  self.lined0 = QLineEdit(item.node.getName(),row0)
101 
102  #row1=QVBox(self)
103  #self.setStretchFactor(row1,10)
104 
105  row2=QHBox(vbox)
106  but1=QPushButton( "Save", row2 )
107  but1.setFixedSize( but1.sizeHint())
108  but2=QPushButton( "Cancel", row2 )
109  but2.setFixedSize( but2.sizeHint())
110  self.connect( but1, SIGNAL("clicked()"), self.handleSave )
111  self.connect( but2, SIGNAL("clicked()"), self.handleCancel )
112 
113  nodes= item.node.edGetDirectDescendants()
114  if nodes:
115  node=nodes[0]
116  subitem=Item.adapt(node)
117  panel=subitem.box(vsplit)

Member Function Documentation

def gui.panels.PanelForLoop.handleCancel (   self)

Definition at line 120 of file panels.py.

121  def handleCancel(self):
122  return
def gui.panels.PanelForLoop.handleSave (   self)

Definition at line 118 of file panels.py.

119  def handleSave(self):
return

Member Data Documentation

gui.panels.PanelForLoop.item

Definition at line 92 of file panels.py.

gui.panels.PanelForLoop.lined0

Definition at line 99 of file panels.py.


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