2 # vi: set syntax=python : */
7 #rox.setup_app_options('Dome')
9 from rox
.Menu
import Menu
, set_save_name
15 # Ugly hack to stop wierd chars appearing...
17 #xml.dom.html.HTML_CHARACTER_ENTITIES = {}
20 from os
.path
import dirname
22 app_dir
= dirname(sys
.argv
[0])
24 from rox
import g
, mime
25 #from rox.options import Option
26 from Window
import Window
28 #default_font = Option('default_font', 'sans 12')
30 # All options must be registered by the time we get here
31 #rox.app_options.notify()
33 #sys.argv.append('--disable-crash-dialog')
37 mime
.install_mime_info('Dome')
40 while len(sys
.argv
) > 1 and sys
.argv
[1].startswith('--'):
41 option
= sys
.argv
[1][2:]
44 mono
= 1 # Black & White
48 raise Exception("Unknown option", option
)
53 del sys
.argv
[1:] # GnomeCanvas can't cope with -
54 win
= apply(Window
, files
)