home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / lib / python2.4 / site-packages / GMenuSimpleEditor / main.py < prev    next >
Encoding:
Python Source  |  2006-08-30  |  1.1 KB  |  38 lines

  1. #!/usr/bin/env python
  2.  
  3. #
  4. # Copyright (C) 2005 Red Hat, Inc.
  5. #
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program; if not, write to the Free Software
  18. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19. #
  20.  
  21. def main (args):
  22.     import locale
  23.     import gettext
  24.  
  25.     import gtk
  26.     import gtk.glade
  27.  
  28.     import maindialog
  29.     import config
  30.  
  31.     locale.setlocale (locale.LC_ALL, "")
  32.     gettext.install (config.PACKAGE, config.LOCALEDIR)
  33.     gtk.glade.bindtextdomain (config.PACKAGE, config.LOCALEDIR)
  34.  
  35.     dialog = maindialog.MenuEditorDialog (args)
  36.  
  37.     gtk.main ()
  38.