Skip to content

RangeEdit#

RangeEdit widget

Available in backends:

Signals#

  • changed(object) - Emitted when the widget value changes.
  • label_changed(str) - Emitted when the widget label changes.
  • native_parent_changed(object) - Emitted with the backend widget when the widget parent changes.

RangeEdit #

Bases: _RangeOrSliceEdit[range]

A widget to represent a python range object, with start/stop/step.

A range object produces a sequence of integers from start (inclusive) to stop (exclusive) by step. range(i, j) produces i, i+1, i+2, ..., j-1. start defaults to 0, and stop is omitted! range(4) produces 0, 1, 2, 3. These are exactly the valid indices for a list of 4 elements. When step is given, it specifies the increment (or decrement).

Parameters:

  • start (int, default: 0 ) –

    The range start value, by default 0

  • stop (int, default: 10 ) –

    The range stop value, by default 10

  • step (int, default: 1 ) –

    The range step value, by default 1