def __init__(self, func, pos, size, anchor, flags=0):
        """
        Creates a new BaseButton object.
        
        :param func: calback function that takes no argument
        :param pos: the widget pos. Can be a callable or a 2-tuple
        :param size: the width size. Can be a callable or a 2-tuple
        :param flags: Can be:
            - CALL_ON_PRESS if you want func to be call when the button is pressed instead of when it's released
            - THREADED_CALL if you want func to be called in a thread
            You can pass multiple flags with the pipe operator |
        """
        super().__init__(pos, size, anchor)
        self.func = func
        self.flags = flags
def __init__ ( self , func , pos , size , anchor , flags = 0 ) : super ( ) . __init__ ( pos , size , anchor ) self . func = func self . flags = flags
Creates a new BaseButton object.
        
        :param func: calback function that takes no argument
        :param pos: the widget pos. Can be a callable or a 2-tuple
        :param size: the width size. Can be a callable or a 2-tuple
        :param flags: Can be:
            - CALL_ON_PRESS if you want func to be call when the button is pressed instead of when it's released
            - THREADED_CALL if you want func to be called in a thread
            You can pass multiple flags with the pipe operator |