X-Git-Url: https://harishankar.org/repos/?p=biaweb_qt.git;a=blobdiff_plain;f=article_dialog.py;h=6b51e705dc93942a207ec9b46a2384be744d542e;hp=3923a26bb18a966b1a7da76b711d924dab1f309b;hb=54389d5adbbb1830a7e85545b2bdde816713a272;hpb=592798cba4152c0726edeb629da48cc8ac23a3a3 diff --git a/article_dialog.py b/article_dialog.py index 3923a26..6b51e70 100644 --- a/article_dialog.py +++ b/article_dialog.py @@ -9,6 +9,8 @@ class ArticleDialog (PyQt4.QtGui.QDialog, ui_article_dialog.Ui_ArticleDialog): def __init__ (self, parent): PyQt4.QtGui.QDialog.__init__ (self, parent) self.setupUi (self) + # set window to be able to be maximized or minimized + self.setWindowFlags (PyQt4.QtCore.Qt.Window) # set the code highlighter to the document self.hltext = highlighter.SimpleHtmlHighlighter (self.content.document ()) @@ -111,13 +113,13 @@ class ArticleDialog (PyQt4.QtGui.QDialog, ui_article_dialog.Ui_ArticleDialog): # get a list of items in numbered or bulleted list def insert_list_items (self, numbered = False): - if numbered == True: + if numbered: title = "Numbered list" - otag = "
    \n" + otag = "\n
      \n" ctag = "
    \n" else: title = "Bulleted list" - otag = "