MCPcopy Create free account
hub / github.com/NyarchLinux/DesktopPuppet / get_expressions

Method get_expressions

puppet_extension.py:212–221  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

210 os.remove(self.lockfile)
211 sleep(2)
212 self.start_desktop_puppet_process()
213 GLib.timeout_add(2000, self.update_address)
214
215 def create_gtk_widget(self) -> Gtk.Widget:
216 threading.Thread(target=self.__start_webserver).start()
217 threading.Thread(target=self.start_desktop_puppet_process).start()
218 box = Gtk.Box()
219 box.set_hexpand(True)
220 box.set_vexpand(True)
221 reload_button = Gtk.Button(hexpand=True, vexpand=True)
222 label = Gtk.Label(label="Reload puppet")
223 reload_button.set_child(label)
224 reload_button.connect("clicked", lambda x : threading.Thread(target=self.update_address).start())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected