uruk-cleaner.py 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # uruk cleaner
  2. # to clean your system from cash files and logs
  3. # Copyright (c) 2016 ali abdul ghani <blade.vp2020@gmail.com>
  4. # This Program is free software: you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation, either version 3 of the License, or
  7. # (at your option) any later version.
  8. # This Program is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. # GNU General Public License for more details.
  12. # You should have received a copy of the GNU General Public License
  13. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. import os
  15. from gi.repository import Gtk
  16. window = Gtk.Window(title="Uruk Cleaner")
  17. window.set_border_width(30)
  18. hbox = Gtk.Box(spacing=6)
  19. window.connect("destroy", lambda w: Gtk.main_quit())
  20. window.add(hbox)
  21. def clean(button1):
  22. os.system("./log-c.sh")
  23. def ex(button3):
  24. exit()
  25. def clean_deb(button2):
  26. os.system("./cash-c.sh")
  27. button1 = Gtk.Button.new_with_label("Clean Logss")
  28. button1.connect("clicked", clean)
  29. hbox.pack_start(button1, True, True, 0)
  30. button2 = Gtk.Button.new_with_label("Clean apt-get Cash")
  31. button2.connect("clicked", clean_deb)
  32. hbox.pack_start(button2, True, True, 0)
  33. button3 = Gtk.Button.new_with_label("Exit")
  34. button3.connect("clicked", ex)
  35. hbox.pack_start(button3, True, True, 0)
  36. window.show_all()
  37. Gtk.main()