-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
101 lines (95 loc) · 4.01 KB
/
__init__.py
File metadata and controls
101 lines (95 loc) · 4.01 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#===============================================================================
# @Author: Madison Aster
# @ModuleDescription:
# @License:
# MediaApp Library - Python Package framework for developing robust Media
# Applications with Qt Library
# Copyright (C) 2013 Madison Aster
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License version 2.1 as published by the Free Software Foundation;
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#
# See LICENSE in the root directory of this library for copy of
# GNU Lesser General Public License and other license details.
#===============================================================================
import os, sys
if os.path.abspath(__file__).split(os.sep)[-2] == 'MediaApp':
sys.modules['MediaApp'] = sys.modules[__name__]
if __name__ == '__init__':
#import Qt
#sys.modules['Qt'] = Qt
#from Qt import QtGui
#sys.modules['QtGui'] = QtGui
#from Qt import QtCore
#sys.modules['QtCore'] = QtCore
import AppCoreX
AppCore = AppCoreX.Core(CoreRun = True)
sys.modules['AppCore'] = AppCore
import DataStructures
sys.modules['DataStructures'] = DataStructures
import MediaAppIcons as Icons
sys.modules['MediaAppIcons'] = Icons
import MediaAppKnobs as Knobs
sys.modules['MediaAppKnobs'] = Knobs
import MediaAppNodes as Nodes
sys.modules['MediaAppNodes'] = Nodes
import MediaAppWidgets as Widgets
sys.modules['MediaAppWidgets'] = Widgets
import MediaAppWindows as Windows
sys.modules['MediaAppWindows'] = Windows
import MediaAppPlugins as Plugins
sys.modules['MediaAppPlugins'] = Plugins
else:
#from . import Qt
#sys.modules['Qt'] = Qt
#from Qt import QtGui
#sys.modules['QtGui'] = QtGui
#from Qt import QtCore
#sys.modules['QtCore'] = QtCore
from . import AppCoreX
AppCore = AppCoreX.Core(CoreRun = False)
#sys.modules['AppCore'] = AppCore #The Module does this now
from . import DataStructures
sys.modules['DataStructures'] = DataStructures
from . import MediaAppIcons as Icons
sys.modules['MediaAppIcons'] = Icons
from . import MediaAppKnobs as Knobs
sys.modules['MediaAppKnobs'] = Knobs
from . import MediaAppNodes as Nodes
sys.modules['MediaAppNodes'] = Nodes
from . import MediaAppWidgets as Widgets
sys.modules['MediaAppWidgets'] = Widgets
from . import MediaAppWindows as Windows
sys.modules['MediaAppWindows'] = Windows
from . import MediaAppPlugins as Plugins
sys.modules['MediaAppPlugins'] = Plugins
MainWindow = Windows.MainWindow()
NodeGraph = Widgets.NodeGraph()
AppCore.NodeGraph = NodeGraph
BrowserBin = Widgets.BrowserBin()
PropertiesBin = Widgets.PropertiesBin()
ViewerWidget = Widgets.ViewerWidget()
MainWindow.dockThisWidget(NodeGraph)
MainWindow.dockThisWidget(BrowserBin)
MainWindow.dockThisWidget(PropertiesBin)
MainWindow.dockThisWidget(ViewerWidget)
def run():
MainWindow.initUI()
MainWindow.show()
AppCore.App.exec_()
else:
if __name__ == '__init__':
from MediaApp import *
else:
from .MediaApp import *
##### Add your App's import statements here #####