示例#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
    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
 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
 def create_widgets(self):
     Faulty.create_widgets(self)
     TextViewMixin.create_widgets(self)