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

HeadingText fixes #976

Merged
merged 3 commits into from
Jul 13, 2021
Merged

HeadingText fixes #976

merged 3 commits into from
Jul 13, 2021

Conversation

corranwebster
Copy link
Contributor

@corranwebster corranwebster commented Jul 13, 2021

Improvements and fixes for HeadingText:

  • aligns Qt _create_control with standard API
  • routes creation through create() call
  • makes widget creation in init() optional
  • deprecates automatic widget creation
  • makes appearance of Qt and Wx similar (deprecates background image for wx)
  • changes to text are dispatched on the ui thread
  • general clean-up and standardization
  • better testing
  • various other small fixes

- aligns Qt _create_control with standard API
- route creation throught create() call
- make widget creation in init() optional
- deprecate automatic widget creation
- various other small fixes
- appearance of Qt and Wx are similar
- changes to text are dispatched on the ui thread
- general clean-up and standardization
@rahulporuri rahulporuri requested review from rahulporuri and aaronayres35 and removed request for aaronayres35 July 13, 2021 11:38
Copy link
Contributor

@rahulporuri rahulporuri left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +47 to +51
warnings.warn(
"background images are no-longer supported for Wx and the "
"'image' trait will be removed in a future Pyface update",
PendingDeprecationWarning,
)
Copy link
Contributor

Choose a reason for hiding this comment

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

can you create an issue for this deprecation - and put it in the 8.0.0 milestone?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done #978

Comment on lines +61 to +66
warnings.warn(
"automatic widget creation is deprecated and will be removed "
"in a future Pyface version, use create=False and explicitly "
"call create() for future behaviour",
PendingDeprecationWarning,
)
Copy link
Contributor

Choose a reason for hiding this comment

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

same comment here regd an issue - and we can put this in the 8.0.0 milestone too if that makes sense.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is part of #729 (particularly the comment at the bottom about automatic creation in __init__).

But I don't want to add it to a milestone until all of them are dealt with (ie. if I don't get it done this week it might bet Pyface 9 where we finally get rid of them).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've added a comment to #729 which goes over the idea for the sequence of events needed to change the API safely.

@corranwebster corranwebster merged commit 2ab1d35 into master Jul 13, 2021
@corranwebster corranwebster deleted the enh/heading-text-fixes branch July 13, 2021 12:23
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