def get_focus(self):
        """Perform setups and give focus to splash screen."""
        ### get current list of recent files
        recent_files = get_recent_files()

        ### if such list changed since last time we created
        ### objects representing buttons to load recent
        ### files, we recreate such objects and also, as a
        ### result, we reposition all objects in the splash
        ### screen to account for the change, redefining
        ### its boundaries

        if self.recent_files != recent_files:

            ## store the current list of recent files
            self.recent_files = recent_files

            ## recreate the recent file objects
            self.recent_file_objs = get_recent_file_objs(self.recent_files)

            ### reposition all objects in the splash screen
            ### and redefine its boundaries
            self.position_and_define_boundaries()

        ### finally raise an special exception, passing
        ### along a reference to the splash screen, so it
        ### obtains control of the application
        raise SwitchLoopException(self)
Perform setups and give focus to splash screen.
nodezator/splashscreen/op.py