add in_menu option to registering commands so that barcodes don't show up in the menu for parameterized methods.

workspace
Brendan Howell 4 years ago
parent a398bc044e
commit e2c80dbf48

@ -234,11 +234,12 @@ class Bureau(object):
self.lp["name"] = printcfg["largeprinter"]["name"]
self.lp["papersize"] = printcfg["largeprinter"]["papersize"]
self.lp["duplex"] = printcfg["largeprinter"].getboolean("duplex")
except KeyError:
except KeyError as err:
print(err)
# TODO: eventually refactor this since it could overwrite a half-broken config
sp_dict = {"vendorid": "", "productid": "", "inep": "",
"outep": "", "width": "384", "textwidth": "32",
"profile", None}
"profile", ""}
lp_dict = {"name": "", "papersize": "A4", "duplex": "False"}
printcfg["smallprinter"] = sp_dict
printcfg["largeprinter"] = lp_dict

Loading…
Cancel
Save