Have been stuck on this for a few days and cannot find any mention of someone experiencing this phenomenon. I have a Treeview and I am population the top level nodes and then sub level nodes but the top level nodes are not visible. They are there and function correctly but you just cannot see them.

Here is my code:

        for row in crystals.get_crystals():
        print('view row: ', row[0])
        # TODO: The root nodes are present but not visible
        idroot.append(self.crystal_tree.insert('', 'end', row[0], text=row[0], values="aaa"))
        print('idroot:', idroot)

    for idxtal in idroot:
        for row in crystals.get_xtal_info(idxtal):
            print('view row: ', row)
            self.crystal_tree.insert('', 'end', values=row)
            # TODO: Does not show up if placed as children
            # self.crystal_tree.insert(idxtal, 'end', values=row)
            # print('row =', row)
            self.crystal_tree.configure()
    window.update()

This is what I am getting: The 2 top parent nodes do not show up

New contributor
DMonty is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

DMonty is a new contributor. Be nice, and check out our Code of Conduct.
 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.