Skip to content

initialize the pressPos attribute with default value to prevent error#3177

Merged
j9ac9k merged 1 commit intopyqtgraph:masterfrom
PyMoDAQ:bugfix/DoclLabel_presspos
Oct 31, 2024
Merged

initialize the pressPos attribute with default value to prevent error#3177
j9ac9k merged 1 commit intopyqtgraph:masterfrom
PyMoDAQ:bugfix/DoclLabel_presspos

Conversation

@seb5g
Copy link
Copy Markdown
Contributor

@seb5g seb5g commented Oct 29, 2024

This will solve #2921

The pressPos attribute of the DockLabel object is not initialized in the init. Therefore when the mouse is hovering on a DockLabel it triggers an error. Adding a default value for this attribute in the init method solves it.

@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented Oct 31, 2024

Thanks for the PR @seb5g !

@j9ac9k j9ac9k merged commit eca66e7 into pyqtgraph:master Oct 31, 2024
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.

2 participants