0

I'm running Buster on a pi4 with 2GB of ram and a python3 script to load some web scripts and I noticed the CPU usage was 99%, I can't figure out why.

import gi
gi.require_version('Gtk', '3.0')
gi.require_version('WebKit2', '4.0')

from gi.repository import Gtk, WebKit2

window = Gtk.Window()
window.set_default_size(400, 968)
window.set_decorated(0)
window.move(1600, 0)

window.connect("destroy", Gtk.main_quit)

scrolled_window = Gtk.ScrolledWindow()
webview = WebKit2.WebView()
webview.load_uri("http://localhost/widgets/rss.php")
scrolled_window.add(webview)

window.add(scrolled_window)
window.show_all()
Gtk.main()
0

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.