Exemplo n.º 1
0
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)
Exemplo n.º 2
0
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(),
        )
    )
Exemplo n.º 3
0
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()))
Exemplo n.º 5
0
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()))