Untitled

From Blush Mousedeer, 2 Years ago, written in Plain Text, viewed 179 times. This paste will join the choir invisible in 1 Second.
URL https://paste.gajim.org/view/794fea2a Embed
Download Paste or View Raw
  1. #!/usr/bin/python
  2. from gi.repository import Gio
  3.  
  4.  
  5. def network_status_changed(monitor, connected):
  6.     print(f"xD {connected}")
  7.  
  8.  
  9. network_monitor = Gio.NetworkMonitor.get_default()
  10. network_monitor.connect('network-changed', network_status_changed)

Reply to "Untitled"

Here you can reply to the paste above