Last active
August 19, 2021 03:39
-
-
Save a2chub/7b45cbe3c575e2197965ac2152898f75 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Keyboad(): | |
def __init__(self): | |
self.conf1 = 100 | |
self.keymap = [] | |
self.extensions = [] | |
def find_key(self, row, col): | |
return self.keymap[row][col] | |
class Extension(): | |
def __init__(self): | |
self.param1 = 100 | |
self.param2 = 200 | |
def setParam1(self, val): | |
self.param1 = val | |
def getParam1(self): | |
return self.param1 | |
def getSuperKeymap(self): | |
# Keymapほしい | |
pass | |
kbd = Keyboad() | |
my_ext = Extension() | |
kbd.extensions = [my_ext] | |
keymap = [[1,2,3],[4,5,6]] | |
kbd.keymap = keymap | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment