

def init(self, parent):
    ' Finishes initializing the editor by creating the underlying toolkit\n            widget.\n        '
    self.control = QtWebKit.QWebView()
    self.control.setSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
    if self.factory.open_externally:
        page = self.control.page()
        page.setLinkDelegationPolicy(QtWebKit.QWebPage.DelegateAllLinks)
        signal = QtCore.SIGNAL('linkClicked(QUrl)')
        QtCore.QObject.connect(page, signal, self._link_clicked)
    self.base_url = self.factory.base_url
    self.sync_value(self.factory.base_url_name, 'base_url', 'from')

dataset/ETHPy150Open enthought/traitsui/traitsui/qt4/html_editor.py SimpleEditor.init/original