mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-09 21:40:34 +01:00
Updated __init__.py
+ old imports are not affected by the new package structure.
This commit is contained in:
@@ -9,12 +9,31 @@ This is a simple plotting library for the wxPython Phoenix project.
|
||||
__version__ = "0.0.1"
|
||||
__updated__ = "2016-07-05"
|
||||
|
||||
# For those who still use ``from pakcage import *`` for some reason
|
||||
__all__ = [
|
||||
'PolyLine',
|
||||
'PolySpline',
|
||||
'PolyMarker',
|
||||
'PolyBars',
|
||||
'PolyHistogram',
|
||||
'BoxPlot',
|
||||
'PlotGraphics',
|
||||
'PlotCanvas',
|
||||
'PlotPrintout',
|
||||
]
|
||||
|
||||
# Expose items to the old API
|
||||
# Expose items so that the old API can still be used.
|
||||
# Old: import wx.lib.plot as wxplot
|
||||
# New: from wx.lib.plot import plot as wxplot
|
||||
|
||||
|
||||
|
||||
|
||||
__all__ = []
|
||||
from .plot import (
|
||||
PolyPoints,
|
||||
PolyLine,
|
||||
PolySpline,
|
||||
PolyMarker,
|
||||
PolyBars,
|
||||
PolyHistogram,
|
||||
BoxPlot,
|
||||
PlotGraphics,
|
||||
PlotCanvas,
|
||||
PlotPrintout,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user