Skip to content
Snippets Groups Projects
Commit 2af0d099 authored by Rafael S Castilho's avatar Rafael S Castilho
Browse files

added toggle on/off family shield on CP

parent d17b2fe1
No related branches found
No related tags found
1 merge request!4added toggle on/off family shield on CP
Pipeline #
......@@ -2,6 +2,7 @@
# -*- coding: utf-8 -*
import gi
import os
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
......@@ -14,18 +15,22 @@ class Handler:
def onToggleLocalFamilyShield(self, switch, args):
if(switch.get_active()):
# TODO: ativar Family Shield local
print("Family Shield ligado localmente")
os.system("sudo family-shield -e")
# print("Family Shield ligado localmente")
else:
# TODO: desativar Family Shield local
print("Family Shield desligado localmente")
os.system("sudo family-shield -d")
#print("Family Shield desligado localmente")
def onToggleNetworkFamilyShield(self, switch, args):
if(switch.get_active()):
# TODO: ativar Family Shield na rede
print("Family Shield ligado na rede")
os.system("sudo family-shield -e -n")
#print("Family Shield ligado na rede")
else:
# TODO: desativar Family Shield na rede
print("Family Shield desligado na rede")
os.system("sudo family-shield -d -n")
# print("Family Shield desligado na rede")
def onEpoptesButtonPressed(self, button):
# TODO: abrir Epoptes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment