comparison python/astviewer.py @ 207:8b2f20aae086

cleaning of files
author Windel Bouwman
date Sat, 29 Jun 2013 10:05:42 +0200
parents ee0d30533dae
children 57c032c5e753
comparison
equal deleted inserted replaced
206:6c6bf8890d8a 207:8b2f20aae086
2 from PyQt4.QtGui import * 2 from PyQt4.QtGui import *
3 from c3 import Visitor, astnodes 3 from c3 import Visitor, astnodes
4 4
5 class AstModelBuilder: 5 class AstModelBuilder:
6 def __init__(self): 6 def __init__(self):
7 self.functionIco = QIcon(QPixmap('functionicon.png').scaled(32, 32)) 7 self.functionIco = QIcon(QPixmap('icons/functionicon.png').scaled(32, 32))
8 self.variableIco = QIcon(QPixmap('variableicon.png').scaled(32, 32)) 8 self.variableIco = QIcon(QPixmap('icons/variableicon.png').scaled(32, 32))
9 self.visitor = Visitor(self.p1, self.p2) 9 self.visitor = Visitor(self.p1, self.p2)
10 self.model = QStandardItemModel() 10 self.model = QStandardItemModel()
11 self.model.setHorizontalHeaderLabels(['Object', 'Type']) 11 self.model.setHorizontalHeaderLabels(['Object', 'Type'])
12 def build(self, pkg): 12 def build(self, pkg):
13 #self.model.clear() 13 #self.model.clear()