Esempio n. 1
0
 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()
Esempio n. 2
0
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)
Esempio n. 3
0
 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()