Revert "Do not show tooltip window if tooltip is None or ''"

This reverts commit cdf5731d66.
This commit is contained in:
DarkPhoenix
2012-03-19 15:35:57 +04:00
parent 386496bb39
commit 753e0d1360

View File

@@ -170,21 +170,15 @@ class FittingView(d.Display):
# self.tooltip.SetTip(tooltip)
# self.tooltip.Enable(True)
if self.toolTipWindow is None:
if tooltip is not None and tooltip != "":
self.toolTipWindow = PFToolTipWindow(self, (mx+3, my+3), tooltip)
self.toolTipWindow.Show()
else:
self.toolTipWindow = None
self.toolTipWindow = PFToolTipWindow(self, (mx+3, my+3), tooltip)
self.toolTipWindow.Show()
else:
if self.lastRow != row:
self.lastRow = row
self.toolTipWindow.Show(False)
del self.toolTipWindow
if tooltip is not None and tooltip != "":
self.toolTipWindow = PFToolTipWindow(self, (mx+3, my+3), tooltip)
self.toolTipWindow.Show()
else:
self.toolTipWindow = None
self.toolTipWindow = PFToolTipWindow(self, (mx+3, my+3), tooltip)
self.toolTipWindow.Show()
else:
if self.toolTipWindow: