Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error trying to test the emulator on Windows #1

Open
mlinaje opened this issue May 23, 2023 · 1 comment
Open

Error trying to test the emulator on Windows #1

mlinaje opened this issue May 23, 2023 · 1 comment

Comments

@mlinaje
Copy link

mlinaje commented May 23, 2023

Traceback (most recent call last):
File "C:\Users\usuario2\Downloads\8086-emulator-master\ui\codeeditor.py", line 150, in paintEvent
self.codeEditor.lineNumberAreaPaintEvent(event)
File "C:\Users\usuario2\Downloads\8086-emulator-master\ui\codeeditor.py", line 52, in lineNumberAreaPaintEvent
painter.drawText(0, top, areaWidth - rightMargin,
TypeError: arguments did not match any overloaded call:
drawText(self, p: Union[QPointF, QPoint], s: str): argument 1 has unexpected type 'int'
drawText(self, rectangle: QRectF, flags: int, text: str): argument 1 has unexpected type 'int'
drawText(self, rectangle: QRect, flags: int, text: str): argument 1 has unexpected type 'int'
drawText(self, rectangle: QRectF, text: str, option: QTextOption = QTextOption()): argument 1 has unexpected type 'int'
drawText(self, p: QPoint, s: str): argument 1 has unexpected type 'int'
drawText(self, x: int, y: int, width: int, height: int, flags: int, text: str): argument 2 has unexpected type 'float'
drawText(self, x: int, y: int, s: str): argument 2 has unexpected type 'float'

Thanks in advance!

@linbaiwpi
Copy link

Traceback (most recent call last): File "C:\Users\usuario2\Downloads\8086-emulator-master\ui\codeeditor.py", line 150, in paintEvent self.codeEditor.lineNumberAreaPaintEvent(event) File "C:\Users\usuario2\Downloads\8086-emulator-master\ui\codeeditor.py", line 52, in lineNumberAreaPaintEvent painter.drawText(0, top, areaWidth - rightMargin, TypeError: arguments did not match any overloaded call: drawText(self, p: Union[QPointF, QPoint], s: str): argument 1 has unexpected type 'int' drawText(self, rectangle: QRectF, flags: int, text: str): argument 1 has unexpected type 'int' drawText(self, rectangle: QRect, flags: int, text: str): argument 1 has unexpected type 'int' drawText(self, rectangle: QRectF, text: str, option: QTextOption = QTextOption()): argument 1 has unexpected type 'int' drawText(self, p: QPoint, s: str): argument 1 has unexpected type 'int' drawText(self, x: int, y: int, width: int, height: int, flags: int, text: str): argument 2 has unexpected type 'float' drawText(self, x: int, y: int, s: str): argument 2 has unexpected type 'float'

Thanks in advance!

This is a known issue due to Python 3.10. You may downgrade your Python to 3.9. This issue will disappear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants