X-Git-Url: https://harishankar.org/repos/?p=biaweb_qt.git;a=blobdiff_plain;f=article_dialog.py;h=ddd9d18051eaa1b920fc85640695149901cde9a0;hp=02c07711f50c1e37919e534efef078cd1b73a346;hb=a17e899ab18f129ecc6e894e8b2ddc3322aef6f8;hpb=3b4711c41851510b83c2c442bd6a00ee387c1bfb diff --git a/article_dialog.py b/article_dialog.py index 02c0771..ddd9d18 100644 --- a/article_dialog.py +++ b/article_dialog.py @@ -1,13 +1,16 @@ # BiaWeb Website content manager (c) 2010 V.Harishankar -# Category dialog class +# Article dialog class import PyQt4 import ui_article_dialog +import highlighter class ArticleDialog (PyQt4.QtGui.QDialog, ui_article_dialog.Ui_ArticleDialog): def __init__ (self, parent): PyQt4.QtGui.QDialog.__init__ (self, parent) self.setupUi (self) + # set the code highlighter to the document + self.hltext = highlighter.SimpleHtmlHighlighter (self.content.document ()) # when rejected, confirm first def reject (self):