chriskiehl / Gooey

Turn (almost) any Python command line program into a full GUI application with one line
MIT License
20.69k stars 1.02k forks source link

`increment` field in `Slider` widget not working #885

Open mflova opened 1 year ago

mflova commented 1 year ago

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:

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()
RyanBin0126 commented 1 year ago

I have the same problem. Have you solved it?

mflova commented 1 year ago

I have the same problem. Have you solved it?

No. Not any news regarding this topic

SarthakNikhal commented 11 months ago

Can I work on this issue?