Minor bugfixes for temporary testing
Added .gitignore
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
__pycache__/
|
||||
@@ -13,7 +13,7 @@ def create_app(test_config=None):
|
||||
global page
|
||||
global keys
|
||||
|
||||
cmds = config_parser.get_cmds()
|
||||
cmds = {} #config_parser.get_cmds()
|
||||
pages = config_parser.get_pages()
|
||||
keys = config_parser.get_keys()
|
||||
page = 'General'
|
||||
|
||||
@@ -26,16 +26,20 @@ def get_general_labels():
|
||||
'Toggle Lights':'ShipSpotLightToggle'}
|
||||
|
||||
def get_mining_labels():
|
||||
pass
|
||||
|
||||
def get_exploration_labels():
|
||||
pass
|
||||
|
||||
def get_srv_labels():
|
||||
pass
|
||||
|
||||
def get_assault_labels():
|
||||
pass
|
||||
|
||||
def get_cmds():
|
||||
cmds = {}
|
||||
tree = xml.ElementTree(file=XXX)
|
||||
tree = None #xml.ElementTree(file=XXX)
|
||||
root = tree.getroot()
|
||||
children = list(root)
|
||||
|
||||
@@ -43,7 +47,7 @@ def get_cmds():
|
||||
|
||||
for child in children:
|
||||
name = child.tag
|
||||
if not child.findall('Primary')
|
||||
if not child.findall('Primary'):
|
||||
continue
|
||||
keys = child.getchildren()
|
||||
if keys[0].attrib['Device'] == 'Keyboard':
|
||||
|
||||
Reference in New Issue
Block a user