#!/usr/bin/python2.2
#
# grubmenugui
# 
# grubmenugui is a program which performs a setup by grubmenu
# by wxPython GUI, and changes grubmenu.conf which is the setting
# file of grubmenu.
#
# configuration file is /etc/grubmenu.conf
#
# Copyright (c) 2003 by kaepapa <kaepapa@kaepapa.dip.jp>
# 
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

import gettext

from wxPython.wx import *
from grubmenu.ui_wxPython import ui_wxPython

class grubmenuGUI(wxApp):
    def OnInit(self):
        wxInitAllImageHandlers()
        main = ui_wxPython(None, -1, "")
        self.SetTopWindow(main)
        main.Show(1)
        return 1

if __name__ == "__main__":
    # gettextize
    gettext.install("grubmenu")
    
    grubmenugui = grubmenuGUI(0)
    grubmenugui.MainLoop()
