Reorganize imports

merge-requests/64/head
Huluti 2016-12-08 18:11:08 +01:00
parent 0b8924b345
commit e813a6407a
1 changed files with 9 additions and 9 deletions

View File

@ -1,13 +1,13 @@
#!/usr/bin/env python3
import locale
import gettext
import os
import sys
import json
import webbrowser
import gi
from subprocess import call
import json
import locale
import os
import subprocess
import sys
import webbrowser
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk
@ -143,12 +143,12 @@ class ManjaroHello():
self.builder.get_object("stack").set_visible_child(self.builder.get_object("project"))
self.builder.get_object("project").set_current_page(0)
elif name == "installgui":
call(["sudo", "-E", "calamares"])
subprocess.call(["sudo", "-E", "calamares"])
elif name == "installcli":
call(["sudo cli-installer"])
subprocess.call(["sudo cli-installer"])
def on_social_pressed(self, eventbox, _):
webbrowser.open_new_tab(self.social_urls[eventbox.get_name()])
open_new_tab(self.social_urls[eventbox.get_name()])
def on_autostart_switched(self, switch, _):
autostart = True if switch.get_active() else False