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

PR: Add range spinbox and range widget classes #3

Merged
merged 4 commits into from
Oct 10, 2023

Conversation

jnsebgosselin
Copy link
Owner

Add the RangeSpinBox and RangeWidget classes :

class RangeSpinBox(QDoubleSpinBox):
    """
    A spinbox that allow to enter values that are lower or higher than the
    minimum and maximum value of the spinbox.

    When editing is finished, the value is corrected to the maximum if the
    value entered was above the maximum and to the minimum if it was below
    the minimum.
    """
class RangeWidget(QObject):
    """
    A Qt object that link two double spinboxes that can be used to define
    the start and end value of a range.

    The RangeWidget does not come with a layout and both the spinbox_start
    and spinbox_end must be added to a layout independently.
    """

@jnsebgosselin jnsebgosselin self-assigned this Oct 10, 2023
@jnsebgosselin jnsebgosselin merged commit a27b45b into main Oct 10, 2023
1 check passed
@jnsebgosselin jnsebgosselin added this to the 0.3.0 milestone Oct 10, 2023
@jnsebgosselin jnsebgosselin deleted the add_range_widget branch October 10, 2023 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant