| Trees | Indices | Help |
|
|---|
|
|
1 # -*- coding: utf-8 -*-
2 """Initialize the UI framework allowing convenient access to most common user interfaces
3
4 All classes of the ui submodules can be accessed by importing this package.
5 """
6 __docformat__ = "restructuredtext"
7
8 ############################
9 #### Exceptions ####
10 #########################
11
12 if 'init_done' not in locals():
13 init_done = False
14
15
16 #{ Initialization Utilities
18 """Enforce the creation of all ui types - must be called once all custom types
19 were imported"""
20 from mrv.maya.util import StandinClass
21 for cls in globals().itervalues():
22 if isinstance( cls, StandinClass ):
23 cls.createCls()
24 # END create type
25 # END for each stored type
26
27 #} END initialization utilities
28
29 #{ Initialization
30 if not init_done:
31 import typ
32 typ.init_classhierarchy() # populate hierarchy DAG from cache
33 typ.initWrappers( ) # create wrappers for all classes
34
35 import base
36 base._uidict = globals()
37
38 # assure we do not run several times
39 # import modules - this way we overwrite actual wrappers lateron
40 from base import *
41 from control import *
42 from dialog import *
43 from layout import *
44 from panel import *
45 from editor import *
46 from util import (
47 Signal,
48 EventSenderUI
49 )
50
51 # automatic types need to be created in the end !
52 force_type_creation()
53 #} END initialization
54
55 init_done = True
56
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Tue Apr 19 18:00:22 2011 | http://epydoc.sourceforge.net |