def main(): signal.signal(signal.SIGINT, eee) print("main") pycrow.diagnostic(True) pycrow.create_udpgate(12, 10020) pycrow.start_spin() corenode = pycrow.libcrow.PyNode(incoming_packet, undelivered_packet) corenode.bind(12) #corenode = pycrow.create_node( # incoming_handler = incoming_handler, # undelivered_handler = undelivered_handler #) #corenode.bind(1) pycrow.join_spin()
s.set_status(k, v == 1) s.update() except Exception as ex: pass print("A") crowker_address = pycrow.address(".12.192.168.1.39:10009") pycrow.create_udpgate(12, 0) pycrow.diagnostic_setup(True, False) print("B") sub = pycrow.subscriber(incoming) sub.subscribe(crowker_address, "system_status", 2, 50, 2, 50) print("C") pycrow.start_spin() pycrow.start_resubscribe_thread(1000) print("D") s = StatusWidget(["aidan", "base", "base-user"], cols=3) s.set_status("base", True) # sub.resubscribe() print("Display") disp(s, 1, 1) print("Show") show()