So I’m trying to do the homework section here http://pyblish.com/pyblish-starter/#homework
The first assignment is the easy one to make a loader tool tip.
I’m having a super hard time to actually get the tooltip to show up: Here’s my code:
def on_next(): if not state["running"]: return on_finished() try: asset = next(assets) except StopIteration: return on_finished() has["assets"] = True item = QtWidgets.QListWidgetItem(asset["name"]) item.setToolTip("asset info goes here") item.setData(QtCore.Qt.ItemIsEnabled, True) item.setData(AssetRole, asset) listing.addItem(item) lib.defer(25, on_next)
Is item.setToolTip(“asset info goes here”) not the way you would get a tooltip to appear?