Minor bugfixes for temporary testing

Added .gitignore
This commit is contained in:
Autumn Naber
2022-02-22 12:04:12 -08:00
parent c5b61eee0a
commit 13012dc779
3 changed files with 8 additions and 3 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
__pycache__/

View File

@@ -13,7 +13,7 @@ def create_app(test_config=None):
global page global page
global keys global keys
cmds = config_parser.get_cmds() cmds = {} #config_parser.get_cmds()
pages = config_parser.get_pages() pages = config_parser.get_pages()
keys = config_parser.get_keys() keys = config_parser.get_keys()
page = 'General' page = 'General'

View File

@@ -26,16 +26,20 @@ def get_general_labels():
'Toggle Lights':'ShipSpotLightToggle'} 'Toggle Lights':'ShipSpotLightToggle'}
def get_mining_labels(): def get_mining_labels():
pass
def get_exploration_labels(): def get_exploration_labels():
pass
def get_srv_labels(): def get_srv_labels():
pass
def get_assault_labels(): def get_assault_labels():
pass
def get_cmds(): def get_cmds():
cmds = {} cmds = {}
tree = xml.ElementTree(file=XXX) tree = None #xml.ElementTree(file=XXX)
root = tree.getroot() root = tree.getroot()
children = list(root) children = list(root)
@@ -43,7 +47,7 @@ def get_cmds():
for child in children: for child in children:
name = child.tag name = child.tag
if not child.findall('Primary') if not child.findall('Primary'):
continue continue
keys = child.getchildren() keys = child.getchildren()
if keys[0].attrib['Device'] == 'Keyboard': if keys[0].attrib['Device'] == 'Keyboard':