New release.
[0publish-gui.git] / 0publish-gui
blob0b22635070cd139971deecef29b9b154c2d49d5c
1 #!/usr/bin/env python
2 import rox, os, sys
3 from optparse import OptionParser
4 from rox import g
6 if sys.version_info < (2, 4):
7 raise Exception('0publish-gui requires Python >= 2.4. You have %s' %
8 '.'.join(map(str, sys.version_info)))
10 import gtk.glade
11 from main import FeedEditor, choose_feed
13 version = '0.4'
14 parser = OptionParser(usage="usage: %prog [options] interface")
15 parser.add_option("-V", "--version", help="display version information", action='store_true')
16 (options, args) = parser.parse_args()
18 if options.version:
19 print "0publish-gui (zero-install) " + version
20 print "Copyright (C) 2007 Thomas Leonard"
21 print "This program comes with ABSOLUTELY NO WARRANTY,"
22 print "to the extent permitted by law."
23 print "You may redistribute copies of this program"
24 print "under the terms of the GNU General Public License."
25 print "For more information about these matters, see the file named COPYING."
26 sys.exit(0)
28 if args:
29 for file in args:
30 editor = FeedEditor(file)
31 editor.window.show()
32 #editor.add_version()
33 else:
34 editor = choose_feed()
35 editor.window.show()
37 rox.mainloop()