Exemple #1
0
	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 = 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 = 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)
Exemple #2
0
 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()
Exemple #3
0
 def __init__(self, group):
     BaseWidgetClass.__init__(self, group)
     ####
     hbox = gtk.HBox()
     label = gtk.Label(_('Start'))
     label.set_alignment(0, 0.5)
     pack(hbox, label)
     self.sizeGroup.add_widget(label)
     self.startDateInput = DateButton()
     pack(hbox, self.startDateInput)
     pack(self, hbox)
     ###
     hbox = gtk.HBox()
     label = gtk.Label(_('End'))
     label.set_alignment(0, 0.5)
     pack(hbox, label)
     self.sizeGroup.add_widget(label)
     self.endDateInput = DateButton()
     pack(hbox, self.endDateInput)
     pack(self, hbox)
     ######
     exp = gtk.Expander()
     exp.set_label(_('Online Service'))
     vbox = gtk.VBox()
     exp.add(vbox)
     sizeGroup = gtk.SizeGroup(gtk.SizeGroupMode.HORIZONTAL)
     ##
     hbox = gtk.HBox()
     label = gtk.Label(_('Account'))
     label.set_alignment(0, 0.5)
     pack(hbox, label)
     sizeGroup.add_widget(label)  ## FIXME
     self.accountCombo = AccountCombo()
     pack(hbox, self.accountCombo)
     pack(vbox, hbox)
     ##
     hbox = gtk.HBox()
     label = gtk.Label(_('Remote Group'))
     label.set_alignment(0, 0.5)
     pack(hbox, label)
     sizeGroup.add_widget(label)  ## FIXME
     accountGroupBox = AccountGroupBox(self.accountCombo)
     pack(hbox, accountGroupBox, 1, 1)
     pack(vbox, hbox)
     self.accountGroupCombo = accountGroupBox.combo
     ##
     pack(self, exp)
Exemple #4
0
	def __init__(self, group):
		BaseWidgetClass.__init__(self, group)
		####
		hbox = gtk.HBox()
		label = gtk.Label(_('Start'))
		label.set_alignment(0, 0.5)
		pack(hbox, label)
		self.sizeGroup.add_widget(label)
		self.startDateInput = DateButton()
		pack(hbox, self.startDateInput)
		pack(self, hbox)
		###
		hbox = gtk.HBox()
		label = gtk.Label(_('End'))
		label.set_alignment(0, 0.5)
		pack(hbox, label)
		self.sizeGroup.add_widget(label)
		self.endDateInput = DateButton()
		pack(hbox, self.endDateInput)
		pack(self, hbox)
		######
		exp = gtk.Expander()
		exp.set_label(_('Online Service'))
		vbox = gtk.VBox()
		exp.add(vbox)
		sizeGroup = gtk.SizeGroup(gtk.SizeGroupMode.HORIZONTAL)
		##
		hbox = gtk.HBox()
		label = gtk.Label(_('Account'))
		label.set_alignment(0, 0.5)
		pack(hbox, label)
		sizeGroup.add_widget(label) ## FIXME
		self.accountCombo = AccountCombo()
		pack(hbox, self.accountCombo)
		pack(vbox, hbox)
		##
		hbox = gtk.HBox()
		label = gtk.Label(_('Remote Group'))
		label.set_alignment(0, 0.5)
		pack(hbox, label)
		sizeGroup.add_widget(label) ## FIXME
		accountGroupBox = AccountGroupBox(self.accountCombo)
		pack(hbox, accountGroupBox, 1, 1)
		pack(vbox, hbox)
		self.accountGroupCombo = accountGroupBox.combo
		##
		pack(self, exp)
Exemple #5
0
 def __init__(self, group):
     BaseWidgetClass.__init__(self, group)
     ####
     hbox = gtk.HBox()
     label = gtk.Label(_("Start"))
     label.set_alignment(0, 0.5)
     pack(hbox, label)
     self.sizeGroup.add_widget(label)
     self.startDateInput = DateButton()
     pack(hbox, self.startDateInput)
     pack(self, hbox)
     ###
     hbox = gtk.HBox()
     label = gtk.Label(_("End"))
     label.set_alignment(0, 0.5)
     pack(hbox, label)
     self.sizeGroup.add_widget(label)
     self.endDateInput = DateButton()
     pack(hbox, self.endDateInput)
     pack(self, hbox)
     ######
     exp = gtk.Expander()
     exp.set_label(_("Online Service"))
     vbox = gtk.VBox()
     exp.add(vbox)
     sizeGroup = gtk.SizeGroup(gtk.SizeGroupMode.HORIZONTAL)
     ##
     hbox = gtk.HBox()
     label = gtk.Label(_("Account"))
     label.set_alignment(0, 0.5)
     pack(hbox, label)
     sizeGroup.add_widget(label)  ## FIXME
     self.accountCombo = AccountCombo()
     pack(hbox, self.accountCombo)
     pack(vbox, hbox)
     ##
     hbox = gtk.HBox()
     label = gtk.Label(_("Remote Group"))
     label.set_alignment(0, 0.5)
     pack(hbox, label)
     sizeGroup.add_widget(label)  ## FIXME
     accountGroupBox = AccountGroupBox(self.accountCombo)
     pack(hbox, accountGroupBox, 1, 1)
     pack(vbox, hbox)
     self.accountGroupCombo = accountGroupBox.combo
     ##
     hbox = gtk.HBox()
     self.syncCheck = gtk.CheckButton(_("Synchronization Interval"))
     pack(hbox, self.syncCheck)
     sizeGroup.add_widget(self.syncCheck)
     self.syncIntervalInput = common.DurationInputBox()
     pack(hbox, self.syncIntervalInput)
     pack(hbox, gtk.Label(""), 1, 1)
     pack(vbox, hbox)
     self.syncCheck.connect(
         "clicked",
         lambda check: self.syncIntervalInput.set_sensitive(check.
                                                            get_active()),
     )
     ##
     pack(self, exp)