-
Notifications
You must be signed in to change notification settings - Fork 44
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
Add an 'oldagg' backend pointing to kiva.agg #669
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# (C) Copyright 2005-2021 Enthought, Inc., Austin, TX | ||
# All rights reserved. | ||
# | ||
# This software is provided without warranty under the terms of the BSD | ||
# license included in LICENSE.txt and may be redistributed only under | ||
# the conditions described in the aforementioned license. The license | ||
# is also available online at http://www.enthought.com/licenses/BSD.txt | ||
# | ||
# Thanks for using Enthought open source! | ||
from .image import ( | ||
CompiledPath, font_metrics_provider, GraphicsContext, NativeScrollBar, | ||
Window | ||
) | ||
|
||
__all__ = [ | ||
"CompiledPath", "GraphicsContext", "NativeScrollBar", "Window", | ||
"font_metrics_provider" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# (C) Copyright 2005-2021 Enthought, Inc., Austin, TX | ||
# All rights reserved. | ||
# | ||
# This software is provided without warranty under the terms of the BSD | ||
# license included in LICENSE.txt and may be redistributed only under | ||
# the conditions described in the aforementioned license. The license | ||
# is also available online at http://www.enthought.com/licenses/BSD.txt | ||
# | ||
# Thanks for using Enthought open source! | ||
from .image import ( | ||
CompiledPath, font_metrics_provider, GraphicsContext, NativeScrollBar, | ||
Window | ||
) | ||
|
||
__all__ = [ | ||
"CompiledPath", "GraphicsContext", "NativeScrollBar", "Window", | ||
"font_metrics_provider" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# (C) Copyright 2005-2021 Enthought, Inc., Austin, TX | ||
# All rights reserved. | ||
# | ||
# This software is provided without warranty under the terms of the BSD | ||
# license included in LICENSE.txt and may be redistributed only under | ||
# the conditions described in the aforementioned license. The license | ||
# is also available online at http://www.enthought.com/licenses/BSD.txt | ||
# | ||
# Thanks for using Enthought open source! | ||
from .image import ( | ||
CompiledPath, font_metrics_provider, GraphicsContext, NativeScrollBar, | ||
Window | ||
) | ||
|
||
__all__ = [ | ||
"CompiledPath", "GraphicsContext", "NativeScrollBar", "Window", | ||
"font_metrics_provider" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# (C) Copyright 2005-2021 Enthought, Inc., Austin, TX | ||
# All rights reserved. | ||
# | ||
# This software is provided without warranty under the terms of the BSD | ||
# license included in LICENSE.txt and may be redistributed only under | ||
# the conditions described in the aforementioned license. The license | ||
# is also available online at http://www.enthought.com/licenses/BSD.txt | ||
# | ||
# Thanks for using Enthought open source! | ||
from kiva.image import ( | ||
CompiledPath, font_metrics_provider, FontType, GraphicsContext, | ||
GraphicsContextSystem, Image | ||
) | ||
|
||
__all__ = [ | ||
"CompiledPath", "font_metrics_provider", "FontType", "GraphicsContext", | ||
"GraphicsContextSystem", "Image" | ||
] |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this is similar to Rahul's question, but why do we pull from
.image
not.agg
in these?Because if we eventually have image point to celiagg, then oldagg effectively becomes an alias for celiagg not agg?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.agg
doesn't exist. That's what.image
is. It'skiva.agg
. When.image
points to celiagg, this module will be filled with the old contents of.image
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am still a little confused. how does the code in
kiva/image.py
work then as it seems to just import from.agg
, see:enable/kiva/image.py
Line 19 in fe462b8
My understanding was that image was basically just an alias pointing at agg, and it would move to point to celiagg in the future (ie those imports change to
.celiagg
).If the image contents are going to eventually be moved into these oldagg modules when
.image
points to celiagg that makes sense. But the image contents seem to be pulling from.agg
so it would make sense to me if these files effectively just copied that code over now rather than later?I believe I am still missing something
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. We're talking past each other a little bit here.
.image
is very ambiguous here. Are you talking aboutkiva.image
,enable.null.image
,enable.qt4.image
, orenable.wx.image
? When you make a comment on the fileenable.null.oldagg
and use the name.image
, then I'm sure you're talking aboutenable.null.image
. I'm also sure that.agg
does not exist in this context, because there is no such thing asenable.null.agg
.I guess I thought it would be simpler to just have these new
oldagg
modules get their imports directly from theirimage
neighbors on the odd chance that animage
module gets updated before the celiagg switchover.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ahhh I see, my mistake, that makes sense now
thank you!