controls/CustomStyledTextCtrl.py
changeset 1847 6198190bc121
parent 1747 6046ffa2280f
child 1878 fb73a6b6622d
equal deleted inserted replaced
1846:14b40afccd69 1847:6198190bc121
    93         self.Bind(wx.EVT_MOTION, self.OnMotion)
    93         self.Bind(wx.EVT_MOTION, self.OnMotion)
    94 
    94 
    95     def OnMotion(self, event):
    95     def OnMotion(self, event):
    96         if wx.Platform == '__WXMSW__':
    96         if wx.Platform == '__WXMSW__':
    97             if not event.Dragging():
    97             if not event.Dragging():
    98                 x, y = event.GetPosition()
    98                 x, _y = event.GetPosition()
    99                 margin_width = reduce(
    99                 margin_width = reduce(
   100                         lambda x, y: x + y,
   100                         lambda x, y: x + y,
   101                         [self.GetMarginWidth(i)
   101                         [self.GetMarginWidth(i)
   102                          for i in xrange(3)],
   102                          for i in xrange(3)],
   103                         0)
   103                         0)