예제 #1
0
 def __init__(self, app, parent, doc):
     KTextBrowser.__init__(self, parent)
     self.setMimeSourceFactory(MimeSources())
     self.app = app
     self.db = app.db
     self.doc = doc(self.app)
     self.setNotifyClick(True)
예제 #2
0
 def __init__(self, parent=None):
     KTextBrowser.__init__(self, parent, None, True)
     self.setTextFormat(Qt.RichText)
     self.setFont(QFont("Sans", 9))
     def runAction(url):
         from lilykde import actions
         actions.runAction(url)
     QObject.connect(self, SIGNAL("urlClick(const QString&)"), runAction)
예제 #3
0
파일: widgets.py 프로젝트: joelsefus/paella
 def __init__(self, parent, name='BaseLogBrowser'):
     KTextBrowser.__init__(self, parent, name)
     self.setTextFormat(self.LogText)
     self.timer = QTimer(self)
     self.connect(self.timer, SIGNAL('timeout()'), self.update_logtext)
     self.resume_logging()
예제 #4
0
 def __init__(self, parent, docobject):
     KTextBrowser.__init__(self, parent)
     self.setMimeSourceFactory()
     self.app = get_application_pointer()
     self.doc = docobject(self.app)
     self.setNotifyClick(True)
예제 #5
0
 def __init__(self, parent, docobject):
     KTextBrowser.__init__(self, parent)
     self.setMimeSourceFactory()
     self.app = get_application_pointer()
     self.doc = docobject(self.app)
     self.setNotifyClick(True)
 def __init__(self, parent, name='InfoBrowser'):
     KTextBrowser.__init__(self, parent, name)
     self._init_common()
     self.setNotifyClick(True)
     self.dialog_parent = self
예제 #7
0
 def __init__(self, parent, name='BaseLogBrowser'):
     KTextBrowser.__init__(self, parent, name)
     self.setTextFormat(self.LogText)
     self.timer = QTimer(self)
     self.connect(self.timer, SIGNAL('timeout()'), self.update_logtext)
     self.resume_logging()