Skip to content

Remove old deprecated drawing methods#814

Merged
aaronayres35 merged 1 commit into
masterfrom
remove-deprecated-draw-methods
May 18, 2021
Merged

Remove old deprecated drawing methods#814
aaronayres35 merged 1 commit into
masterfrom
remove-deprecated-draw-methods

Conversation

@aaronayres35
Copy link
Copy Markdown
Contributor

closes #794
closes #781

This PR removes the _draw_component methods on Container/Component as well as the _draw_overlays (note _draw_overlay is still around) and _draw_children methods on container.

Copy link
Copy Markdown
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 thread enable/container.py
with gc:
gc.set_antialias(False)

self._draw_container(gc, mode)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks like this can also be removed because there are newer methods _draw_container_* where * is the respective layer.

Note that Scrolled._draw makes use of this _draw_container but at the moment, _draw_container doesn't do anything

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I haven't verified that _draw_container can actually be removed - that was just my hunch given the brief amount of time spent reviewing this PR. You'll want to check chaco as well and handle this in a separate PR

@aaronayres35 aaronayres35 merged commit 906fe9d into master May 18, 2021
@aaronayres35 aaronayres35 deleted the remove-deprecated-draw-methods branch May 18, 2021 12:01
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.

Remove deprecated draw methods in "Component" and "Container" Can "_draw_component" methods be removed?

2 participants