def __init__(self, root, manager, config_obj):
        
        # TODO: support drawing an actual field?
        
        self.manager = manager
        self.elements = []      # robots, walls, missles, etc
        
        field_size = config_obj['pyfrc']['field']['w'], \
                     config_obj['pyfrc']['field']['h']
        px_per_ft = config_obj['pyfrc']['field']['px_per_ft']
        
        # setup board characteristics -- cell size is 1ft
        self.cols, self.rows = field_size
        self.margin = 5
        self.cellSize = px_per_ft
        self.canvasWidth = 2*self.margin + self.cols*self.cellSize
        self.canvasHeight = 2*self.margin + self.rows*self.cellSize
        
        self.canvas = tk.Canvas(root, width=self.canvasWidth, height=self.canvasHeight)
        self.canvas.bind("<Key>", self.on_key_pressed)
        self.canvas.bind("<Button-1>", self.on_click)
        
        self.text_id = None
        
        # Draw the field initially
        self.draw_field()
        
        # Load elements from the config
        # -> This probably belongs somewhere else
        self._load_field_elements(px_per_ft, config_obj['pyfrc']['field']['objects'])
Using this method before you do action of any native element in mobile. 
dataset/ETHPy150Open robotpy/pyfrc/lib/pyfrc/sim/field/field.py/RobotField.__init__--crossover with--dataset/ETHPy150Open luisxiaomai/robotframework-anywherelibrary/src/AnywhereLibrary/base/util.py/Util.switch_to_native