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)
def __init__(self, parent=None): super(Calendar, self).__init__() setters.set_parent(self, parent)
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)
def __init__(self, items=list(), parent=None, editable=False): super(ComboBox, self).__init__() self.setEditable(editable) setters.set_parent(self, parent) self.items = items
def __init__(self, parent, buttons='ok'): super(DialogButtonBox, self).__init__() setters.set_parent(self, parent) setters.set_buttons(self, buttons)