changeset 3:77202b0e0f40

Added icon and added ignore pattern
author windel
date Sun, 18 Sep 2011 21:21:54 +0200
parents 3b3746aa28c4
children 0d5ef85b8698
files .hgignore data/lcfos.png ide/ide/ide.py
diffstat 3 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /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
+
Binary file data/lcfos.png has changed
--- 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')