from gi.repository import RB segmented_bar = RB.SegmentedBar(bar_height=value, show_labels=value, show_reflection=value)