Skip to content

SliceEdit#

SliceEdit 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.

SliceEdit #

Bases: _RangeOrSliceEdit[slice]

A widget to represent slice objects, with start/stop/step.

slice(stop) slice(start, stop[, step])

Slice objects may be used for extended slicing (e.g. a[0:10:2])

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