예제 #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)
예제 #2
0
파일: faulty.py 프로젝트: mszep/zeobuilder
    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.")
예제 #3
0
 def destroy_widgets(self):
     TextViewMixin.destroy_widgets(self)
     Faulty.destroy_widgets(self)
예제 #4
0
 def create_widgets(self):
     Faulty.create_widgets(self)
     TextViewMixin.create_widgets(self)
예제 #5
0
 def convert_to_value(self, representation):
     return TextViewMixin.convert_to_value(self, representation)
예제 #6
0
 def destroy_widgets(self):
     TextViewMixin.destroy_widgets(self)
     Edit.destroy_widgets(self)
예제 #7
0
파일: faulty.py 프로젝트: mszep/zeobuilder
 def destroy_widgets(self):
     TextViewMixin.destroy_widgets(self)
     Faulty.destroy_widgets(self)
예제 #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.")
예제 #9
0
파일: edit.py 프로젝트: molmod/zeobuilder
 def convert_to_value(self, representation):
     return TextViewMixin.convert_to_value(self, representation)
예제 #10
0
파일: edit.py 프로젝트: molmod/zeobuilder
 def write_to_widget(self, representation, original=False):
     TextViewMixin.write_to_widget(self, representation)
     Edit.write_to_widget(self, representation, original)
예제 #11
0
파일: edit.py 프로젝트: molmod/zeobuilder
 def convert_to_representation(self, value):
     return TextViewMixin.convert_to_representation(self, value)
예제 #12
0
파일: edit.py 프로젝트: molmod/zeobuilder
 def destroy_widgets(self):
     TextViewMixin.destroy_widgets(self)
     Edit.destroy_widgets(self)
예제 #13
0
파일: edit.py 프로젝트: molmod/zeobuilder
 def create_widgets(self):
     Edit.create_widgets(self)
     TextViewMixin.create_widgets(self)
예제 #14
0
파일: edit.py 프로젝트: molmod/zeobuilder
 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)
예제 #15
0
 def convert_to_representation(self, value):
     return TextViewMixin.convert_to_representation(self, value.code)
예제 #16
0
파일: edit.py 프로젝트: molmod/zeobuilder
 def read_from_widget(self):
     return TextViewMixin.read_from_widget(self)
예제 #17
0
 def write_to_widget(self, representation, original=False):
     TextViewMixin.write_to_widget(self, representation)
     Faulty.write_to_widget(self, representation, original)
예제 #18
0
 def create_widgets(self):
     Edit.create_widgets(self)
     TextViewMixin.create_widgets(self)
예제 #19
0
 def read_from_widget(self):
     return TextViewMixin.read_from_widget(self)
예제 #20
0
파일: faulty.py 프로젝트: mszep/zeobuilder
 def create_widgets(self):
     Faulty.create_widgets(self)
     TextViewMixin.create_widgets(self)