Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

forms.ask_for_number_slider ignores min and max values #1720

Closed
mawdesign opened this issue Feb 2, 2023 · 44 comments
Closed

forms.ask_for_number_slider ignores min and max values #1720

mawdesign opened this issue Feb 2, 2023 · 44 comments
Labels
Bug Bug that stops user from using the tool or a major portion of pyRevit functionality [class] Prioritize The issue is planned to be resolved in the next version Tools Issues related to pyRevit commands [subsystem]

Comments

@mawdesign
Copy link

My code below opens a slider with the correct default value but the min remains at 0 and the max remains at the default of 100, the minimum should be 1 and the maximum should be 400 - I definitely need to be able to get values greater than 100 returned.

default_width = 75.0
width = forms.ask_for_number_slider(default = default_width, min = 1, max = 400, prompt = "Width:", title = "Set Width")

I did find that setting default width to 75 failed as the default is only applied if the value is a float, not an integer. If it would accept an integer as well that would be great.

Using Revit 2021.1.7, and pyRevit 4.8.12

References:
https://pyrevit.readthedocs.io/en/latest/pyrevit/forms.html#pyrevit.forms.ask_for_number_slider
https://github.com/eirannejad/pyRevit/blob/master/pyrevitlib/pyrevit/forms/__init__.py#L1231

@jmcouffin jmcouffin added Bug Bug that stops user from using the tool or a major portion of pyRevit functionality [class] Prioritize The issue is planned to be resolved in the next version Tools Issues related to pyRevit commands [subsystem] labels Feb 2, 2023
@alexdaversa
Copy link
Contributor

@mawdesign please see the PR i just submitted for resolution of this issue. You should be able to make the change to your installation until a new installer is released.

jmcouffin added a commit that referenced this issue Mar 24, 2023
Added additional configuration options for numberSlider per issue #1720
@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23083+1548-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23083+1609-wip

@github-actions
Copy link
Contributor

github-actions bot commented Apr 2, 2023

📦 New work-in-progress (wip) builds are available for 4.8.13.23092+1345-wip

@github-actions
Copy link
Contributor

github-actions bot commented Apr 3, 2023

📦 New work-in-progress (wip) builds are available for 4.8.13.23093+1230-wip

@github-actions
Copy link
Contributor

github-actions bot commented Apr 6, 2023

📦 New work-in-progress (wip) builds are available for 4.8.13.23096+0757-wip

@github-actions
Copy link
Contributor

github-actions bot commented Apr 6, 2023

📦 New work-in-progress (wip) builds are available for 4.8.13.23096+0908-wip

@github-actions
Copy link
Contributor

github-actions bot commented Apr 6, 2023

📦 New work-in-progress (wip) builds are available for 4.8.13.23096+0944-wip

@github-actions
Copy link
Contributor

github-actions bot commented Apr 6, 2023

📦 New work-in-progress (wip) builds are available for 4.8.13.23096+2210-wip

@github-actions
Copy link
Contributor

github-actions bot commented Apr 7, 2023

📦 New work-in-progress (wip) builds are available for 4.8.13.23097+1931-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23104+0950-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23108+1109-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23110+0800-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23111+0822-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23114+0751-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23114+0900-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23117+1019-wip

@github-actions
Copy link
Contributor

github-actions bot commented May 2, 2023

📦 New work-in-progress (wip) builds are available for 4.8.13.23122+0740-wip

@github-actions
Copy link
Contributor

github-actions bot commented May 6, 2023

📦 New work-in-progress (wip) builds are available for 4.8.13.23126+1635-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23131+1009-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23137+0756-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23137+0809-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23139+0632-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23144+0857-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23144+0943-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23144+0957-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23144+1030-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23161+1332-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23163+0849-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23163+0858-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23163+0910-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23163+0908-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23163+1046-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23163+1150-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23163+1153-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23164+0946-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23165+1014-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23166+0843-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23170+0833-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23170+1018-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23170+1041-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23177+1038-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23181+1652-wip

@github-actions
Copy link
Contributor

github-actions bot commented Jul 1, 2023

📦 New public release are available for 4.8.13.23182+2215

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug that stops user from using the tool or a major portion of pyRevit functionality [class] Prioritize The issue is planned to be resolved in the next version Tools Issues related to pyRevit commands [subsystem]
Projects
None yet
Development

No branches or pull requests

3 participants