aboutsummaryrefslogtreecommitdiffstats
path: root/sw/eval-clock-cw-tx/gui.py
diff options
context:
space:
mode:
Diffstat (limited to 'sw/eval-clock-cw-tx/gui.py')
-rwxr-xr-xsw/eval-clock-cw-tx/gui.py16
1 files changed, 11 insertions, 5 deletions
diff --git a/sw/eval-clock-cw-tx/gui.py b/sw/eval-clock-cw-tx/gui.py
index bf7e54e..a1614a5 100755
--- a/sw/eval-clock-cw-tx/gui.py
+++ b/sw/eval-clock-cw-tx/gui.py
@@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
-# Copyright (c) 2021 Matthias P. Braendli
+# Copyright (c) 2023 Matthias P. Braendli
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
@@ -144,6 +144,9 @@ class GUI(Frame):
def toggle_to_rx(self):
self.root.after(1000, self.send_serial, b'rx\n')
+ def send_wspr(self):
+ self.root.after(1000, self.send_serial, b'wspr\n')
+
def load_macro(self, i):
self.tx_messages.append(self.macro_widgets[i]["var"].get())
self.tx_messages_var.set(self.tx_messages)
@@ -254,10 +257,13 @@ class GUI(Frame):
self.timer_enable_checkbox.grid(column=0, row=3, columnspan=1)
- self.tx_frame = Frame(self.control_frame, borderwidth=1, relief="ridge")
- self.tx_frame.grid(column=0, row=3, sticky=(N, S, E, W))
- self.tx_button = Button(self.tx_frame, text="Receive!", command=self.toggle_to_rx)
- self.tx_button.grid(column=0, row=0, columnspan=2)
+ self.trx_frame = Frame(self.control_frame, borderwidth=1, relief="ridge")
+ self.trx_frame.grid(column=0, row=3, sticky=(N, S, E, W))
+ self.rx_button = Button(self.trx_frame, text="Receive!", command=self.toggle_to_rx)
+ self.rx_button.grid(column=0, row=0, columnspan=2)
+
+ self.tx_button = Button(self.trx_frame, text="WSPR!", command=self.send_wspr)
+ self.tx_button.grid(column=0, row=2, columnspan=1)
self.transmit_frame = Frame(self.top_frame, borderwidth=1, relief="ridge")
self.transmit_frame.grid(column=0, row=1, columnspan=2)