|
|
@ -29,18 +29,11 @@ class RubberStamp:
|
|
|
|
|
|
|
|
|
|
|
|
# Add a newline because the ui reads per line
|
|
|
|
# Add a newline because the ui reads per line
|
|
|
|
command += " \n"
|
|
|
|
command += " \n"
|
|
|
|
|
|
|
|
|
|
|
|
# If we're connected to the ui
|
|
|
|
|
|
|
|
if self.gtk_proc:
|
|
|
|
if self.gtk_proc:
|
|
|
|
# Send the command as bytes
|
|
|
|
# Send the command as bytes
|
|
|
|
self.gtk_proc.stdin.write(bytearray(command.encode("utf-8")))
|
|
|
|
self.gtk_proc.stdin.write(bytearray(command.encode("utf-8")))
|
|
|
|
self.gtk_proc.stdin.flush()
|
|
|
|
self.gtk_proc.stdin.flush()
|
|
|
|
|
|
|
|
|
|
|
|
# Write a padding line to force the command through any buffers
|
|
|
|
|
|
|
|
self.gtk_proc.stdin.write(bytearray("P=_PADDING \n".encode("utf-8")))
|
|
|
|
|
|
|
|
self.gtk_proc.stdin.flush()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def execute(config, gtk_proc, opencv):
|
|
|
|
def execute(config, gtk_proc, opencv):
|
|
|
|
verbose = config.getboolean("debug", "verbose_stamps", fallback=False)
|
|
|
|
verbose = config.getboolean("debug", "verbose_stamps", fallback=False)
|
|
|
|
dir_path = os.path.dirname(os.path.realpath(__file__))
|
|
|
|
dir_path = os.path.dirname(os.path.realpath(__file__))
|
|
|
|