-
Notifications
You must be signed in to change notification settings - Fork 2
/
Main.py
68 lines (54 loc) · 1.57 KB
/
Main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# -*- coding: UTF-8 -*-
# Interstitial Error Detector
# Version 0.2, 2013-08-28
# Copyright (c) 2013 AudioVisual Preservation Solutions
# All rights reserved.
# Released under the Apache license, v. 2.0
# Created on May 14, 2014
# @author: Furqan Wasi <furqan@avpreserve.com>
from PySide.QtGui import *
import sys
from os import path
from GUI import InterstitialGUI
from Core import SharedApp
from App import App
class Main(object):
"""
Application Main Launcher Class
"""
def __init__(self):
SharedApp.SharedApp.App = App.getInstance()
pass
def LaunchGUI(self, param):
"""
Launch GUI Application
@return: None
"""
app = QApplication(param)
interstitialGUIApp = InterstitialGUI.InterstitialGUI.getInstance()
interstitialGUIApp.show()
interstitialGUIApp.raise_()
sys.exit(app.exec_())
def RunCoreExecutor(self, param1, param2):
"""
Run Core Executor Independently
@return: None
"""
def LaunchCLI(self):
"""
Launch CLI Application on demand
@return: None
"""
"""
Lunch CLI Application
"""
pass
# Main Application
if __name__ == '__main__':
InterstitialApp = Main()
try:
InterstitialApp.LaunchGUI(sys.argv)
except:
exc_type, exc_obj, exc_tb = sys.exc_info()
file_name = path.split(exc_tb.tb_frame.f_code.co_filename)[1]
print("Could not run this Project "+str(Exception.message))