Skip to content

same_line layout utility #8

Description

@mottosso

Spread out widgets horizontally with qargparse.QArgumentParser.same_line().

image

parser = qargparse.QArgumentParser()

parser.add_argument("timeRange", type=qargparse.Enum, items=[
    "Start/End",
    "Time Slider",
    "From File",
], default=2, help="Which part of the animation to import")

# Place the next widget on the same line as the previous
parser.same_line()

parser.add_argument(
    "sourceStartTime",
    type=qargparse.Integer,
    max=999999,
    default=1,
    help="From where in the input animation to read from"
)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions