def check_profile(): profile = get_profile() path = os.path.join(os.path.expanduser('~/.sugar'), 'debug') if not os.path.exists(path): profile.create_debug_file() path = os.path.join(env.get_profile_path(), 'config') if os.path.exists(path): profile.convert_profile() if not profile.is_valid(): win = IntroWindow() win.show_all() gtk.main()
def _start_intro(): window = IntroWindow() window.connect('done', __intro_window_done_cb) window.show_all()
def _start_intro(start_on_age_page=False): window = IntroWindow(start_on_age_page=start_on_age_page) window.connect('done', __intro_window_done_cb) window.show()
from gi.repository import Gtk from common import set_theme from jarabe.intro.window import IntroWindow set_theme() win = IntroWindow() win.show_all() Gtk.main()