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)
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.")
def destroy_widgets(self): TextViewMixin.destroy_widgets(self) Faulty.destroy_widgets(self)
def create_widgets(self): Faulty.create_widgets(self) TextViewMixin.create_widgets(self)
def convert_to_value(self, representation): return TextViewMixin.convert_to_value(self, representation)
def destroy_widgets(self): TextViewMixin.destroy_widgets(self) Edit.destroy_widgets(self)
def write_to_widget(self, representation, original=False): TextViewMixin.write_to_widget(self, representation) Edit.write_to_widget(self, representation, original)
def convert_to_representation(self, value): return TextViewMixin.convert_to_representation(self, value)
def create_widgets(self): Edit.create_widgets(self) TextViewMixin.create_widgets(self)
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)
def convert_to_representation(self, value): return TextViewMixin.convert_to_representation(self, value.code)
def read_from_widget(self): return TextViewMixin.read_from_widget(self)
def write_to_widget(self, representation, original=False): TextViewMixin.write_to_widget(self, representation) Faulty.write_to_widget(self, representation, original)