Skip to content

Commit

Permalink
Remove alignment kwarg for compatibility with older PyQt4
Browse files Browse the repository at this point in the history
  • Loading branch information
tonysyu committed May 26, 2013
1 parent 3baa7fe commit a49502a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions skimage/viewer/widgets/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ def __init__(self, name, low=0.0, high=1.0, value=None, value_type='float',
self.editbox.setAlignment(align_value)
self.editbox.editingFinished.connect(self._on_editbox_changed)

self.layout.addWidget(self.name_label, alignment=align_text)
self.layout.addWidget(self.slider, alignment=alignment)
self.layout.addWidget(self.editbox, alignment=align_value)
self.layout.addWidget(self.name_label)
self.layout.addWidget(self.slider)
self.layout.addWidget(self.editbox)

def _on_slider_changed(self):
"""Call callback function with slider's name and value as parameters"""
Expand Down

0 comments on commit a49502a

Please sign in to comment.