# HG changeset patch # User windel # Date 1316373714 -7200 # Node ID 77202b0e0f4063f0a1d60796e86752c76617cb20 # Parent 3b3746aa28c4efe4d119c0972587733f7a832448 Added icon and added ignore pattern diff -r 3b3746aa28c4 -r 77202b0e0f40 .hgignore --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.hgignore Sun Sep 18 21:21:54 2011 +0200 @@ -0,0 +1,5 @@ + +syntax: glob + +*.pyc + diff -r 3b3746aa28c4 -r 77202b0e0f40 data/lcfos.png Binary file data/lcfos.png has changed diff -r 3b3746aa28c4 -r 77202b0e0f40 ide/ide/ide.py --- a/ide/ide/ide.py Sun Sep 18 20:04:20 2011 +0200 +++ b/ide/ide/ide.py Sun Sep 18 21:21:54 2011 +0200 @@ -3,6 +3,7 @@ # ide components: from .codeeditor import CodeEdit from .astviewer import AstViewer +import base64 source = """ module x; @@ -15,6 +16,8 @@ end x. """ +lcfospng = base64.decodestring(b'iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A\n/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJEhMKBk7B678AAAA/SURBVFjD\n7dbBCQAgDATBi9h/y7EFA4Kf2QLCwH1S6XQu6sqoujublc8BAAAAAAAAAAB8B+zXT6YJAAAAAKYd\nWSgFQNUyijIAAAAASUVORK5CYII=\n') + class BuildOutput(QTextEdit): """ Build output component """ def __init__(self, parent=None): @@ -27,6 +30,9 @@ def __init__(self, parent=None): super(Ide, self).__init__(parent) self.setWindowTitle('LCFOS IDE') + icon = QPixmap() + icon.loadFromData(lcfospng) + self.setWindowIcon(QIcon(icon)) # Create menus: self.viewMenu = self.menuBar().addMenu('View')