def feedback(): panel = ui.LinearLayoutWidget() panel.add( ui.Label( 'Leaving comments with logs will help me diagnose\npotential problems with game speed and\nunexpected behaviour.' )) panel.add( ui.Button('Leave a comment with a log (preferred)', lambda: sync.comment(sync.get_install_time(), True))) panel.add( ui.Button('Leave a comment without a log', lambda: sync.comment(sync.get_install_time(), False))) ui.set(panel)
def tell_civsync(): ui.async( lambda: sync.request_with_sid( "/sync/register", key=features.get("civsync.key"), secret=features.get("civsync.secret"), install_time=sync.get_install_time(), ) )
def feedback(): panel = ui.LinearLayoutWidget() panel.add(ui.Label('Leaving comments with logs will help me diagnose\npotential problems with game speed and\nunexpected behaviour.')) panel.add(ui.Button('Leave a comment with a log (preferred)', lambda: sync.comment(sync.get_install_time(), True))) panel.add(ui.Button('Leave a comment without a log', lambda: sync.comment(sync.get_install_time(), False))) ui.set(panel)
def tell_civsync(): ui.async(lambda: sync.request_with_sid('/sync/register', key=features.get('civsync.key'), secret=features.get('civsync.secret'), install_time=sync.get_install_time()))
def tell_civsync(): ui. async ( lambda: sync.request_with_sid('/sync/register', key=features.get('civsync.key'), secret=features.get('civsync.secret'), install_time=sync.get_install_time()))