Implementing Error Catching System
This commit is contained in:
parent
d9821e1aa6
commit
b71b55c7e0
1 changed files with 205 additions and 194 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue