fontlab_glyport.ui.session
session
Session that owns Glyport's Qt-backed Vanilla controls, dialogs and windows.
What: VanillaSession builds the Vanilla and dialogs namespaces and tracks
every window they open. close() tears all of them down.
Why lazy: the factories in ui.vanilla and ui.dialogs pull in the Cocoa,
Vanilla and NIB chain (about 8k lines). FontLab's run_python has a 5 s
deadline. This module therefore imports both factories INSIDE the constructor.
After import fontlab_glyport.ui.session, neither PythonQt nor
fontlab_glyport.ui.vanilla nor fontlab_glyport.ui.cocoa is loaded.
Use: with VanillaSession() as session: session.vanilla.Window(...).