Exemple #1
0
 def __init__(self, group):
     BaseGroupWidget.__init__(self, group)
     ######
     sizeGroup = gtk.SizeGroup(gtk.SIZE_GROUP_HORIZONTAL)
     ######
     hbox = gtk.HBox()
     label = gtk.Label(_('Scale'))
     label.set_alignment(0, 0.5)
     sizeGroup.add_widget(label)
     hbox.pack_start(label, 0, 0)
     self.scaleCombo = common.Scale10PowerComboBox()
     hbox.pack_start(self.scaleCombo, 0, 0)
     self.pack_start(hbox, 0, 0)
     ####
     hbox = gtk.HBox()
     label = gtk.Label(_('Start'))
     label.set_alignment(0, 0.5)
     sizeGroup.add_widget(label)
     hbox.pack_start(label, 0, 0)
     self.startSpin = IntSpinButton(-maxStartEnd, maxStartEnd)
     hbox.pack_start(self.startSpin, 0, 0)
     self.pack_start(hbox, 0, 0)
     ####
     hbox = gtk.HBox()
     label = gtk.Label(_('End'))
     label.set_alignment(0, 0.5)
     sizeGroup.add_widget(label)
     hbox.pack_start(label, 0, 0)
     self.endSpin = IntSpinButton(-maxStartEnd, maxStartEnd)
     hbox.pack_start(self.endSpin, 0, 0)
     self.pack_start(hbox, 0, 0)
Exemple #2
0
 def __init__(self, group):
     BaseGroupWidget.__init__(self, group)
     ####
     hbox = gtk.HBox()
     label = gtk.Label(_('Start'))
     label.set_alignment(0, 0.5)
     hbox.pack_start(label, 0, 0)
     self.sizeGroup.add_widget(label)
     self.startDateInput = DateButton()
     hbox.pack_start(self.startDateInput, 0, 0)
     self.pack_start(hbox, 0, 0)
     ###
     hbox = gtk.HBox()
     label = gtk.Label(_('End'))
     label.set_alignment(0, 0.5)
     hbox.pack_start(label, 0, 0)
     self.sizeGroup.add_widget(label)
     self.endDateInput = DateButton()
     hbox.pack_start(self.endDateInput, 0, 0)
     self.pack_start(hbox, 0, 0)
Exemple #3
0
 def updateVars(self):
     BaseGroupWidget.updateVars(self)
     self.group.scale = self.scaleCombo.get_value()
     self.group.setStartValue(self.startSpin.get_value())
     self.group.setEndValue(self.endSpin.get_value())
Exemple #4
0
 def updateVars(self):
     BaseGroupWidget.updateVars(self)
     self.group.startJd = self.startDateInput.get_jd(self.group.mode)
     self.group.endJd = self.endDateInput.get_jd(self.group.mode)
Exemple #5
0
 def updateWidget(self):
     BaseGroupWidget.updateWidget(self)
     self.startDateInput.set_value(jd_to(self.group.startJd, self.group.mode))
     self.endDateInput.set_value(jd_to(self.group.endJd, self.group.mode))