Exemplo n.º 1
0
 def end(self):
     from interfaces import restart
     self.ennemies.stop()
     self.btnQuitter.configure(
         text="revenir à l'accueil",
         command=lambda: restart(self.window, self.Frame1, self.Frame2))
     self.btnQuitter
Exemplo n.º 2
0
def restart():
	dist = platform.linux_distribution(full_distribution_name=False)[0].lower()
	if dist in debian_like:
		interfaces.restart()
	elif dist in rhel_like:
		networkscripts.restart()
Exemplo n.º 3
0
def restart():
	distribution = platform.linux_distribution()[0].lower()
	if distribution in debian_like:
		interfaces.restart()
	elif distribution in rhel_like:
		networkscripts.restart()
Exemplo n.º 4
0
def restart():
    dist = platform.linux_distribution(full_distribution_name=False)[0].lower()
    if dist in debian_like:
        interfaces.restart()
    elif dist in rhel_like:
        networkscripts.restart()
def restart():
	distribution = platform.linux_distribution()[0].lower()
	if distribution in debian_like:
		interfaces.restart()
	elif distribution in rhel_like:
		networkscripts.restart()