Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'darwin': 'icon-dark.png',
'linux': 'icon-light.png',
'win32': 'icon-light.png'}[sys.platform])),
menu=menu(
item(
_('Connect mobile device...'),
href('qr')),
item(
_('Require access code to connect'),
access_token_toggle,
checked=lambda i: bool(configuration.ACCESS_TOKEN)),
menu.SEPARATOR,
item(
_('Help'),
href('help')),
menu.SEPARATOR,
item(
_('Exit'),
lambda icon: icon.server.stop())))
configuration.SERVER_URL),
icon=PIL.Image.open(
resource.open_stream(
{
'darwin': 'icon-dark.png',
'linux': 'icon-light.png',
'win32': 'icon-light.png'}[sys.platform])),
menu=menu(
item(
_('Connect mobile device...'),
href('qr')),
item(
_('Require access code to connect'),
access_token_toggle,
checked=lambda i: bool(configuration.ACCESS_TOKEN)),
menu.SEPARATOR,
item(
_('Help'),
href('help')),
menu.SEPARATOR,
item(
_('Exit'),
lambda icon: icon.server.stop())))