Changed fixed socket timeout to an Option
[rox-postal.git] / AppRun
blobdb01dcd4d5c9c0c9e05c97fc66ec66ce960f3d8a
1 #!/usr/bin/env python
3 import findrox; findrox.version(2, 0, 0)
4 import rox, os, sys, gtk
6 try:
7 __builtins__._ = rox.i18n.translation(os.path.join(rox.app_dir, 'Messages'))
9 from optparse import OptionParser
11 parser = OptionParser()
12 parser.add_option("--options",
13 action="store_true", dest="options", default=False,
14 help="display options dialog")
16 parser.add_option("--accounts",
17 action="store_true", dest="accounts", default=False,
18 help="edit accounts list")
20 (options, args) = parser.parse_args()
22 if options.options:
23 import postal
24 rox.edit_options()
25 rox.mainloop()
26 elif options.accounts:
27 import postal
28 box = postal.Postal(-1) #don't fully initialize the applet
29 box.load_accounts()
30 box.edit_accounts()
31 rox.mainloop()
32 else:
33 rox.info(_("This is a panel applet. Drag it to your panel to run it."))
35 except:
36 rox.report_exception()