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