Mercurial > lcfOS
diff python/ide/disasm.py @ 333:dcae6574c974
Increment to qt5
author | Windel Bouwman |
---|---|
date | Sun, 09 Feb 2014 15:27:57 +0100 |
parents | 917eab04b8b7 |
children |
line wrap: on
line diff
--- a/python/ide/disasm.py Fri Feb 07 12:51:55 2014 +0100 +++ b/python/ide/disasm.py Sun Feb 09 15:27:57 2014 +0100 @@ -1,9 +1,8 @@ -from PyQt4.QtCore import * -from PyQt4.QtGui import * import binascii +from qtwrapper import QtGui, QtCore, QtWidgets, Qt -class DisAsmModel(QAbstractTableModel): +class DisAsmModel(QtCore.QAbstractTableModel): def __init__(self): super().__init__() self.outs = None @@ -16,7 +15,7 @@ def rowCount(self, parent): return len(self.instructions) - + def columnCount(self, parent): return len(self.headers) @@ -31,13 +30,13 @@ def headerData(self, section, orientation, role): if orientation == Qt.Horizontal and role == Qt.DisplayRole: return self.headers[section] - + def setInstructions(self, ins): self.instructions = ins self.modelReset.emit() - + -class Disassembly(QTableView): +class Disassembly(QtWidgets.QTableView): def __init__(self): super().__init__() self.dm = DisAsmModel()