if isVertical:
dc.DrawLine(rect.x, coord, rect.x + rect.width, coord)
else:
- dc.DrawLine(coord, rect.y, coord, rect.y + rect.width)
+ dc.DrawLine(coord, rect.y, coord, rect.y + rect.height)
rf += rstep
gf += gstep
if alignment == self._textAlignment:
return
- self._alignment = alignment
+ self._textAlignment = alignment
def GetToggled(self):
self._useHelp = True
self._freezeCount = 0
self._currentButton = -1
+ self._haveTip = False
self._art = BPArt(style)
if not self.GetUseHelp():
return
-
+
shortHelp = hit.GetShortHelp()
if shortHelp:
self.SetToolTipString(shortHelp)
+ self._haveTip = True
longHelp = hit.GetLongHelp()
if not longHelp:
if not self.GetUseHelp():
return
- self.SetToolTipString("")
+ if self._haveTip:
+ self.SetToolTipString("")
+ self._haveTip = False
if self._statusTimer and self._statusTimer.IsRunning():
topLevel = wx.GetTopLevelParent(self)