Forum Archive

Suppress print output at bottom of screen in Scene

upwart

For my animation in Scene,, I would like to use the full screen and not be distracted by the output being directed to the the bottom line. Is is possible to disable this (usually very handy) feature?

lukaskollmer

If you're talking about the frames per second number in the bottom right corner, you can pass the show_fps parameter to the run function to suppress that debug output.

Example:

run(MyScene(), show_fps=False)
upwart

I'm talking about the lower left hand corner, showing the latest line of console output,

JonB

Just don't use print!

(i.e, you could redefine print to act as a pass)

Also, IIRC SceneView does to do that...

abcabc

Suggested by omz here

https://forum.omz-software.com/topic/3306/disable-on-screen-printing-in-scene-sceneview

"There isn't really a supported way to turn this off, but you could do it via ObjC by putting something like this in your setup method:"

from objc_util import ObjCInstance
ObjCInstance(self.view).statusLabel().alpha = 0