def PutTextOnDisplay(self, text, display, notify_id): with uievents.using_startup_notify_id(notify_id) as time: self.emit("put-text", text, display, time)
def PutFilesOnDisplay(self, fileuris, display, notify_id): # files sent with dbus-send from kupfer have a custom comma # escape that we have to unescape here fileuris[:] = [f.replace("%%kupfercomma%%", ",") for f in fileuris] with uievents.using_startup_notify_id(notify_id) as time: self.emit("put-files", fileuris, display, time)
def RelayKeysFromDisplay(self, keystring, display, notify_id): with uievents.using_startup_notify_id(notify_id) as time: self.emit("relay-keys", keystring, display, time)
def PresentOnDisplay(self, display, notify_id): with uievents.using_startup_notify_id(notify_id) as time: self.emit("present", display, time)
def ExecuteFileOnDisplay(self, filepath, display, notify_id): with uievents.using_startup_notify_id(notify_id) as time: self.emit("execute-file", filepath, display, time)
def ShowHideOnDisplay(self, display, notify_id): with uievents.using_startup_notify_id(notify_id) as time: self.emit("show-hide", display, time)