-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdx_qso.py
More file actions
executable file
·72 lines (57 loc) · 3.25 KB
/
dx_qso.py
File metadata and controls
executable file
·72 lines (57 loc) · 3.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
############################################################################################
#
# dx.py - Rev 1.0
# Copyright (C) 2021-5 by Joseph B. Attili, joe DOT aa2il AT gmail DOT com
#
# Keying routines for a DX CW contact.
#
############################################################################################
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
############################################################################################
from tkinter import END,E,W
from collections import OrderedDict
import sys
from default import DEFAULT_KEYING
############################################################################################
VERBOSITY=0
############################################################################################
# Keying class for ARRL VHF contests
class DX_KEYING(DEFAULT_KEYING):
def __init__(self,P,contest_name):
DEFAULT_KEYING.__init__(self,P,contest_name) #,'RAGCHEW*.txt')
# Routine to set macros for this contest
def macros(self):
MACROS = OrderedDict()
MACROS[0] = {'Label' : 'CQ' , 'Text' : 'CQ DX CQ DX DE [MYCALL] [MYCALL] K '}
MACROS[1] = {'Label' : 'CQ Reply' , 'Text' : '[CALL] de [MYCALL] TU FER THE CALL =' \
+ ' UR [RST] IN [MYSTATE] [MYSTATE] = OP [MYNAME] [MYNAME] BK'}
MACROS[2] = {'Label' : 'Reply2' , 'Text' : 'R FB [NAME], TNX FOR NICE QSO AND CU SOON 73 73 DE [MYCALL] K'}
MACROS[3] = {'Label' : 'Call?' , 'Text' : '[CALL]? '}
MACROS[3+12] = {'Label' : 'Call?' , 'Text' : 'CALL? '}
MACROS[4] = {'Label' : '[MYCALL]' , 'Text' : '[MYCALL] '}
MACROS[4+12] = {'Label' : 'His Call' , 'Text' : '[CALL] '}
MACROS[5] = {'Label' : 'Reply' , 'Text' : 'TU [RST] 73'}
MACROS[5+12] = {'Label' : 'Report' , 'Text' : 'TU [NAME] [RST] 73 '}
MACROS[6] = {'Label' : 'QTH' , 'Text' : '[MYSTATE] '}
MACROS[6+12] = {'Label' : 'AGN?' , 'Text' : 'AGN?'}
MACROS[7] = {'Label' : 'LOG QSO' , 'Text' : '[LOG]'}
MACROS[7+12] = {'Label' : 'RR' , 'Text' : 'RR'}
MACROS[8] = {'Label' : 'OP' , 'Text' : 'OP [MYNAME] [MYNAME]'}
MACROS[9] = {'Label' : '73' , 'Text' : '73'}
MACROS[9+12] = {'Label' : '73' , 'Text' : 'FB [NAME] MNY TNX E HPE CU AGN 73 DE [MYCALL] K'}
MACROS[10] = {'Label' : 'BK' , 'Text' : 'BK'}
MACROS[11] = {'Label' : 'GL' , 'Text' : 'GL'}
#MACROS[10] = {'Label' : 'V ' , 'Text' : 'V'}
#MACROS[11] = {'Label' : 'Test ' , 'Text' : 'VVV ^^^^^VVV||||| VVV'} # This works
#MACROS[11+12] = {'Label' : 'Test ' , 'Text' : 'VVV [+10]VVV[-10] VVV'} # This doesn't work - bug in nanoIO code
return MACROS