Example #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)
Example #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
Example #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)
Example #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)
Example #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)
Example #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)
Example #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
Example #8
0
 def write(self):
     FaultyMixin.write(self)
Example #9
0
 def write_multiplex(self):
     FaultyMixin.write_multiplex(self)
Example #10
0
 def write_multiplex(self):
     FaultyMixin.write_multiplex(self)
Example #11
0
 def read_multiplex(self):
     FaultyMixin.read_multiplex(self)
Example #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)
Example #13
0
 def check(self):
     Multiple.check(self)
     FaultyMixin.check(self)
Example #14
0
 def destroy_widgets(self):
     Single.destroy_widgets(self)
     FaultyMixin.destroy_widgets(self)
Example #15
0
 def destroy_widgets(self):
     Multiple.destroy_widgets(self)
     FaultyMixin.destroy_widgets(self)
Example #16
0
 def applicable(self, instance):
     return FaultyMixin.applicable(self, instance)
Example #17
0
 def create_widgets(self):
     Single.create_widgets(self)
     FaultyMixin.create_widgets(self)
Example #18
0
 def read(self):
     FaultyMixin.read(self)
Example #19
0
 def set_sensitive(self, sensitive):
     FaultyMixin.set_sensitive(self, sensitive)
     Multiple.set_sensitive(self, sensitive)
Example #20
0
 def read_multiplex(self):
     FaultyMixin.read_multiplex(self)
Example #21
0
 def save_history(self, representations):
     FaultyMixin.save_history(self, representations)
     for field, representation in zip(self.fields, representations):
         field.save_history(representation)
Example #22
0
 def set_sensitive(self, sensitive):
     FaultyMixin.set_sensitive(self, sensitive)
     Single.set_sensitive(self, sensitive)
Example #23
0
 def check(self):
     Multiple.check(self)
     FaultyMixin.check(self)
Example #24
0
 def create_widgets(self):
     Single.create_widgets(self)
     FaultyMixin.create_widgets(self)
Example #25
0
 def set_sensitive(self, sensitive):
     FaultyMixin.set_sensitive(self, sensitive)
     Multiple.set_sensitive(self, sensitive)
Example #26
0
 def set_sensitive(self, sensitive):
     FaultyMixin.set_sensitive(self, sensitive)
     Single.set_sensitive(self, sensitive)
Example #27
0
 def applicable(self, instance):
     return FaultyMixin.applicable(self, instance)
Example #28
0
 def save_history(self, representations):
     FaultyMixin.save_history(self, representations)
     for field, representation in zip(self.fields, representations):
         field.save_history(representation)
Example #29
0
 def destroy_widgets(self):
     Single.destroy_widgets(self)
     FaultyMixin.destroy_widgets(self)
Example #30
0
 def destroy_widgets(self):
     Multiple.destroy_widgets(self)
     FaultyMixin.destroy_widgets(self)
Example #31
0
 def read(self):
     FaultyMixin.read(self)
Example #32
0
 def write(self):
     FaultyMixin.write(self)