Skip to content

Commit

Permalink
_imgui_cv_zoom: Update slider_float call for imgui v1.78+
Browse files Browse the repository at this point in the history
  • Loading branch information
cubicibo committed Apr 4, 2022
1 parent a2c9d52 commit 51e44e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imgui_datascience/_imgui_cv_zoom.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,11 @@ def show_zoom_button(name, action, same_line=True):
imgui.push_item_width(80)
# noinspection PyArgumentList
changed, im.image_adjustments.factor = imgui.slider_float(
imgui_ext.make_unique_label("k"), im.image_adjustments.factor, 0., 32., format="%.3f", power=5.)
imgui_ext.make_unique_label("k"), im.image_adjustments.factor, 0., 32., format="%.3f", flags=1<<4)
imgui.same_line()
imgui.push_item_width(80)
changed, im.image_adjustments.delta = imgui.slider_float(
imgui_ext.make_unique_label("delta"), im.image_adjustments.delta, 0., 255., format="%.3f", power=5.)
imgui_ext.make_unique_label("delta"), im.image_adjustments.delta, 0., 255., format="%.3f", flags=1<<4)
imgui.same_line()
if not im.image_adjustments.is_none():
if imgui.small_button(imgui_ext.make_unique_label("reset")):
Expand Down

0 comments on commit 51e44e6

Please sign in to comment.