Пример #1
0
 def __init__(self, **kwtraits):
     # Delay setting the bounds until after base class initialization
     if kwtraits.has_key("bounds"):
         bounds = kwtraits.pop("bounds")
     else:
         bounds = list(self.default_bounds)
     BasePlotFrame.__init__(self, **kwtraits)
     self.set_slot("center", OverlayPlotContainer(resizable="hv"))
     self.bounds = bounds
     return
Пример #2
0
    def __init__(self, **kwtraits):
        if kwtraits.has_key("bounds"):
            bounds = kwtraits.pop("bounds")
        else:
            bounds = list(self.default_bounds)
        BasePlotFrame.__init__(self, **kwtraits)

        # Create our plot containers
        self.set_slot("center", OverlayPlotContainer(resizable="hv"))
        self.set_slot("left", HPlotContainer(resizable="v"))
        self.set_slot("right", HPlotContainer(resizable="v"))
        self.set_slot("top", VPlotContainer(resizable="h"))
        self.set_slot("bottom", VPlotContainer(resizable="h"))

        self.bounds = bounds
        return
Пример #3
0
    def __init__(self, **kwtraits):
        if kwtraits.has_key("bounds"):
            bounds = kwtraits.pop("bounds")
        else:
            bounds = list(self.default_bounds)
        BasePlotFrame.__init__(self, **kwtraits)

        # Create our plot containers
        self.set_slot("center", OverlayPlotContainer(resizable="hv"))
        self.set_slot("left", HPlotContainer(resizable="v"))
        self.set_slot("right", HPlotContainer(resizable="v"))
        self.set_slot("top", VPlotContainer(resizable="h"))
        self.set_slot("bottom", VPlotContainer(resizable="h"))

        self.bounds = bounds
        return