Skip to content

Commit

Permalink
move new "direction" argument to end of list in case someone uses old…
Browse files Browse the repository at this point in the history
… interface to make the call.
  • Loading branch information
butlerpd committed Jan 18, 2024
1 parent 36d0918 commit ebe6494
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sas/qtgui/Plotting/Slicers/BoxSlicer.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class BoxInteractor(BaseInteractor, SlicerModel):
function of Q_x and BoxInteractorY averages all the points from
-x to +x as a function of Q_y
"""
def __init__(self, base, axes, item=None, color='black', direction=None,zorder=3):
def __init__(self, base, axes, item=None, color='black', zorder=3, direction=None):
BaseInteractor.__init__(self, base, axes, color=color)
SlicerModel.__init__(self)
# Class initialization
Expand Down Expand Up @@ -776,7 +776,7 @@ class BoxInteractorX(BoxInteractor):
"""

def __init__(self, base, axes, item=None, color='black', zorder=3):
BoxInteractor.__init__(self, base, axes, item=item, direction="X",color=color)
BoxInteractor.__init__(self, base, axes, item=item, color=color, direction="X")
self.base = base
super()._post_data()

Expand Down Expand Up @@ -810,7 +810,7 @@ class BoxInteractorY(BoxInteractor):
"""

def __init__(self, base, axes, item=None, color='black', zorder=3):
BoxInteractor.__init__(self, base, axes, item=item, direction="Y", color=color)
BoxInteractor.__init__(self, base, axes, item=item, color=color, direction="Y")
self.base = base
super()._post_data()

Expand Down

0 comments on commit ebe6494

Please sign in to comment.