I have been working on my project for Blender for quite some time and have reached the end of this small section, but I want to add a toggle button to the GUI that toggles if backface culling is off or not, I have tried using the command:
bpy.context.space_data.shading.show_backface_culling = True
and the opposite but when I run it in the python script, it says:
"SpaceTextEditor" object has no attribute shading
I know it's probably something really simple.