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

Public Member Functions

def __init__ (self, parent, item)
 
def handleSave (self)
 
def handleCancel (self)
 

Public Attributes

 item
 
 lined0
 

Detailed Description

Definition at line 89 of file panels.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 90 of file panels.py.

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

Member Function Documentation

◆ handleCancel()

def gui.panels.PanelForLoop.handleCancel (   self)

Definition at line 120 of file panels.py.

120  def handleCancel(self):
121  return
122 

◆ handleSave()

def gui.panels.PanelForLoop.handleSave (   self)

Definition at line 118 of file panels.py.

118  def handleSave(self):
119  return

Member Data Documentation

◆ item

◆ lined0

gui.panels.PanelForLoop.lined0

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