def get_children(window: wx.Window):
    my_children = window.GetChildren()
    if (my_children is not None):
        their_children = []
        for my_child in my_children:
            their_children += get_children(my_child)
        return (list(my_children) + their_children)
    else:
        return []
def get_children(window: wx.Window):
    my_children = window.GetChildren()
    if (my_children is not None):
        their_children = []
        for my_child in my_children:
            their_children += get_children(my_child)
        return (list(my_children) + their_children)
    else:
        return []