Пример #1
0
def sushi_connected(time, server):
    tab = main_window.find_server(server)

    if not tab:
        tab = tabs.Server(name=server)
        main_window.add_server(tab)

    print_tab_notification(tab, "Connected.")
    tab.set_connected(True)
Пример #2
0
def sushi_connected(time, server):
	tab = main_window.find_server(server)

	if not tab:
		tab = tabs.Server(name = server)
		main_window.add_server(tab)

	print_tab_notification(tab, "Connected.")
	tab.set_connected(True)
Пример #3
0
def sushi_connect_attempt(time, server):
    tab = main_window.find_server(server)

    if not tab:
        tab = tabs.Server(name=server)

        main_window.add_server(tab)

        print_tab_notification(tab, "Connecting...")

    elif tab.connected:
        tab.set_connected(False)

        print_tab_notification(tab, "Reconnecting...")

    else:
        print_tab_notification(tab, "Connecting...")
Пример #4
0
def sushi_connect_attempt(time, server):
	tab = main_window.find_server(server)

	if not tab:
		tab = tabs.Server(name = server)

		main_window.add_server(tab)

		print_tab_notification(tab, "Connecting...")

	elif tab.connected:
		tab.set_connected(False)

		print_tab_notification(tab, "Reconnecting...")

	else:
		print_tab_notification(tab, "Connecting...")