def __init__(self, group): BaseWidgetClass.__init__(self, group) ###### sizeGroup = gtk.SizeGroup(gtk.SizeGroupMode.HORIZONTAL) ###### hbox = gtk.HBox() label = gtk.Label(_("Scale")) label.set_alignment(0, 0.5) sizeGroup.add_widget(label) pack(hbox, label) self.scaleCombo = common.Scale10PowerComboBox() pack(hbox, self.scaleCombo) pack(self, hbox) hbox.show_all() #### hbox = gtk.HBox() label = gtk.Label(_("Start")) label.set_alignment(0, 0.5) sizeGroup.add_widget(label) pack(hbox, label) self.startSpin = IntSpinButton(-maxStartEnd, maxStartEnd) pack(hbox, self.startSpin) pack(self, hbox) hbox.show_all() #### hbox = gtk.HBox() label = gtk.Label(_("End")) label.set_alignment(0, 0.5) sizeGroup.add_widget(label) pack(hbox, label) self.endSpin = IntSpinButton(-maxStartEnd, maxStartEnd) pack(hbox, self.endSpin) pack(self, hbox) hbox.show_all()
def optionsWidgetCreate(self): from scal3.ui_gtk.mywidgets.multi_spin.integer import IntSpinButton from scal3.ui_gtk.pref_utils import CheckPrefItem, ColorPrefItem if self.optionsWidget: return self.optionsWidget = gtk.VBox() #### hbox = gtk.HBox() spin = IntSpinButton(1, 9999) spin.set_value(ui.mcalHeight) spin.connect('changed', self.heightSpinChanged) pack(hbox, gtk.Label(_('Height'))) pack(hbox, spin) pack(self.optionsWidget, hbox) #### hbox = gtk.HBox(spacing=3) ## pack(hbox, gtk.Label(_('Left Margin'))) spin = IntSpinButton(0, 99) spin.set_value(ui.mcalLeftMargin) spin.connect('changed', self.leftMarginSpinChanged) pack(hbox, spin) ## pack(hbox, gtk.Label(_('Top'))) spin = IntSpinButton(0, 99) spin.set_value(ui.mcalTopMargin) spin.connect('changed', self.topMarginSpinChanged) pack(hbox, spin) ## pack(hbox, gtk.Label(''), 1, 1) pack(self.optionsWidget, hbox) ######## hbox = gtk.HBox(spacing=3) #### item = CheckPrefItem(ui, 'mcalGrid', _('Grid')) item.updateWidget() gridCheck = item._widget pack(hbox, gridCheck) gridCheck.item = item #### colorItem = ColorPrefItem(ui, 'mcalGridColor', True) colorItem.updateWidget() pack(hbox, colorItem._widget) gridCheck.colorb = colorItem._widget gridCheck.connect('clicked', self.gridCheckClicked) colorItem._widget.item = colorItem colorItem._widget.connect('color-set', self.gridColorChanged) colorItem._widget.set_sensitive(ui.mcalGrid) #### pack(self.optionsWidget, hbox) ######## frame = gtk.Frame() frame.set_label(_('Calendars')) self.typeParamsVbox = gtk.VBox() frame.add(self.typeParamsVbox) frame.show_all() pack(self.optionsWidget, frame) self.optionsWidget.show_all() self.updateTypeParamsWidget() ## FIXME
def __init__(self, module, varName, _max): _min = 0 self.module = module self.varName = varName ### self.widthItem = IntSpinButton(_min, _max) self.heightItem = IntSpinButton(_min, _max) ### hbox = self._widget = gtk.HBox() pack(hbox, gtk.Label(_('Width') + ':')) pack(hbox, self.widthItem) pack(hbox, gtk.Label(' ')) pack(hbox, gtk.Label(_('Height') + ':')) pack(hbox, self.heightItem)
def optionsWidgetCreate(self): from scal3.ui_gtk.mywidgets.multi_spin.integer import IntSpinButton if self.optionsWidget: return self.optionsWidget = gtk.VBox() #### if self.customizeWidth: value = self.getWidthValue() ### hbox = gtk.HBox() pack(hbox, gtk.Label(_('Width'))) spin = IntSpinButton(0, 999) pack(hbox, spin) spin.set_value(value) spin.connect('changed', self.widthSpinChanged) pack(self.optionsWidget, hbox) #### if self.customizeFont: hbox = gtk.HBox() pack(hbox, gtk.Label(_('Font Family'))) combo = FontFamilyCombo(hasAuto=True) combo.set_value(self.getFontValue()) pack(hbox, combo) combo.connect('changed', self.fontFamilyComboChanged) pack(self.optionsWidget, hbox) #### self.optionsWidget.show_all()
def optionsWidgetCreate(self): from scal3.ui_gtk.mywidgets.multi_spin.integer import IntSpinButton from scal3.ui_gtk.pref_utils import LiveLabelSpinPrefItem, SpinPrefItem, \ LiveCheckColorPrefItem, CheckPrefItem, ColorPrefItem if self.optionsWidget: return self.optionsWidget = gtk.VBox() #### prefItem = LiveLabelSpinPrefItem( _("Height"), SpinPrefItem(ui, "mcalHeight", 1, 9999, digits=0), self.heightUpdate, ) pack(self.optionsWidget, prefItem.getWidget()) #### hbox = gtk.HBox(spacing=3) ## pack(hbox, gtk.Label(_("Left Margin"))) spin = IntSpinButton(0, 99) spin.set_value(ui.mcalLeftMargin) spin.connect("changed", self.leftMarginSpinChanged) pack(hbox, spin) ## pack(hbox, gtk.Label(_("Top"))) spin = IntSpinButton(0, 99) spin.set_value(ui.mcalTopMargin) spin.connect("changed", self.topMarginSpinChanged) pack(hbox, spin) ## pack(hbox, gtk.Label(""), 1, 1) pack(self.optionsWidget, hbox) ######## prefItem = LiveCheckColorPrefItem( CheckPrefItem(ui, "mcalGrid", _("Grid")), ColorPrefItem(ui, "mcalGridColor", True), self.queue_draw, ) hbox = prefItem.getWidget() pack(self.optionsWidget, hbox) ######## self.typeParamsVbox = gtk.VBox() pack(self.optionsWidget, self.typeParamsVbox) self.optionsWidget.show_all() self.updateTypeParamsWidget() ## FIXME
def __init__(self, module, varName, _min, _max, digits=1): self.module = module self.varName = varName if digits == 0: w = IntSpinButton(_min, _max) else: w = FloatSpinButton(_min, _max, digits) self._widget = w self.get = w.get_value self.set = w.set_value
def __init__(self, rule): self.rule = rule ### gtk.HBox.__init__(self) spin = IntSpinButton(0, 9999) pack(self, spin) self.spin = spin ## pack(self, gtk.Label(" " + _("days and") + " ")) tbox = TimeButton() pack(self, tbox) self.tbox = tbox
def __init__(self, event): ## FIXME common.WidgetClass.__init__(self, event) ###### sizeGroup = gtk.SizeGroup(gtk.SizeGroupMode.HORIZONTAL) ###### hbox = gtk.HBox() label = gtk.Label(_('Start')) label.set_alignment(0, 0.5) sizeGroup.add_widget(label) pack(hbox, label) self.startDateInput = DateButton() pack(hbox, self.startDateInput) ### pack(hbox, gtk.Label(''), 1, 1) pack(self, hbox) ###### hbox = gtk.HBox() label = gtk.Label(_('Repeat Every ')) label.set_alignment(0, 0.5) sizeGroup.add_widget(label) pack(hbox, label) self.weeksSpin = IntSpinButton(1, 99999) pack(hbox, self.weeksSpin) pack(hbox, gtk.Label(' ' + _(' Weeks'))) ### pack(hbox, gtk.Label(''), 1, 1) pack(self, hbox) ###### hbox = gtk.HBox() label = gtk.Label(_('End')) label.set_alignment(0, 0.5) sizeGroup.add_widget(label) pack(hbox, label) self.endDateInput = DateButton() pack(hbox, self.endDateInput) ### pack(hbox, gtk.Label(''), 1, 1) pack(self, hbox) ######### hbox = gtk.HBox() label = gtk.Label(_('Time')) label.set_alignment(0, 0.5) sizeGroup.add_widget(label) pack(hbox, label) ## self.dayTimeStartInput = HourMinuteButton() self.dayTimeEndInput = HourMinuteButton() ## pack(hbox, self.dayTimeStartInput) pack(hbox, gtk.Label(' ' + _('to') + ' ')) pack(hbox, self.dayTimeEndInput) pack(self, hbox)
def optionsWidgetCreate(self): from scal3.ui_gtk.mywidgets.multi_spin.integer import IntSpinButton if self.optionsWidget: return self.optionsWidget = gtk.HBox() ### hbox = gtk.HBox() spin = IntSpinButton(1, 9999) spin.set_value(ui.eventViewMaxHeight) spin.connect("changed", self.heightSpinChanged) pack(hbox, gtk.Label(_("Maximum Height"))) pack(hbox, spin) pack(self.optionsWidget, hbox) ### self.optionsWidget.show_all()
def __init__(self, event):## FIXME common.WidgetClass.__init__(self, event) ###### sizeGroup = gtk.SizeGroup(gtk.SizeGroupMode.HORIZONTAL) ###### hbox = gtk.HBox() label = gtk.Label(_('Scale')) label.set_alignment(0, 0.5) sizeGroup.add_widget(label) pack(hbox, label) self.scaleCombo = common.Scale10PowerComboBox() pack(hbox, self.scaleCombo) pack(self, hbox) #### hbox = gtk.HBox() label = gtk.Label(_('Start')) label.set_alignment(0, 0.5) sizeGroup.add_widget(label) pack(hbox, label) self.startSpin = IntSpinButton(-maxStart, maxStart) self.startSpin.connect('changed', self.startSpinChanged) pack(hbox, self.startSpin) pack(self, hbox) #### hbox = gtk.HBox() self.endRelCombo = gtk.ComboBoxText() for item in ('Duration', 'End'): self.endRelCombo.append_text(_(item)) self.endRelCombo.connect('changed', self.endRelComboChanged) sizeGroup.add_widget(self.endRelCombo) pack(hbox, self.endRelCombo) self.endSpin = IntSpinButton(-maxDur, maxDur) pack(hbox, self.endSpin) pack(self, hbox) #### self.endRelComboChanged()
def optionsWidgetCreate(self): from scal3.ui_gtk.mywidgets.multi_spin.integer import IntSpinButton from scal3.ui_gtk.mywidgets.multi_spin.float_num import FloatSpinButton from scal3.ui_gtk.pref_utils import CheckPrefItem, ColorPrefItem if self.optionsWidget: return ColumnBase.optionsWidgetCreate(self) ##### hbox = gtk.HBox() spin = IntSpinButton(1, 9999) spin.set_value(ui.wcalHeight) spin.connect('changed', self.heightSpinChanged) pack(hbox, gtk.Label(_('Height'))) pack(hbox, spin) pack(self.optionsWidget, hbox) ### hbox = gtk.HBox() spin = FloatSpinButton(0.01, 1, 2) spin.set_value(ui.wcalTextSizeScale) spin.connect('changed', self.textSizeScaleSpinChanged) pack(hbox, gtk.Label(_('Text Size Scale'))) pack(hbox, spin) pack(self.optionsWidget, hbox) ######## hbox = gtk.HBox(spacing=3) #### item = CheckPrefItem(ui, 'wcalGrid', _('Grid')) item.updateWidget() gridCheck = item._widget pack(hbox, gridCheck) gridCheck.item = item #### colorItem = ColorPrefItem(ui, 'wcalGridColor', True) colorItem.updateWidget() pack(hbox, colorItem._widget) gridCheck.colorb = colorItem._widget gridCheck.connect('clicked', self.gridCheckClicked) colorItem._widget.item = colorItem colorItem._widget.connect('color-set', self.gridColorChanged) colorItem._widget.set_sensitive(ui.wcalGrid) #### pack(self.optionsWidget, hbox) ### self.optionsWidget.show_all()
def __init__(self, funcOwner, vertical=False, onPressContinue=False): from scal3.ui_gtk.mywidgets.multi_spin.integer import IntSpinButton gtk.Toolbar.__init__(self) self.funcOwner = funcOwner self.set_orientation(gtk.Orientation.VERTICAL if vertical else gtk. Orientation.HORIZONTAL) self.add_events(gdk.EventMask.POINTER_MOTION_MASK) self.onPressContinue = onPressContinue self.remain = False self.lastPressTime = 0 ### optionsWidget = gtk.VBox() ## hbox = gtk.HBox() pack(hbox, gtk.Label(_('Style'))) self.styleCombo = gtk.ComboBoxText() for item in self.styleList: self.styleCombo.append_text(_(item)) pack(hbox, self.styleCombo) pack(optionsWidget, hbox) ## hbox = gtk.HBox() pack(hbox, gtk.Label(_('Icon Size'))) self.iconSizeCombo = gtk.ComboBoxText() for (i, item) in enumerate(ud.iconSizeList): self.iconSizeCombo.append_text(_(item[0])) pack(hbox, self.iconSizeCombo) pack(optionsWidget, hbox) self.iconSizeHbox = hbox ## hbox = gtk.HBox() pack(hbox, gtk.Label(_('Buttons Border'))) self.buttonsBorderSpin = IntSpinButton(0, 99) pack(hbox, self.buttonsBorderSpin) pack(optionsWidget, hbox) ## self.initVars(optionsWidget=optionsWidget) self.iconSizeCombo.connect('changed', self.iconSizeComboChanged) self.styleCombo.connect('changed', self.styleComboChanged) self.buttonsBorderSpin.connect('changed', self.buttonsBorderSpinChanged)
def optionsWidgetCreate(self): from scal3.ui_gtk.mywidgets.multi_spin.integer import IntSpinButton from scal3.ui_gtk.pref_utils import CheckPrefItem, ColorPrefItem if self.optionsWidget: return self.optionsWidget = gtk.VBox() #### hbox = gtk.HBox() spin = IntSpinButton(1, 9999) spin.set_value(ui.dcalHeight) spin.connect('changed', self.heightSpinChanged) pack(hbox, gtk.Label(_('Height'))) pack(hbox, spin) pack(self.optionsWidget, hbox) ######## frame = gtk.Frame() frame.set_label(_('Calendars')) self.typeParamsVbox = gtk.VBox() frame.add(self.typeParamsVbox) frame.show_all() pack(self.optionsWidget, frame) self.optionsWidget.show_all() self.updateTypeParamsWidget() ## FIXME
def optionsWidgetCreate(self): from scal3.ui_gtk.mywidgets.multi_spin.integer import IntSpinButton if self.optionsWidget: return ### self.optionsWidget = gtk.VBox() ## hbox = gtk.HBox() pack(hbox, gtk.Label(_("Style"))) self.styleCombo = gtk.ComboBoxText() for item in self.styleList: self.styleCombo.append_text(_(item)) pack(hbox, self.styleCombo) pack(self.optionsWidget, hbox) ## hbox = gtk.HBox() pack(hbox, gtk.Label(_("Icon Size"))) self.iconSizeCombo = gtk.ComboBoxText() for (i, item) in enumerate(ud.iconSizeList): self.iconSizeCombo.append_text(_(item[0])) pack(hbox, self.iconSizeCombo) pack(self.optionsWidget, hbox) self.iconSizeHbox = hbox ## hbox = gtk.HBox() pack(hbox, gtk.Label(_("Buttons Border"))) self.buttonsBorderSpin = IntSpinButton(0, 99) pack(hbox, self.buttonsBorderSpin) pack(self.optionsWidget, hbox) ## self.iconSizeCombo.connect("changed", self.iconSizeComboChanged) self.styleCombo.connect("changed", self.styleComboChanged) self.buttonsBorderSpin.connect("changed", self.buttonsBorderSpinChanged) #self.styleComboChanged() ## self.optionsWidget.show_all()
def __init__(self, event): ## FIXME common.WidgetClass.__init__(self, event) ###### sizeGroup = gtk.SizeGroup(gtk.SizeGroupMode.HORIZONTAL) ###### hbox = gtk.HBox() label = gtk.Label(_('Start')) label.set_alignment(0, 0.5) sizeGroup.add_widget(label) pack(hbox, label) self.startDateInput = DateButton() pack(hbox, self.startDateInput) ## pack(self, hbox) ###### hbox = gtk.HBox() self.endTypeCombo = gtk.ComboBoxText() for item in ('Duration', 'End'): self.endTypeCombo.append_text(_(item)) self.endTypeCombo.connect('changed', self.endTypeComboChanged) sizeGroup.add_widget(self.endTypeCombo) pack(hbox, self.endTypeCombo) #### self.durationBox = gtk.HBox() self.durationSpin = IntSpinButton(1, 999) pack(self.durationBox, self.durationSpin) pack(self.durationBox, gtk.Label(_(' days'))) pack(hbox, self.durationBox) #### self.endDateInput = DateButton() pack(hbox, self.endDateInput) #### pack(hbox, gtk.Label(''), 1, 1) pack(self, hbox) ############# self.notificationBox = common.NotificationBox(event) pack(self, self.notificationBox)
def __init__(self, module, opt): t = opt[1] self.opt = opt ## needed?? self.module = module self.type = t self.var_name = opt[0] hbox = gtk.HBox() if t == bool: w = gtk.CheckButton(_(opt[2])) self.get_value = w.get_active self.set_value = w.set_active elif t == list: pack(hbox, gtk.Label(_(opt[2]))) w = gtk.ComboBoxText() ### or RadioButton for s in opt[3]: w.append_text(_(s)) self.get_value = w.get_active self.set_value = w.set_active elif t == int: pack(hbox, gtk.Label(_(opt[2]))) w = IntSpinButton(opt[3], opt[4]) self.get_value = w.get_value self.set_value = w.set_value elif t == float: pack(hbox, gtk.Label(_(opt[2]))) w = FloatSpinButton(opt[3], opt[4], opt[5]) self.get_value = w.get_value self.set_value = w.set_value else: raise RuntimeError('bad option type "%s"' % t) pack(hbox, w) self._widget = hbox #### self.updateVar = lambda: setattr(self.module, self.var_name, self.get_value()) self.updateWidget = lambda: self.set_value( getattr(self.module, self.var_name))
def __init__(self, group): from scal3.ui_gtk.mywidgets.cal_type_combo import CalTypeCombo gtk.VBox.__init__(self) self.group = group ######## self.sizeGroup = gtk.SizeGroup(gtk.SizeGroupMode.HORIZONTAL) ##### hbox = gtk.HBox() label = gtk.Label(_('Title')) label.set_alignment(0, 0.5) pack(hbox, label) self.sizeGroup.add_widget(label) self.titleEntry = gtk.Entry() pack(hbox, self.titleEntry, 1, 1) pack(self, hbox) ##### hbox = gtk.HBox() label = gtk.Label(_('Color')) label.set_alignment(0, 0.5) pack(hbox, label) self.sizeGroup.add_widget(label) self.colorButton = MyColorButton() self.colorButton.set_use_alpha(True) ## FIXME pack(hbox, self.colorButton) pack(self, hbox) ##### hbox = gtk.HBox() label = gtk.Label(_('Default Icon')) ## FIXME label.set_alignment(0, 0.5) pack(hbox, label) self.sizeGroup.add_widget(label) self.iconSelect = IconSelectButton() pack(hbox, self.iconSelect) pack(self, hbox) ##### hbox = gtk.HBox() label = gtk.Label(_('Default Calendar Type')) label.set_alignment(0, 0.5) pack(hbox, label) self.sizeGroup.add_widget(label) combo = CalTypeCombo() pack(hbox, combo) pack(hbox, gtk.Label(''), 1, 1) self.modeCombo = combo pack(self, hbox) ##### hbox = gtk.HBox() label = gtk.Label(_('Show in Calendar')) label.set_alignment(0, 0.5) pack(hbox, label) self.sizeGroup.add_widget(label) self.showInDCalCheck = gtk.CheckButton(_('Day')) self.showInWCalCheck = gtk.CheckButton(_('Week')) self.showInMCalCheck = gtk.CheckButton(_('Month')) pack(hbox, self.showInDCalCheck) pack(hbox, gtk.Label(''), 1, 1) pack(hbox, self.showInWCalCheck) pack(hbox, gtk.Label(''), 1, 1) pack(hbox, self.showInMCalCheck) pack(hbox, gtk.Label(''), 1, 1) pack(self, hbox) ##### hbox = gtk.HBox() label = gtk.Label(_('Show in')) label.set_alignment(0, 0.5) pack(hbox, label) self.sizeGroup.add_widget(label) self.showInTimeLineCheck = gtk.CheckButton(_('Time Line')) self.showInStatusIconCheck = gtk.CheckButton(_('Status Icon')) pack(hbox, self.showInTimeLineCheck) pack(hbox, gtk.Label(''), 1, 1) pack(hbox, self.showInStatusIconCheck) pack(hbox, gtk.Label(''), 1, 1) pack(self, hbox) ##### hbox = gtk.HBox() label = gtk.Label(_('Event Cache Size')) label.set_alignment(0, 0.5) pack(hbox, label) self.sizeGroup.add_widget(label) self.cacheSizeSpin = IntSpinButton(0, 9999) pack(hbox, self.cacheSizeSpin) pack(self, hbox) ##### hbox = gtk.HBox() label = gtk.Label(_('Event Text Seperator')) label.set_alignment(0, 0.5) pack(hbox, label) self.sizeGroup.add_widget(label) self.sepInput = TextFrame() pack(hbox, self.sepInput, 1, 1) pack(self, hbox) set_tooltip( hbox, _('Using to seperate Summary and Description when displaying event' )) ##### #hbox = gtk.HBox() #label = gtk.Label(_('Show Full Event Description')) #label.set_alignment(0, 0.5) #pack(hbox, label) #self.sizeGroup.add_widget(label) #self.showFullEventDescCheck = gtk.CheckButton('') #pack(hbox, self.showFullEventDescCheck, 1, 1) #pack(self, hbox) ### self.modeCombo.connect( 'changed', self.modeComboChanged) ## right place? before updateWidget? FIXME
def getIntWidget(): from scal3.ui_gtk.mywidgets.multi_spin.integer import IntSpinButton btn = IntSpinButton(0, 99) btn.set_value(12) btn.set_editable(True) return btn
def __init__(self, group): from scal3.ui_gtk.mywidgets.cal_type_combo import CalTypeCombo from scal3.ui_gtk.mywidgets.tz_combo import TimeZoneComboBoxEntry gtk.VBox.__init__(self) self.group = group ######## self.sizeGroup = gtk.SizeGroup(gtk.SizeGroupMode.HORIZONTAL) ##### hbox = gtk.HBox() label = gtk.Label(_("Title")) label.set_alignment(0, 0.5) pack(hbox, label) self.sizeGroup.add_widget(label) self.titleEntry = gtk.Entry() pack(hbox, self.titleEntry, 1, 1) pack(self, hbox) ##### hbox = gtk.HBox() label = gtk.Label(_("Color")) label.set_alignment(0, 0.5) pack(hbox, label) self.sizeGroup.add_widget(label) self.colorButton = MyColorButton() self.colorButton.set_use_alpha(True) ## FIXME pack(hbox, self.colorButton) pack(self, hbox) ##### hbox = gtk.HBox() label = gtk.Label(_("Default Icon")) ## FIXME label.set_alignment(0, 0.5) pack(hbox, label) self.sizeGroup.add_widget(label) self.iconSelect = IconSelectButton() pack(hbox, self.iconSelect) pack(self, hbox) ##### hbox = gtk.HBox() label = gtk.Label(_("Default Calendar Type")) label.set_alignment(0, 0.5) pack(hbox, label) self.sizeGroup.add_widget(label) combo = CalTypeCombo() pack(hbox, combo) pack(hbox, gtk.Label(""), 1, 1) self.modeCombo = combo pack(self, hbox) ##### hbox = gtk.HBox() self.tzCheck = gtk.CheckButton(_("Default Time Zone")) pack(hbox, self.tzCheck) self.sizeGroup.add_widget(self.tzCheck) combo = TimeZoneComboBoxEntry() pack(hbox, combo) pack(hbox, gtk.Label(""), 1, 1) self.tzCombo = combo pack(self, hbox) self.tzCheck.connect( "clicked", lambda check: self.tzCombo.set_sensitive(check.get_active()), ) ##### hbox = gtk.HBox() label = gtk.Label(_("Show in Calendar")) label.set_alignment(0, 0.5) pack(hbox, label) self.sizeGroup.add_widget(label) self.showInDCalCheck = gtk.CheckButton(_("Day")) self.showInWCalCheck = gtk.CheckButton(_("Week")) self.showInMCalCheck = gtk.CheckButton(_("Month")) pack(hbox, self.showInDCalCheck) pack(hbox, gtk.Label(""), 1, 1) pack(hbox, self.showInWCalCheck) pack(hbox, gtk.Label(""), 1, 1) pack(hbox, self.showInMCalCheck) pack(hbox, gtk.Label(""), 1, 1) pack(self, hbox) ##### hbox = gtk.HBox() label = gtk.Label(_("Show in")) label.set_alignment(0, 0.5) pack(hbox, label) self.sizeGroup.add_widget(label) self.showInTimeLineCheck = gtk.CheckButton(_("Time Line")) self.showInStatusIconCheck = gtk.CheckButton(_("Status Icon")) pack(hbox, self.showInTimeLineCheck) pack(hbox, gtk.Label(""), 1, 1) pack(hbox, self.showInStatusIconCheck) pack(hbox, gtk.Label(""), 1, 1) pack(self, hbox) ##### hbox = gtk.HBox() label = gtk.Label(_("Event Cache Size")) label.set_alignment(0, 0.5) pack(hbox, label) self.sizeGroup.add_widget(label) self.cacheSizeSpin = IntSpinButton(0, 9999) pack(hbox, self.cacheSizeSpin) pack(self, hbox) ##### hbox = gtk.HBox() label = gtk.Label(label=_("Event Text Separator")) label.set_alignment(0, 0.5) pack(hbox, label) self.sizeGroup.add_widget(label) self.sepInput = TextFrame() pack(hbox, self.sepInput, 1, 1) pack(self, hbox) set_tooltip( hbox, _("Using to seperate Summary and Description when displaying event" )) ##### #hbox = gtk.HBox() #label = gtk.Label(_("Show Full Event Description")) #label.set_alignment(0, 0.5) #pack(hbox, label) #self.sizeGroup.add_widget(label) #self.showFullEventDescCheck = gtk.CheckButton("") #pack(hbox, self.showFullEventDescCheck, 1, 1) #pack(self, hbox) ### self.modeCombo.connect( "changed", self.modeComboChanged, ) # right place? before updateWidget? FIXME