Updated __init__.py

+ old imports are not affected by the new package structure.
This commit is contained in:
Douglas Thor
2016-07-05 15:25:11 -07:00
parent e80aa821bb
commit 91c85b24a9

View File

@@ -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,
)