예제 #1
0
파일: main.py 프로젝트: Asjidkalam/17g
sys.path.insert(1, '/usr/lib/live-installer')
if (os.path.isdir("/usr/lib/live-installer")):
    os.chdir("/usr/lib/live-installer")

if config.main["gtk_theme"] != "default":
	os.environ['GTK_THEME'] = config.main["gtk_theme"]

# Force show mouse cursor & fix background
os.system("xsetroot -cursor_name left_ptr")
os.system("xsetroot -solid black")
from frontend.gtk_interface import InstallerWindow
from frontend.welcome import welcome

import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk

# main entry
if __name__ == "__main__":
    if ("--welcome" in sys.argv):
        if config.main["welcome_screen"]:
            win=welcome()
        else:
            print("Welcome screen disabled by config.")
            exit(0)
    else:
        win = InstallerWindow()
        if ("--fullscreen" in sys.argv):
            win.fullscreen()
    Gtk.main()
예제 #2
0
#!/usr/bin/env python
import sys
import commands
sys.path.append('/usr/lib/live-installer')
from frontend.gtk_interface import InstallerWindow

try:
	import pygtk
	pygtk.require("2.0")
	import gtk	
except Exception, detail:
	print detail
	
# main entry
if __name__ == "__main__":
#	if("install" in commands.getoutput("cat /proc/cmdline")):
#		win = InstallerWindow(fullscreen=True)
#	else:
#		win = InstallerWindow(fullscreen=False)
	win = InstallerWindow(fullscreen=False)
	gtk.main()
예제 #3
0
 def but_install(self, widget):
     self.window.hide()
     InstallerWindow()
예제 #4
0
#!/usr/bin/python3
import sys
import os
import subprocess
import gettext

gettext.install("live-installer", "/usr/share/locale")

sys.path.insert(1, '/usr/lib/live-installer')
if (os.path.isdir("/usr/lib/live-installer")):
    os.chdir("/usr/lib/live-installer")
os.environ['GTK_THEME'] = "Adwaita"

from frontend.gtk_interface import InstallerWindow

import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk

# main entry
if __name__ == "__main__":

    if ("--expert-mode" in sys.argv):
        win = InstallerWindow(expert_mode=True)
    else:
        win = InstallerWindow()
    if ("--fullscreen" in sys.argv):
        win.fullscreen()
    Gtk.main()
예제 #5
0
#!/usr/bin/python -OO

import sys
import commands
import gettext

gettext.install("live-installer", "/usr/share/linuxmint/locale")

sys.path.insert(1, '/usr/lib/live-installer')
from frontend.gtk_interface import InstallerWindow

import gi

gi.require_version('Gtk', '3.0')
from gi.repository import Gtk

# main entry
if __name__ == "__main__":

    if ("--expert-mode" in sys.argv):
        win = InstallerWindow(expert_mode=True)
    else:
        win = InstallerWindow()
    Gtk.main()