예제 #1
0
 def __init__(self, group):
     NormalGroupWidget.__init__(self, group)
     ######
     hbox = gtk.HBox()
     label = gtk.Label(_('VCS Type'))
     label.set_alignment(0, 0.5)
     self.sizeGroup.add_widget(label)
     hbox.pack_start(label, 0, 0)
     self.vcsTypeCombo = gtk.combo_box_new_text()
     for name in vcsModuleNames:
         self.vcsTypeCombo.append_text(name)## descriptive name FIXME
     hbox.pack_start(self.vcsTypeCombo, 0, 0)
     self.pack_start(hbox, 0, 0)
     ######
     hbox = gtk.HBox()
     label = gtk.Label(_('Directory'))
     label.set_alignment(0, 0.5)
     self.sizeGroup.add_widget(label)
     hbox.pack_start(label, 0, 0)
     self.dirEntry = gtk.Entry()
     hbox.pack_start(self.dirEntry, 0, 0)
     ##
     #self.dirBrowse = gtk.Button(_('Browse'))
     ##
     self.pack_start(hbox, 0, 0)
예제 #2
0
 def __init__(self, group):
     NormalGroupWidget.__init__(self, group)
     ####
     hbox = gtk.HBox()
     self.showSeperatedYmdInputsCheck = gtk.CheckButton(_('Show Seperated Inputs for Year, Month and Day'))
     hbox.pack_start(self.showSeperatedYmdInputsCheck, 0, 0)
     hbox.pack_start(gtk.Label(''), 1, 1)
     self.pack_start(hbox, 0, 0)
예제 #3
0
파일: lifeTime.py 프로젝트: Noori/starcal
 def __init__(self, group):
     NormalGroupWidget.__init__(self, group)
     ####
     hbox = gtk.HBox()
     self.showSeperatedYmdInputsCheck = gtk.CheckButton(_('Show Seperated Inputs for Year, Month and Day'))
     pack(hbox, self.showSeperatedYmdInputsCheck)
     pack(hbox, gtk.Label(''), 1, 1)
     pack(self, hbox)
예제 #4
0
 def __init__(self, group):
     NormalGroupWidget.__init__(self, group)
     ###
     hbox = gtk.HBox()
     label = gtk.Label(_('Default Task Duration'))
     label.set_alignment(0, 0.5)
     hbox.pack_start(label, 0, 0)
     self.sizeGroup.add_widget(label)
     self.defaultDurationBox = common.DurationInputBox()
     hbox.pack_start(self.defaultDurationBox, 0, 0)
     self.pack_start(hbox, 0, 0)
예제 #5
0
파일: yearly.py 프로젝트: Noori/starcal
 def __init__(self, group):
     NormalGroupWidget.__init__(self, group)
     ###
     hbox = gtk.HBox()
     label = gtk.Label(_('Show Date in Event Summary'))
     label.set_alignment(0, 0.5)
     pack(hbox, label)
     self.sizeGroup.add_widget(label)
     self.showDateCheck = gtk.CheckButton()
     pack(hbox, self.showDateCheck)
     pack(self, hbox)
예제 #6
0
파일: taskList.py 프로젝트: Noori/starcal
 def __init__(self, group):
     NormalGroupWidget.__init__(self, group)
     ###
     hbox = gtk.HBox()
     label = gtk.Label(_("Default Task Duration"))
     label.set_alignment(0, 0.5)
     pack(hbox, label)
     self.sizeGroup.add_widget(label)
     self.defaultDurationBox = common.DurationInputBox()
     pack(hbox, self.defaultDurationBox)
     pack(self, hbox)
예제 #7
0
 def __init__(self, group):
     NormalGroupWidget.__init__(self, group)
     #####
     totalFrame = gtk.Frame(group.desc)
     totalVbox = gtk.VBox()
     ###
     expandHbox = gtk.HBox()## for courseList and classTimeBounds
     ##
     frame = gtk.Frame(_('Course List'))
     self.courseListEditor = CourseListEditor(self.group)
     self.courseListEditor.set_size_request(100, 150)
     frame.add(self.courseListEditor)
     expandHbox.pack_start(frame, 1, 1)
     ##
     frame = gtk.Frame(_('Class Time Bounds'))## FIXME
     self.classTimeBoundsEditor = ClassTimeBoundsEditor(self.group)
     self.classTimeBoundsEditor.set_size_request(50, 150)
     frame.add(self.classTimeBoundsEditor)
     expandHbox.pack_start(frame, 0, 0)
     ##
     totalVbox.pack_start(expandHbox, 1, 1)
     #####
     totalFrame.add(totalVbox)
     self.pack_start(totalFrame, 1, 1)## expand? FIXME
예제 #8
0
 def updateVars(self):
     NormalGroupWidget.updateVars(self)
     self.group.defaultDuration = self.defaultDurationBox.getDuration()
예제 #9
0
 def updateWidget(self):## FIXME
     NormalGroupWidget.updateWidget(self)
     self.defaultDurationBox.setDuration(*self.group.defaultDuration)
예제 #10
0
파일: lifeTime.py 프로젝트: Noori/starcal
 def updateVars(self):
     NormalGroupWidget.updateVars(self)
     self.group.showSeperatedYmdInputs = self.showSeperatedYmdInputsCheck.get_active()
예제 #11
0
 def updateVars(self):
     NormalGroupWidget.updateVars(self)
     ##
     self.group.setCourses(self.courseListEditor.getData())
     self.group.classTimeBounds = self.classTimeBoundsEditor.getData()
예제 #12
0
 def updateWidget(self):## FIXME
     NormalGroupWidget.updateWidget(self)
     self.courseListEditor.setData(self.group.courses)
     self.classTimeBoundsEditor.setData(self.group.classTimeBounds)
예제 #13
0
파일: yearly.py 프로젝트: Noori/starcal
 def updateVars(self):
     NormalGroupWidget.updateVars(self)
     self.group.showDate = self.showDateCheck.get_active()
예제 #14
0
파일: yearly.py 프로젝트: Noori/starcal
 def updateWidget(self):## FIXME
     NormalGroupWidget.updateWidget(self)
     self.showDateCheck.set_active(self.group.showDate)
예제 #15
0
 def updateWidget(self):
     NormalGroupWidget.updateWidget(self)
     self.vcsTypeCombo.set_active(vcsModuleNames.index(self.group.vcsType))
     self.dirEntry.set_text(self.group.vcsDir)
예제 #16
0
 def updateVars(self):
     NormalGroupWidget.updateVars(self)
     self.group.vcsType = vcsModuleNames[self.vcsTypeCombo.get_active()]
     self.group.vcsDir = self.dirEntry.get_text()
예제 #17
0
파일: lifeTime.py 프로젝트: Noori/starcal
 def updateWidget(self):
     NormalGroupWidget.updateWidget(self)
     self.showSeperatedYmdInputsCheck.set_active(self.group.showSeperatedYmdInputs)