Sliding through a list in execution?

Hy there!
I don´t understand the api documention very well.
So i need some help: How i can define a slider to slide through a list of operation in execution?

I want to set the origin to the corner, edge or side by sliding, because there are 27 places where it can be.



class BBoxAllOrigin(bpy.types.Operator):  
    bl_label = "BBox Origin"
    bl_idname = "object.bbox_all_origin"

    bbox_allorigin = bpy.props.IntProperty(name="BBox origin", description="Set BBox Origin", default=0, min=0, soft_max=26, step=1) 


    def execute(self, context):
        for i in range(self.bbox_allorigin):

        ###  Origin to Corners on Top 
            bpy.ops.object.cubeback_cornertop_minus_xy()
        
        bpy.ops.object.cubeback_cornertop_plus_xy()
        bpy.ops.object.cubefront_cornertop_minus_xy()
        bpy.ops.object.cubefront_cornertop_plus_xy()
        
        ###  Origin to Corners on Bottom
        bpy.ops.object.cubefront_cornerbottom_minus_xy()
        bpy.ops.object.cubefront_cornerbottom_plus_xy()
        bpy.ops.object.cubeback_cornerbottom_minus_xy()
        bpy.ops.object.cubeback_cornerbottom_plus_xy()
                
        ###  Origin to the Middle of the Top Edges
        bpy.ops.object.cubeback_edgetop_minus_y()
        bpy.ops.object.cubeback_edgetop_plus_y()
        bpy.ops.object.cubefront_edgetop_minus_x()
        bpy.ops.object.cubefront_edgetop_plus_x()
                
        ###  Origin to the Middle of the Bottom Edges
        bpy.ops.object.cubefront_edgebottom_minus_y()
        bpy.ops.object.cubefront_edgebottom_plus_y()                
        bpy.ops.object.cubefront_edgebottom_minus_x()
        bpy.ops.object.cubefront_edgebottom_plus_x()  

        ###  Origin to the Middle of the Side Edges
        bpy.ops.object.cubefront_edgemiddle_minus_y()
        bpy.ops.object.cubefront_edgemiddle_plus_y()                
        bpy.ops.object.cubefront_edgemiddle_minus_x()
        bpy.ops.object.cubefront_edgemiddle_plus_x()  


        ### Origin to the Middle of Side 
        bpy.ops.object.cubefront_side_minus_y()
        bpy.ops.object.cubefront_side_plus_y()                
        bpy.ops.object.cubefront_side_minus_x()
        bpy.ops.object.cubefront_side_plus_x() 
        bpy.ops.object.cubefront_side_minus_z()
        bpy.ops.object.cubefront_side_plus_z()



def register():
    bpy.utils.register_class(BBoxAllOrigin)


ps: i have decided to make three menus > corners, edges & side