py::gui::widget::actions_layout Class Reference

Inheritance diagram for py::gui::widget::actions_layout:

Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def add
def clear

Public Attributes

 layout
 mutex

Static Public Attributes

 make_flat = False

Private Member Functions

def _clear


Member Function Documentation

def py::gui::widget::actions_layout::__init__ (   self,
  layout 
)

Reimplemented in py::gui::widget::actions.

00039                                      :
00040                 self.layout = layout
00041                 self.mutex = mutex.mutex()
00042 
        def add( self, label, slot=None ) :

def py::gui::widget::actions_layout::add (   self,
  label,
  slot = None 
)

00043                                           :
00044                 button = QPushButton(label)
00045                 button.setFlat(self.make_flat)
00046                 self.layout.insertWidget(self.layout.count()-1,button)
00047                 if slot :
00048                         QObject.connect(button, SIGNAL("clicked()"), slot)
00049                 return button
00050         
        def clear( self ) :

def py::gui::widget::actions_layout::clear (   self  ) 

00051                           :
00052                 self.mutex.lock(self._clear,())
00053                 self.mutex.unlock()
00054         
        def _clear( self, *args ) :

def py::gui::widget::actions_layout::_clear (   self,
  args 
) [private]

00055                                   :
00056                 for i in range(self.layout.count()-1) :
00057                         item = self.layout.takeAt(0)
00058                         w = item.widget()
00059                         w.hide()
00060                         del w
00061                         del item
00062 
class actions( actions_layout, QWidget ) :


Member Data Documentation

py::gui::widget::actions_layout::make_flat = False [static]

py::gui::widget::actions_layout::layout

py::gui::widget::actions_layout::mutex


The documentation for this class was generated from the following file:
Generated on Tue Oct 9 20:40:30 2007 for Qomics by  doxygen 1.5.3