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 write_to_widget(self, representation, original=False): #print self, representation if representation is ambiguous: representation = "" self.entry.set_text(representation) Faulty.write_to_widget(self, representation, original)
def destroy_widgets(self): self.entry = None Faulty.destroy_widgets(self)
def create_widgets(self): Faulty.create_widgets(self) self.entry = gtk.Entry() self.entry.connect("changed", self.on_widget_changed) self.entry.set_activates_default(True) self.data_widget = self.entry
def write_to_widget(self, representation, original=False): TextViewMixin.write_to_widget(self, representation) Faulty.write_to_widget(self, representation, original)
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 write_to_widget(self, representation, original=False): # print self, representation if representation is ambiguous: representation = "" self.entry.set_text(representation) Faulty.write_to_widget(self, representation, original)