Beispiel #1
0
#print gtk.rc_get_theme_dir()
settings = gtk.settings_get_default()
settings.set_string_property("gtk-theme-name", "Gnursid", "")

step_name_list = [
    (_('Welcome'), 'welcome'),  # (group name, module name)
    #'scsi',
    (_('Package'), 'pkgselect'),
    (_('Partition'), 'partition'),
    (_('Partition'), 'dopartition'),
    #(_('Setup'), 'startsetup'),
    (_('Setup'), 'accounts'),
    #'Xwindow',
    (_('Setup'), 'bootloader'),
    (_('Setup'), 'takeactions'),
    #(_('Setup'), 'dosetup'),
    (_('Finish'), 'finish')
]
win = MIMainWindow(step_name_list, gtk.WINDOW_TOPLEVEL)
win.set_size_request(CF.D.FULL_WIDTH, CF.D.FULL_HEIGHT)
win.set_resizable(False)
win.init()

win.show()

root = gtk.gdk.get_default_root_window()
cursor = gtk.gdk.Cursor(gtk.gdk.LEFT_PTR)
root.set_cursor(cursor)

gtk.main()
Beispiel #2
0
        self.rootobj = rootobj

    def enter(self):
        self.rootobj.btnnext_sensitive(False)
        self.rootobj.btnback_sensitive(False)
        return 1

    def get_label(self):
        return self.LABEL

    def btnfinish_clicked(self, widget, data):
        self.default_btnfinish_clicked(widget, data)

    def leave(self):
        magicpopup.magicmsgbox(
            None,
            _('You can not go back because the installation has finished.'),
            magicpopup.magicmsgbox.MB_ERROR, magicpopup.magicpopup.MB_OK)
        return 0


if __name__ == '__main__':
    import gtk
    from mi.client.mainwin import MIMainWindow
    win = MIMainWindow(gtk.WINDOW_TOPLEVEL)
    win.init()
    #win.show_all()
    win.show()

    gtk.main()
Beispiel #3
0
from mi.utils import logger

## Setup constants and working directory.
<<<<<<< HEAD
logger.info('change current working directory to %s' % CONF.LOAD.CONF_DATADIR)
os.chdir(CONF.LOAD.CONF_DATADIR)
step_name_list = ('welcome',
    #'scsi',
    'partition',
    'bootloader',
    'pkgselect',
    'takeactions',
    'startsetup',
    'accounts',
    'Xwindow',
    'dosetup',
    'finish')
win = MIMainWindow(gtk.WINDOW_TOPLEVEL, step_name_list)
=======
logger.info('change current working directory to %s' % CF.D.DATADIR)
os.chdir(CF.D.DATADIR)

win = MIMainWindow(gtk.WINDOW_TOPLEVEL)
>>>>>>> Update
win.init()
#win.show_all()
win.show()

gtk.main()
#print gtk.rc_get_theme_dir()
settings = gtk.settings_get_default()
settings.set_string_property("gtk-theme-name", "Gnursid", "")

step_name_list = [
    (_('Welcome'), 'welcome'), # (group name, module name)
    #'scsi',
    (_('Package'), 'pkgselect'),
    (_('Partition'), 'partition'),
    (_('Partition'), 'dopartition'),
    #(_('Setup'), 'startsetup'),
    (_('Setup'), 'accounts'),
    #'Xwindow',
    (_('Setup'), 'bootloader'),
    (_('Setup'), 'takeactions'),
    #(_('Setup'), 'dosetup'),
    (_('Finish'), 'finish')
    ]
win = MIMainWindow(step_name_list, gtk.WINDOW_TOPLEVEL)
win.set_size_request(CF.D.FULL_WIDTH, CF.D.FULL_HEIGHT)
win.set_resizable(False)
win.init()

win.show()

root = gtk.gdk.get_default_root_window()
cursor = gtk.gdk.Cursor(gtk.gdk.LEFT_PTR)
root.set_cursor(cursor)

gtk.main()