commit 921114952a0ea89a70ae7cc8ec168557378e7664
parent b7da1ba2f5615f3127adc498c55ea101c3a3fe49
Author: Daniel Barlow <dan@telent.net>
Date: Fri, 27 Feb 2026 21:17:37 +0000
show recording progress
Diffstat:
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/client/eculocate-gtk b/client/eculocate-gtk
@@ -2,7 +2,7 @@
import gi
gi.require_version("Gtk", "3.0")
-from gi.repository import Gtk
+from gi.repository import Gtk, GLib
import threading
import time
@@ -93,4 +93,13 @@ if __name__ == '__main__':
client = GtkClient(signing_key, win)
win.connect("destroy", Gtk.main_quit)
win.show_all()
+
+ def update_byte_counter():
+ label = f"recorded {client.bytes_recorded} bytes" if client.started else "not recording"
+ if win.status:
+ win.status.set_text(label)
+ return True
+
+ GLib.timeout_add_seconds(1, update_byte_counter)
+
Gtk.main()