def test_tk_index_conversion(self):
        """
        Test conversion to and from a tk index to a tuple
        """
        values = {  # tk index -> expected
            "1.0": (0, 0),
            "1.1": (0, 1),
            "2.0": (1, 0),
            "2.2": (1, 2),
            "10.11": (9, 11),
            "9.2": (8, 2),
        }
        terminal = self.tc()
        for tki in values:
            expected = values[tki]
            converted = terminal._tk_index_to_tuple(tki)
            self.assertEqual(converted, expected)
            # convert back
            back = terminal._tuple_to_tk_index(converted)
            self.assertEqual(back, tki)

        Test conversion to and from a tk index to a tuple
        
tests/ui/test_tkui.py