def changed(self, what): if not self.content: self.content = eListboxPythonStringContent() if self.source is not None: self.content.setList(self.source.list) self.downstream_elements.changed(what)
def changed(self, what): if not self.content: self.content = eListboxPythonStringContent() if self.source: self.content.setList(self.source.list) self.downstream_elements.changed(what)
def __init__(self, source): GUIComponent.__init__(self) self.l = eListboxPythonStringContent() self.list = source self.l.setList(self.list) self.l.setFont( gFont("Regular", 23)) self.l.setItemHeight(25)