Exemple #1
0
 def __init__(self,
              parent,
              title,
              max_height,
              layout_type='QVBoxLayout',
              spacing=10,
              flat=True):
     super(Workspace, self).__init__()
     self.setTitle(title)
     self.setMaximumHeight(max_height)
     self.setFlat(flat)
     self.setCheckable(True)
     self.layout = setters.set_layout(self, layout_type)
     self.layout.setSpacing(spacing)
     self.toggled.connect(self._toggle)
     setters.set_parent(self, parent)
Exemple #2
0
 def __init__(self, parent=None):
     super(Calendar, self).__init__()
     setters.set_parent(self, parent)
Exemple #3
0
 def __init__(self, text=None, parent=None, response=None):
     super(GenericButton, self).__init__(text)
     setters.set_parent(self, parent)
     setters.set_button_response(self, response)
Exemple #4
0
 def __init__(self, items=list(), parent=None, editable=False):
     super(ComboBox, self).__init__()
     self.setEditable(editable)
     setters.set_parent(self, parent)
     self.items = items
Exemple #5
0
 def __init__(self, parent, buttons='ok'):
     super(DialogButtonBox, self).__init__()
     setters.set_parent(self, parent)
     setters.set_buttons(self, buttons)