def __init__(self, parent):
     KHTMLPart.__init__(self, parent, 'TestTextBrowser')
     self.current = 'filenew.png'
     self.setDocument()
     # KHTMLPart is QObject, not QWidget
     # need to put parent (splitter) here
     self.splitter = parent
 def __init__(self, parent, name='AbandonPart'):
     KHTMLPart.__init__(self, parent, name)
     self.app = get_application_pointer()
     self.doc  = AbandoniaInfoDocument(self.app)
     self.handler = AbandonGamesHandler(self.app)
     self.begin()
     self.write('')
     self.end()
Пример #3
0
	def __init__(self, parentWidget, window):
		"""Initialises a new KTVHTMLPart object.  Requires the same
		arguments as KHTMLPart, plus the parent window it will attach to."""
		KHTMLPart.__init__(self, parentWidget)
		self._window = window
		
		QObject.connect(self.browserExtension(), SIGNAL('openURLRequestDelayed(const KURL&, const KParts::URLArgs&)'), self._openURLRequest)
		
		self.__lastURL = None
		self.__currentURL = None
		self.setFormNotification(self.NoNotification)
 def __init__(self, parent, name='InfoPart'):
     KHTMLPart.__init__(self, parent, name)
     self._init_common()
     # we need to make a parent for the dialogs
     # the KHTMLPart does not work for this as it
     # is derived from QObject and not QWidget
     self._widget = QWidget(None, 'dialog_parent')
     self.dialog_parent = self._widget
     # start a blank page
     self.begin()
     self.write('')
     self.end()
Пример #5
0
 def __init__(self, parent, name='BaseInfoPart'):
     KHTMLPart.__init__(self, parent, name)
     HasDialogs.__init__(self)
     self.app = get_application_pointer()
     self.dialog_parent = QWidget(self.parent(), 'dialog_parent')