If the treeview parent is not the problem, then your example is likely too long, as the treeview stuff is likely irrelevant noise. And I do not understand the problem from your description. Does the that fix your problem? If so, please close as 'not a bug'. Try passing that container, instead of the treeview, as the parent. You are placing them, I presume, *in* the toplevel or frame also containing the treeview. One cannot place widgets 'in a treeview', so you are actually placing the entries or comboboxes *over* a cell of the treeview. On Windows, it came with a slightly older version of tk. What OS and what tcl/tk patch version? (IDLE Help => About IDLE will show this). For destroying widget properly on focusing out. When the button would just inherit the binding, the combobox would already disappear,while selecting. If tree_const.tc_index_column_map = tree_l_op:Įntry = ttk.Combobox(self, state="readonly", values=tree_bo_ops)Įntry.insert(0, value) # put former value in entryĮntry.bind('', enter) # validate with EnterĮace(x=x, y=y, width=width, height=height,Īnchor='nw') # display entry on top of cellĪnd now is the problem: The entries are not properly destroyed when focusing out, so I assume, that the button created for combobox, is not well connected to the focus-out event. X, y, width, height = self.bbox(item, column) If not tree_const.isEntryField(self.parent_split, column) or len(self.get_children(item)): Self.parent_split = self.parent(item).split("_", 1) Item = self.identify_row(event.y) # identify item Region = self.identify_region(event.x, event.y)Ĭolumn = self.identify_column(event.x) # identify column I'm spawning entry fields in a treeview to make values editable while runtime, my codepiece: FilesĪuthor: Nikolai Ehrhardt (Nikolai Ehrhardt) Nikolai Ehrhardt, iritkatriel, terry.reedyĬreated on 20:18 by Nikolai Ehrhardt, last changed 14:59 by admin.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |