Update for new loading code.
[rox-edit.git] / AppRun
blobf8761f31cae168edce0613e619022ce74c98e319
1 #!/usr/bin/env python
3 import findrox
5 import sys
6 import rox
8 #rox.g.rc_parse_string('style "edit-text-area" { cursor-color = "red" }\n'
9 # 'class "GtkTextView" style : gtk "edit-text-area"\n')
11 rox.setup_app_options('Edit')
13 # Register options...
14 import EditWindow
16 # All options must be registered by the time we get here
17 rox.app_options.notify()
19 if len(sys.argv) > 1:
20 for file in sys.argv[1:]:
21 try:
22 EditWindow.EditWindow(file)
23 except EditWindow.Abort:
24 pass
25 else:
26 EditWindow.EditWindow()
28 rox.mainloop()