Exemple #1
0
	def __init__(self, group):
		NormalWidgetClass.__init__(self, group)
		#####
		totalFrame = gtk.Frame()
		totalFrame.set_label(group.desc)
		totalVbox = gtk.VBox()
		###
		expandHbox = gtk.HBox()## for courseList and classTimeBounds
		##
		frame = gtk.Frame()
		frame.set_label(_("Course List"))
		self.courseListEditor = CourseListEditor(self.group)
		self.courseListEditor.set_size_request(100, 150)
		frame.add(self.courseListEditor)
		pack(expandHbox, frame, 1, 1)
		##
		frame = gtk.Frame()## FIXME
		frame.set_label(_("Class Time Bounds"))
		self.classTimeBoundsEditor = ClassTimeBoundsEditor(self.group)
		self.classTimeBoundsEditor.set_size_request(50, 150)
		frame.add(self.classTimeBoundsEditor)
		pack(expandHbox, frame)
		expandHbox.show_all()
		##
		pack(totalVbox, expandHbox, 1, 1)
		#####
		totalFrame.add(totalVbox)
		pack(self, totalFrame, 1, 1)## expand? FIXME
Exemple #2
0
	def __init__(self, group):
		NormalWidgetClass.__init__(self, group)
		#####
		totalFrame = gtk.Frame()
		totalFrame.set_label(group.desc)
		totalVbox = gtk.VBox()
		###
		expandHbox = gtk.HBox()## for courseList and classTimeBounds
		##
		frame = gtk.Frame()
		frame.set_label(_('Course List'))
		self.courseListEditor = CourseListEditor(self.group)
		self.courseListEditor.set_size_request(100, 150)
		frame.add(self.courseListEditor)
		pack(expandHbox, frame, 1, 1)
		##
		frame = gtk.Frame()## FIXME
		frame.set_label(_('Class Time Bounds'))
		self.classTimeBoundsEditor = ClassTimeBoundsEditor(self.group)
		self.classTimeBoundsEditor.set_size_request(50, 150)
		frame.add(self.classTimeBoundsEditor)
		pack(expandHbox, frame)
		##
		pack(totalVbox, expandHbox, 1, 1)
		#####
		totalFrame.add(totalVbox)
		pack(self, totalFrame, 1, 1)## expand? FIXME
Exemple #3
0
 def __init__(self, group):
     NormalWidgetClass.__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)
Exemple #4
0
 def __init__(self, group):
     NormalWidgetClass.__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)
Exemple #5
0
	def __init__(self, group):
		NormalWidgetClass.__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)
Exemple #6
0
 def __init__(self, group):
     NormalWidgetClass.__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)
Exemple #7
0
	def __init__(self, group):
		NormalWidgetClass.__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)
Exemple #8
0
 def __init__(self, group):
     NormalWidgetClass.__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)
Exemple #9
0
	def __init__(self, group):
		NormalWidgetClass.__init__(self, group)
		######
		hbox = gtk.HBox()
		label = gtk.Label(_('VCS Type'))
		label.set_alignment(0, 0.5)
		self.sizeGroup.add_widget(label)
		pack(hbox, label)
		self.vcsTypeCombo = gtk.ComboBoxText()
		for name in vcsModuleNames:
			self.vcsTypeCombo.append_text(name)## descriptive name FIXME
		pack(hbox, self.vcsTypeCombo)
		pack(self, hbox)
		######
		hbox = gtk.HBox()
		label = gtk.Label(_('Directory'))
		label.set_alignment(0, 0.5)
		self.sizeGroup.add_widget(label)
		pack(hbox, label)
		self.dirEntry = gtk.Entry()
		pack(hbox, self.dirEntry)
		##
		#self.dirBrowse = gtk.Button(_('Browse'))
		pack(self, hbox)
Exemple #10
0
 def __init__(self, group):
     NormalWidgetClass.__init__(self, group)
     ######
     hbox = gtk.HBox()
     label = gtk.Label(_("VCS Type"))
     label.set_alignment(0, 0.5)
     self.sizeGroup.add_widget(label)
     pack(hbox, label)
     self.vcsTypeCombo = gtk.ComboBoxText()
     for name in vcsModuleNames:
         self.vcsTypeCombo.append_text(name)  ## descriptive name FIXME
     pack(hbox, self.vcsTypeCombo)
     pack(self, hbox)
     ######
     hbox = gtk.HBox()
     label = gtk.Label(_("Directory"))
     label.set_alignment(0, 0.5)
     self.sizeGroup.add_widget(label)
     pack(hbox, label)
     self.dirEntry = gtk.Entry()
     pack(hbox, self.dirEntry)
     ##
     #self.dirBrowse = gtk.Button(_("Browse"))
     pack(self, hbox)