def create_widgets(self): Group.create_widgets(self) self.data_widget = gtk.HBox() self.data_widget.set_spacing(6) for field in self.fields: if field.get_active(): self.data_widget.pack_start(field.get_widgets_short_container())
def create_widgets(self): Group.create_widgets(self) self.data_widget = gtk.Notebook() for name, field in self.named_fields: if field.get_active(): self.data_widget.append_page( field.get_widgets_short_container(), gtk.Label(name)) field.container.set_border_width(12)
def create_widgets(self): Group.create_widgets(self) self.data_widget = gtk.HBox() self.data_widget.set_spacing(6) for field in self.fields: if field.get_active(): self.data_widget.pack_start( field.get_widgets_short_container())
def create_widgets(self): Group.create_widgets(self) self.data_widget = gtk.Notebook() for name, field in self.named_fields: if field.get_active(): self.data_widget.append_page( field.get_widgets_short_container(), gtk.Label(name) ) field.container.set_border_width(12)
def show(self, field): Group.show(self, field) self.data_widget.set_current_page( self.data_widget.page_num(field.container))
def __init__(self, named_fields, label_text=None): Group.__init__(self, [field for (name, field) in named_fields], label_text) self.named_fields = named_fields
def __init__(self, fields, label_text=None): Group.__init__(self, fields, label_text)
def create_widgets(self): Group.create_widgets(self) TableMixin.create_widgets(self)
def __init__(self, fields, label_text=None, short=True, cols=1): Group.__init__(self, fields, label_text) TableMixin.__init__(self, short, cols)
def show(self, field): Group.show(self, field) self.data_widget.set_current_page(self.data_widget.page_num(field.container))