New release.
[rox-edit.git] / AppRun
blob0bca233ef1cfdbcf954f89977995c96afe34910f
1 #!/usr/bin/env python
3 import findrox; findrox.version(1, 9, 8)
5 import sys
6 import rox
8 rox.g.rc_parse_string('style "edit-text-area" { GtkWidget::cursor-color = "#e00" '
9 'GtkWidget::cursor-aspect-ratio = 0.1}\n'
10 'class "GtkTextView" style : gtk "edit-text-area"\n')
12 rox.setup_app_options('Edit')
14 # Register options...
15 import EditWindow
17 # All options must be registered by the time we get here
18 rox.app_options.notify()
20 if len(sys.argv) > 1:
21 for file in sys.argv[1:]:
22 try:
23 EditWindow.EditWindow(file)
24 except EditWindow.Abort:
25 pass
26 else:
27 EditWindow.EditWindow()
29 rox.mainloop()