class _TitleEditor ( Editor ): #-- Public Methods --------------------------------------------------------- def init ( self, parent ): """ Finishes initializing the editor by creating the underlying toolkit widget. """ self._control = ImageText( theme = self.factory.theme ) self.adapter = self._control.create_control( parent ) self.set_tooltip() def update_editor ( self ): """ Updates the editor when the object facet changes external to the editor. """ self._control.text = self.str_value #-- Facet Event Handlers --------------------------------------------------- @on_facet_set( 'factory:theme' ) def _theme_modified ( self ): self._control.theme = self.factory.theme
def init ( self, parent ): """ Finishes initializing the editor by creating the underlying toolkit widget. """ self._control = ImageText( theme = self.factory.theme ) self.adapter = self._control.create_control( parent ) self.set_tooltip()