示例#1
0
 def __init__(self,
              label_text=None,
              attribute_name=None,
              show_popup=True,
              history_name=None):
     Single.__init__(self, label_text)
     FaultyMixin.__init__(self, attribute_name, show_popup, history_name)
示例#2
0
 def __init__(self, fields, label_text=None, attribute_name=None, show_popup=True, history_name=None, show_field_popups=False):
     for field in fields:
         if isinstance(field, EditMixin):
             field.show_popup = show_field_popups
     Multiple.__init__(self, fields, label_text)
     FaultyMixin.__init__(self, attribute_name, show_popup, history_name)
     self.show_field_popups = show_field_popups
示例#3
0
 def write_to_widget(self, representation, original=False):
     if representation == ambiguous:
         for field in self.fields:
             field.write_to_widget(ambiguous, original)
     else:
         for index, field in enumerate(self.fields):
             field.write_to_widget(representation[index], original)
     FaultyMixin.write_to_widget(self, representation, original)
示例#4
0
 def write_to_widget(self, representation, original=False):
     if representation is ambiguous:
         for field in self.fields:
             field.write_to_widget(ambiguous, original)
     else:
         for index, field in enumerate(self.fields):
             field.write_to_widget(representation[index], original)
     FaultyMixin.write_to_widget(self, representation, original)
示例#5
0
 def create_widgets(self):
     for field in self.fields:
         field.on_widget_changed = self.on_widget_changed
         field.update_label = self.update_label
         field.changed = self.changed
         field.get_active = self.get_active
         # make the subfields also believe they are active
         field.instance = self.instance
         field.instances = self.instances
         field.create_widgets()
     Multiple.create_widgets(self)
     FaultyMixin.create_widgets(self)
示例#6
0
 def create_widgets(self):
     for field in self.fields:
         field.on_widget_changed = self.on_widget_changed
         field.update_label = self.update_label
         field.changed = self.changed
         field.get_active = self.get_active
         # make the subfields also believe they are active
         field.instance = self.instance
         field.instances = self.instances
         field.create_widgets()
     Multiple.create_widgets(self)
     FaultyMixin.create_widgets(self)
示例#7
0
 def __init__(self,
              fields,
              label_text=None,
              attribute_name=None,
              show_popup=True,
              history_name=None,
              show_field_popups=False):
     for field in fields:
         if isinstance(field, EditMixin):
             field.show_popup = show_field_popups
     Multiple.__init__(self, fields, label_text)
     FaultyMixin.__init__(self, attribute_name, show_popup, history_name)
     self.show_field_popups = show_field_popups
示例#8
0
 def write(self):
     FaultyMixin.write(self)
示例#9
0
 def write_multiplex(self):
     FaultyMixin.write_multiplex(self)
示例#10
0
 def write_multiplex(self):
     FaultyMixin.write_multiplex(self)
示例#11
0
 def read_multiplex(self):
     FaultyMixin.read_multiplex(self)
示例#12
0
 def __init__(self, label_text=None, attribute_name=None, show_popup=True, history_name=None):
     Single.__init__(self, label_text)
     FaultyMixin.__init__(self, attribute_name, show_popup, history_name)
示例#13
0
 def check(self):
     Multiple.check(self)
     FaultyMixin.check(self)
示例#14
0
 def destroy_widgets(self):
     Single.destroy_widgets(self)
     FaultyMixin.destroy_widgets(self)
示例#15
0
 def destroy_widgets(self):
     Multiple.destroy_widgets(self)
     FaultyMixin.destroy_widgets(self)
示例#16
0
 def applicable(self, instance):
     return FaultyMixin.applicable(self, instance)
示例#17
0
 def create_widgets(self):
     Single.create_widgets(self)
     FaultyMixin.create_widgets(self)
示例#18
0
 def read(self):
     FaultyMixin.read(self)
示例#19
0
 def set_sensitive(self, sensitive):
     FaultyMixin.set_sensitive(self, sensitive)
     Multiple.set_sensitive(self, sensitive)
示例#20
0
 def read_multiplex(self):
     FaultyMixin.read_multiplex(self)
示例#21
0
 def save_history(self, representations):
     FaultyMixin.save_history(self, representations)
     for field, representation in zip(self.fields, representations):
         field.save_history(representation)
示例#22
0
 def set_sensitive(self, sensitive):
     FaultyMixin.set_sensitive(self, sensitive)
     Single.set_sensitive(self, sensitive)
示例#23
0
 def check(self):
     Multiple.check(self)
     FaultyMixin.check(self)
示例#24
0
 def create_widgets(self):
     Single.create_widgets(self)
     FaultyMixin.create_widgets(self)
示例#25
0
 def set_sensitive(self, sensitive):
     FaultyMixin.set_sensitive(self, sensitive)
     Multiple.set_sensitive(self, sensitive)
示例#26
0
 def set_sensitive(self, sensitive):
     FaultyMixin.set_sensitive(self, sensitive)
     Single.set_sensitive(self, sensitive)
示例#27
0
 def applicable(self, instance):
     return FaultyMixin.applicable(self, instance)
示例#28
0
 def save_history(self, representations):
     FaultyMixin.save_history(self, representations)
     for field, representation in zip(self.fields, representations):
         field.save_history(representation)
示例#29
0
 def destroy_widgets(self):
     Single.destroy_widgets(self)
     FaultyMixin.destroy_widgets(self)
示例#30
0
 def destroy_widgets(self):
     Multiple.destroy_widgets(self)
     FaultyMixin.destroy_widgets(self)
示例#31
0
 def read(self):
     FaultyMixin.read(self)
示例#32
0
 def write(self):
     FaultyMixin.write(self)