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:
2007-07-26 12:35:59 +00:00
parent 91abf12f51
commit a45743c31e
12 changed files with 196 additions and 78 deletions
+10 -5
View File
@@ -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()