def tooltip(tipparent: str, *args, parent: str = "", before: str = "", show: bool = True): """Wraps add_tooltip() and automates calling end(). Args: tipparent: Sets the item's tool tip to be the same as the named item's tool tip. name: Unique name used to programmatically refer to the item. If label is unused this will be the label, anything after "##" that occurs in the name will not be shown on screen. **parent: Parent to add this item to. (runtime adding) **before: This item will be displayed before the specified item in the parent. (runtime adding) **show: Decides if the item is shown of not. Returns: None """ try: yield internal_dpg.add_tooltip(tipparent, *args, parent=parent, before=before, show=show) finally: internal_dpg.end()
def tooltip(tipparent: str, name: str, parent: str = "", before: str = "", show: bool = True): try: yield internalDPG.add_tooltip(tipparent, name, parent=parent, before=before, show=show) finally: internalDPG.end()
def tooltip(tipparent: str, name: str, parent: str = "", before: str = ""): try: yield dpg.add_tooltip(tipparent, name, parent=parent, before=before) finally: dpg.end()