File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 63
63
\" \" \"
64
64
This file was automatically generated using Circuitpython_Keyboard_Layouts
65
65
\" \" \"
66
-
66
+ """
67
+ COMMON_HEADER_VERSION = """
67
68
68
69
__version__ = "0.0.0-auto.0"
69
70
__repo__ = "https://github.com/Neradoc/Circuitpython_Keyboard_Layouts.git"
@@ -470,7 +471,8 @@ def make_layout_file(layout_data):
470
471
"""make the layout file contents"""
471
472
output_file_data = (
472
473
COMMON_HEADER_COPYRIGHT
473
- + "from keyboard_layout import KeyboardLayoutBase\n "
474
+ + "from adafruit_hid.keyboard_layout_base import KeyboardLayoutBase\n "
475
+ + COMMON_HEADER_VERSION
474
476
+ f"class KeyboardLayout(KeyboardLayoutBase):\n "
475
477
" ASCII_TO_KEYCODE = (\n "
476
478
)
@@ -526,7 +528,7 @@ def output_layout_file(output_file, output_file_data):
526
528
527
529
def make_keycode_file (layout_data ):
528
530
"""make the keycode file contents"""
529
- output_file_data = COMMON_HEADER_COPYRIGHT + "class Keycode:\n "
531
+ output_file_data = COMMON_HEADER_COPYRIGHT + COMMON_HEADER_VERSION + "class Keycode:\n "
530
532
531
533
def ck (x ):
532
534
l = x [0 ]
You can’t perform that action at this time.
0 commit comments