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 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'
|
||||||
|
|||||||
@@ -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':
|
||||||
|
|||||||
Reference in New Issue
Block a user