20 lines
523 B
Python
20 lines
523 B
Python
import threading
|
|
from juce_init import START_JUCE_COMPONENT
|
|
from gui_test import MainContentComponent
|
|
|
|
class MyApp:
|
|
robots = [
|
|
{"name": "big", "host": "192.168.70.55", "slave_id": 11},
|
|
{"name": "small", "host": "192.168.70.65", "slave_id": 22},
|
|
]
|
|
|
|
def __init__(self):
|
|
robot = self.robots[0]
|
|
self.start_gui()
|
|
|
|
def start_gui(self):
|
|
START_JUCE_COMPONENT(MainContentComponent, name="ROBOT GUI", robots=self.robots)
|
|
|
|
if __name__ == "__main__":
|
|
MyApp()
|