'Restore saved settings or set the initial location'

def init_state(self, settings, callback, *args, **kwargs):

    if (not self.restore_state(settings=settings)):
        callback(*args, **kwargs)
        self.center()
