def init(self, parent): """ Finishes initializing the editor by creating the underlying toolkit widget. """ self._control = HeadingText(parent) self.control = self._control.control self.set_tooltip()
def heading_text(*args, **kw): """ Creates a Pyface HeadingText control. """ global HeadingText if HeadingText is None: from pyface.heading_text import HeadingText return HeadingText(*args, **kw)
def init(self, parent): """ Finishes initializing the editor by creating the underlying toolkit widget. """ self._control = HeadingText(None) self.control = self._control.control if self.factory.allow_selection: flags = (self.control.textInteractionFlags() | QtCore.Qt.TextSelectableByMouse) self.control.setTextInteractionFlags(flags) self.set_tooltip()