Gooey icon indicating copy to clipboard operation
Gooey copied to clipboard

`increment` field in `Slider` widget not working

Open mflova opened this issue 1 year ago • 3 comments

Using the gooey 1.0.81 , windows 10.

The increment feature does not change anything. It is always shifting by 1. I can see that there are some differences between the code and the docs:

  • README.md increment field seems to be defined for widget=Slider
  • When I go to the source code, I do not find any reference to increment keyword in Slider

Minimal example that reproduces the bug:

import argparse
from gooey import Gooey, GooeyParser

@Gooey
def main():
    parser = GooeyParser(description="Gooey Example with Slider")
    parser.add_argument("slider_value", widget="Slider", help="Select a value", gooey_options={"min": 0, "max": 100, "increment": 20})
    
    args = parser.parse_args()
    print("The selected value is:", args.slider_value)

if __name__ == '__main__':
    main()

mflova avatar Jun 30 '23 10:06 mflova

I have the same problem. Have you solved it?

RyanBin0126 avatar Sep 24 '23 14:09 RyanBin0126

I have the same problem. Have you solved it?

No. Not any news regarding this topic

mflova avatar Oct 13 '23 07:10 mflova

Can I work on this issue?

SarthakNikhal avatar Dec 12 '23 19:12 SarthakNikhal