Exemplo n.º 1
0
 def __init__(self,
              label_text=None,
              attribute_name=None,
              show_popup=True,
              history_name=None,
              width=250,
              height=300):
     Faulty.__init__(self, label_text, attribute_name, show_popup,
                     history_name)
     TextViewMixin.__init__(self, width, height)
Exemplo n.º 2
0
    def convert_to_value(self, representation):
        from zeobuilder.expressions import Expression as E

        try:
            return E(TextViewMixin.convert_to_value(self, representation))
        except SyntaxError:
            raise ValueError("There is a syntax error in the expression.")
Exemplo n.º 3
0
 def destroy_widgets(self):
     TextViewMixin.destroy_widgets(self)
     Faulty.destroy_widgets(self)
Exemplo n.º 4
0
 def create_widgets(self):
     Faulty.create_widgets(self)
     TextViewMixin.create_widgets(self)
Exemplo n.º 5
0
 def convert_to_value(self, representation):
     return TextViewMixin.convert_to_value(self, representation)
Exemplo n.º 6
0
 def destroy_widgets(self):
     TextViewMixin.destroy_widgets(self)
     Edit.destroy_widgets(self)
Exemplo n.º 7
0
 def destroy_widgets(self):
     TextViewMixin.destroy_widgets(self)
     Faulty.destroy_widgets(self)
Exemplo n.º 8
0
 def convert_to_value(self, representation):
     from zeobuilder.expressions import Expression as E
     try:
         return E(TextViewMixin.convert_to_value(self, representation))
     except SyntaxError:
         raise ValueError("There is a syntax error in the expression.")
Exemplo n.º 9
0
 def convert_to_value(self, representation):
     return TextViewMixin.convert_to_value(self, representation)
Exemplo n.º 10
0
 def write_to_widget(self, representation, original=False):
     TextViewMixin.write_to_widget(self, representation)
     Edit.write_to_widget(self, representation, original)
Exemplo n.º 11
0
 def convert_to_representation(self, value):
     return TextViewMixin.convert_to_representation(self, value)
Exemplo n.º 12
0
 def destroy_widgets(self):
     TextViewMixin.destroy_widgets(self)
     Edit.destroy_widgets(self)
Exemplo n.º 13
0
 def create_widgets(self):
     Edit.create_widgets(self)
     TextViewMixin.create_widgets(self)
Exemplo n.º 14
0
 def __init__(self, label_text=None, attribute_name=None, show_popup=True, history_name=None, width=250, height=300):
     Edit.__init__(self, label_text, attribute_name, show_popup, history_name)
     TextViewMixin.__init__(self, width, height)
Exemplo n.º 15
0
 def convert_to_representation(self, value):
     return TextViewMixin.convert_to_representation(self, value.code)
Exemplo n.º 16
0
 def read_from_widget(self):
     return TextViewMixin.read_from_widget(self)
Exemplo n.º 17
0
 def write_to_widget(self, representation, original=False):
     TextViewMixin.write_to_widget(self, representation)
     Faulty.write_to_widget(self, representation, original)
Exemplo n.º 18
0
 def create_widgets(self):
     Edit.create_widgets(self)
     TextViewMixin.create_widgets(self)
Exemplo n.º 19
0
 def read_from_widget(self):
     return TextViewMixin.read_from_widget(self)
Exemplo n.º 20
0
 def create_widgets(self):
     Faulty.create_widgets(self)
     TextViewMixin.create_widgets(self)