auto-cpufreq/auto_cpufreq/bin/auto_cpufreq_gtk.py

21 lines
391 B
Python

#!/usr/bin/env python3
import sys
sys.path.append("../")
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, GLib
from auto_cpufreq.gui.app import ToolWindow
def main():
GLib.set_prgname("auto-cpufreq")
win = ToolWindow()
win.connect("destroy", Gtk.main_quit)
win.show_all()
win.handle_update()
Gtk.main()
if __name__ == "__main__": main()