src/core/managers.py
def toggle_show_fps(self, key):
        """Press f5 to turn on/off displaying the framerate in the caption."""
        if key == pg.K_F5:
            self.show_fps = not self.show_fps
            if not self.show_fps:
                pg.display.set_caption(self.caption)
Press f5 to turn on/off displaying the framerate in the caption.
Press f5 to turn on/off displaying the framerate in the caption.
Press f5 to turn on / off displaying the framerate in the caption .
def toggle_show_fps(self, key):
        if key == pg.K_F5:
            self.show_fps = not self.show_fps
            if not self.show_fps:
                pg.display.set_caption(self.caption)
def toggle_show_fps ( self , key ) : if key == pg . K_F5 : self . show_fps = not self . show_fps if not self . show_fps : pg . display . set_caption ( self . caption )
Press f5 to turn on/off displaying the framerate in the caption.
Press f5 to turn on / off displaying the framerate in the caption .
"""Press f5 to turn on/off displaying the framerate in the caption."""
self
key