Added main.py that now contains the One & Only Singleton instance of these classes:
- Navigator - Aplication - Workflow - Project - Options Corresponding changes have been added in lots of other files to account for this, but the access to these objects should now be a lot easier.
This commit is contained in:
+10
-5
@@ -3,7 +3,7 @@
|
||||
from getopt import getopt
|
||||
import os
|
||||
import sys
|
||||
from fluents import fluents, project, workflow
|
||||
from fluents import fluents, project, workflow, main
|
||||
import workflows
|
||||
import cfgparse, optparse
|
||||
|
||||
@@ -68,11 +68,16 @@ if __name__ == '__main__':
|
||||
if wf.ident == options.workflow:
|
||||
selected_wf = wf
|
||||
|
||||
app = fluents.FluentApp(selected_wf)
|
||||
app.options = options
|
||||
fluents.app = app
|
||||
|
||||
app.set_project(project.Project())
|
||||
main.set_workflow(selected_wf())
|
||||
main.set_options(options)
|
||||
app = fluents.FluentApp()
|
||||
|
||||
main.set_application(app)
|
||||
main.set_project(project.Project())
|
||||
|
||||
|
||||
app.set_project(main.project)
|
||||
app.show()
|
||||
gtk.main()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user