Implementing Error Catching System

This commit is contained in:
Jeison Yehuda Amihud (Blender Dumbass) 2021-05-10 19:58:11 +00:00
parent d9821e1aa6
commit b71b55c7e0

View file

@ -29,6 +29,8 @@ from studio import studio_analyticsLayer
from studio import studio_scriptLayer
from studio import studio_multiuserLayer
from troubleshooter import error_notify
# UI modules
from UI import UI_testing
from UI import UI_color
@ -59,6 +61,8 @@ def run(project, win):
except:
pass
# Setting up the window
win = Gtk.Window()
win.maximize()
@ -210,6 +214,9 @@ def pmdrawing(pmdrawing, main_layer, win):
# be used in such an application. But to hell with it. I did the same on the
# Blender-Organizer altho with way less cairo. And it works well enought.
try:
# FPS counter
win.fFPS = datetime.datetime.now()
win.tFPS = win.fFPS - win.sFPS
@ -378,6 +385,7 @@ def pmdrawing(pmdrawing, main_layer, win):
win.current["keys"] = []
win.textactive = ""
# For the rendering I will need to read render info at each frame and parse
# it in various windows.
@ -406,6 +414,9 @@ def pmdrawing(pmdrawing, main_layer, win):
# Refreshing the frame automatically
pmdrawing.queue_draw()
except:
Gtk.main_quit()
error_notify.show()
# This program will have things like mouse and keyboard input. And this setup