Toggle button for Tools panel

Hello I’ve made rig panel for my rig to display and control layers visibility and custom properties. I want my ‘switch_constraints’ property to have toggle button instead of slider. How i do that? Please help! I am new to blender Python. :slight_smile:

class Body_properties(Panel):
    bl_space_type = 'VIEW_3D'
    bl_region_type = 'TOOLS'
    bl_label = "Body Properties"
    bl_category = "Rig Panel"    
    bl_options = {'DEFAULT_CLOSED'}

    @classmethod
    def poll(cls, context):
        scene = context.space_data
        ob = context.active_object
        return scene and ob.type == 'ARMATURE' and ob.name == 'Rig_01'

    def draw(self, context): 
        layout = self.layout
        obdata = context.active_object.data       
           
#Armature properties:
        box = layout.box()
        row = box.row()
        row.prop(obdata, '["switch_constraints"]', text="Constraints switch", toggle=True)