def __init__(self):
        """Instantiate support objects and perform setups."""

        logger.info("Instantiating window manager.")

        ### store a reference to the window manager
        ### in the APP_REFS object
        APP_REFS.wm = self

        ### instantiate support objects to
        ### manage/assist different kinds of tasks;
        ###
        ### don't worry about storing references to
        ### them, since they reference themselves
        ### automatically in config.APP_REFS

        GraphManager()
        EditingAssistant()

        self.splash_screen = SplashScreen()

        ### instantiate label widgets
        self.instantiate_labels()

        ### organize state behaviours
        self.build_state_behaviour_map()

        ### attribute to keep track of current state
        self.state_name = ''

        ### set flag indicating whether the mouse is clicked
        self.clicked_mouse = False

        ### create background obj
        self.background = Object2D(rect=Rect(0, 0, 0, 0))

        ### create separator obj
        self.separator = Object2D(rect=Rect(0, 0, 0, 0))

        ### append window resize setup method
        APP_REFS.window_resize_setups.append(self.resize_setups)
Instantiate support objects and perform setups.
nodezator/winman/main.py