Skip to content

same_line layout utility #8

@mottosso

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

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