Example #1
0
 def __init__(self, rule):
     self.rule = rule
     #####
     gtk.HBox.__init__(self)
     ###
     combo = gtk.combo_box_new_text()
     for item in rule.wmIndexNames:
         combo.append_text(item)
     self.pack_start(combo, 0, 0)
     self.nthCombo = combo
     ###
     combo = WeekDayComboBox()
     self.pack_start(combo, 0, 0)
     self.weekDayCombo = combo
     ###
     self.pack_start(gtk.Label(_(" of ")), 0, 0)
     ###
     combo = MonthComboBox()
     combo.build(rule.getMode())
     self.pack_start(combo, 0, 0)
     self.monthCombo = combo
Example #2
0
 def __init__(self, rule):
     self.rule = rule
     #####
     gtk.HBox.__init__(self)
     ###
     combo = gtk.combo_box_new_text()
     for item in rule.wmIndexNames:
         combo.append_text(item)
     pack(self, combo)
     self.nthCombo = combo
     ###
     combo = WeekDayComboBox()
     pack(self, combo)
     self.weekDayCombo = combo
     ###
     pack(self, gtk.Label(_(' of ')))
     ###
     combo = MonthComboBox(True)
     combo.build(rule.getMode())
     pack(self, combo)
     self.monthCombo = combo