From c27035a029cdcbfb854ea0760fd083b5d8870c6d Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Mon, 4 Dec 2023 19:17:06 +0100 Subject: Use of orderedDict in order to give higher priority to custom layer --- macropad.pyw | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'macropad.pyw') diff --git a/macropad.pyw b/macropad.pyw index 2687065..55bb1cf 100755 --- a/macropad.pyw +++ b/macropad.pyw @@ -25,8 +25,10 @@ config_file = path.join(script_path, "config.ini") config = configparser.ConfigParser(delimiters="=") config.read(config_file) +from collections import OrderedDict + init_mapping = config["mapping"] -mapping = dict(init_mapping) +mapping = OrderedDict(init_mapping) from queue import Queue q = Queue() -- cgit v1.2.3