Table row height ignored for text
Table row height works correctly for rows with selectable but is ignored for rows with text. """ def PlotHelp(self): print("PlotHelp") dpg.delete_item(self.FileTable, children_only=True, slot=0) # remove columns dpg.delete_item(self.FileTable, children_only=True, slot=1) # remove rows dpg.add_table_column(parent=self.FileTable, label="Plot Action") dpg.add_table_column(parent=self.FileTable, label="Mouse") dpg.add_table_column(parent=self.FileTable, label="Key") actions = ["Pan Plot", "Zoom", "Zoom Region", "Unzoom", "previous file row", "next file row", "scroll left one screen", "scroll right one screen"] mouse = ["Click & Drag on plot", "Scroll Mouse Wheel", "Right Click & Drag", "Double Click", "", "", "", ""] key = ["", "", "", "", "arrow Up", "arraw down", "arrow left", "arrow right"] for i in range(len(actions)): with dpg.table_row(parent=self.FileTable, height=ROW_PXL): dpg.add_selectable(label=actions[i]) dpg.add_selectable(label=mouse[i]) dpg.add_selectable(label=key[i]) #dpg.add_text(actions[i]) #dpg.add_text(mouse[i]) #dpg.add_text(key[i])"""
Can you please use backticks, not quotes for code snippets? Or use the <> button on the formatting toolbar. The code in your description is pretty hard to read.
Also, when reporting issues, please provide the full code of a minimal example that somebody can simply copy-paste to a .py file and run. This helps developers or contributors to recreate the issue and work on it. Your current code snippet can't be run as-is, as it needs all that boilerplate code (create_context and other things).