def __init__(self, group): VcsBaseWidgetClass.__init__(self, group) ###### hbox = gtk.HBox() label = gtk.Label(_('Show Seconds')) label.set_alignment(0, 0.5) self.sizeGroup.add_widget(label) pack(hbox, label) pack(hbox, label) self.showSecondsCheck = gtk.CheckButton('') pack(hbox, self.showSecondsCheck) pack(self, hbox)
def updateVars(self): VcsBaseWidgetClass.updateVars(self) self.group.showSeconds = self.showSecondsCheck.get_active()
def updateWidget(self): VcsBaseWidgetClass.updateWidget(self) self.showSecondsCheck.set_active(self.group.showSeconds)