chriskiehl / Gooey

Turn (almost) any Python command line program into a full GUI application with one line

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`increment` field in `Slider` widget not working

mflova opened this issue · comments

commented

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()

I have the same problem. Have you solved it?

commented

I have the same problem. Have you solved it?

No. Not any news regarding this topic

Can I work on this issue?