Beispiel #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)
Beispiel #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.")
Beispiel #3
0
 def destroy_widgets(self):
     TextViewMixin.destroy_widgets(self)
     Faulty.destroy_widgets(self)
Beispiel #4
0
 def create_widgets(self):
     Faulty.create_widgets(self)
     TextViewMixin.create_widgets(self)
Beispiel #5
0
 def convert_to_value(self, representation):
     return TextViewMixin.convert_to_value(self, representation)
Beispiel #6
0
 def destroy_widgets(self):
     TextViewMixin.destroy_widgets(self)
     Edit.destroy_widgets(self)
Beispiel #7
0
 def destroy_widgets(self):
     TextViewMixin.destroy_widgets(self)
     Faulty.destroy_widgets(self)
Beispiel #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.")
Beispiel #9
0
 def convert_to_value(self, representation):
     return TextViewMixin.convert_to_value(self, representation)
Beispiel #10
0
 def write_to_widget(self, representation, original=False):
     TextViewMixin.write_to_widget(self, representation)
     Edit.write_to_widget(self, representation, original)
Beispiel #11
0
 def convert_to_representation(self, value):
     return TextViewMixin.convert_to_representation(self, value)
Beispiel #12
0
 def destroy_widgets(self):
     TextViewMixin.destroy_widgets(self)
     Edit.destroy_widgets(self)
Beispiel #13
0
 def create_widgets(self):
     Edit.create_widgets(self)
     TextViewMixin.create_widgets(self)
Beispiel #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)
Beispiel #15
0
 def convert_to_representation(self, value):
     return TextViewMixin.convert_to_representation(self, value.code)
Beispiel #16
0
 def read_from_widget(self):
     return TextViewMixin.read_from_widget(self)
Beispiel #17
0
 def write_to_widget(self, representation, original=False):
     TextViewMixin.write_to_widget(self, representation)
     Faulty.write_to_widget(self, representation, original)
Beispiel #18
0
 def create_widgets(self):
     Edit.create_widgets(self)
     TextViewMixin.create_widgets(self)
Beispiel #19
0
 def read_from_widget(self):
     return TextViewMixin.read_from_widget(self)
Beispiel #20
0
 def create_widgets(self):
     Faulty.create_widgets(self)
     TextViewMixin.create_widgets(self)