Skip to content

Conversation

@SayanDey322
Copy link

…thon 3.13/3.14

  • Change QtCore.Qt.black to QtGui.QColor('black') in DataType.COLOR and editor.py
  • Handle None datatype in key_item method

Purpose of PR?:

Fixes #

Does this PR introduce a breaking change?

If the changes in this PR are manually verified, list down the scenarios covered::

Additional information for reviewer? :
Mention if this PR is part of any design or a continuation of previous PRs

Does this PR results in some Documentation changes?
If yes, include the list of Documentation changes

Checklist:

  • Bug fix. Fixes #
  • New feature (Non-API breaking changes that adds functionality)
  • PR Title follows the convention of <type>: <subject>
  • Commit has unit tests

…thon 3.13/3.14

- Change QtCore.Qt.black to QtGui.QColor('black') in DataType.COLOR and editor.py
- Handle None datatype in key_item method
@SayanDey322
Copy link
Author

Hi please see I have tried to fix the issue. Merge this pull request

Copy link
Member

@ReimarBauer ReimarBauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are a way more colors used

I added the pixi configuration. This didn't solve it.

Because this problem is not covered by a test, we need one before solving this situation. By this it is easier to figure what for the fix is needed. But I assume there are already tests failing because of a change in py313 or a library which is dependent.

The tests here are not running in py313.

QtGui.QBrush(datatype.COLOR), QtCore.Qt.ForegroundRole)
if datatype:
key_item.setData(datatype.__class__.__name__, QtCore.Qt.ToolTipRole)
color = datatype.COLOR
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

color is unused

else:
key_item.setData("None", QtCore.Qt.ToolTipRole)
color = QtGui.QColor("black")
key_item.setData(QtGui.QBrush(color), QtCore.Qt.ForegroundRole)
Copy link
Member

@ReimarBauer ReimarBauer Jan 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interesting, looks similiar to Qt6 syntax. When was that changed?

from the pixi config we have in both setups the same pyqt.

source_model = self.json_model
# set default color
color = QtCore.Qt.black
color = QtGui.QColor("black")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the pyqt version has not changed between py3.12 and py3.13

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