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

Fix error when resizing font using scroll wheel in python 3.10+ #20

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

MHendricks
Copy link
Member

Checklist

  • I have read the CONTRIBUTING.md document
  • I formatted my changes with black
  • I linted my changes with flake8
  • I have added documentation regarding my changes where necessary
  • Any pre-existing tests continue to pass
  • Additional tests were made covering my changes

Types of Changes

  • Bugfix (change that fixes an issue)
  • New Feature (change that adds functionality)
  • Documentation Update (if none of the other choices apply)

Proposed Changes

The error being fixed:

Traceback (most recent call last):
  File "C:\blur\dev\preditor\preditor\gui\console.py", line 197, in wheelEvent
    self.window().wheelEvent(event)
  File "C:\blur\dev\preditor\preditor\gui\loggerwindow.py", line 529, in wheelEvent
    self.setFontSize(newSize)
  File "C:\blur\dev\preditor\preditor\gui\loggerwindow.py", line 584, in setFontSize
    font.setPointSize(newSize)
TypeError: setPointSize(self, a0: int): argument 1 has unexpected type 'float'

@MHendricks MHendricks merged commit 9372dd7 into main Aug 21, 2024
11 checks passed
@MHendricks MHendricks deleted the mikeh/font_resize_fix branch August 21, 2024 23:28
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

Successfully merging this pull request may close these issues.

1 participant