equal
deleted
inserted
replaced
1 #!/usr/bin/env python |
1 #.!/usr/bin/env python |
2 # -*- coding: utf-8 -*- |
2 # -*- coding: utf-8 -*- |
3 |
3 |
4 # This file is part of Beremiz, a Integrated Development Environment for |
4 # This file is part of Beremiz, a Integrated Development Environment for |
5 # programming IEC 61131-3 automates supporting plcopen standard and CanFestival. |
5 # programming IEC 61131-3 automates supporting plcopen standard and CanFestival. |
6 # |
6 # |
91 images_bbx = self.GetItemRightImagesBBox(item) |
91 images_bbx = self.GetItemRightImagesBBox(item) |
92 |
92 |
93 rect = wx.Rect(images_bbx.x + 4, images_bbx.y + 4, |
93 rect = wx.Rect(images_bbx.x + 4, images_bbx.y + 4, |
94 r_image_w, r_image_h) |
94 r_image_w, r_image_h) |
95 for r_image in rightimages: |
95 for r_image in rightimages: |
96 if rect.Inside(point): |
96 if rect.Contains(point): |
97 return r_image |
97 return r_image |
98 rect.x += r_image_w + 4 |
98 rect.x += r_image_w + 4 |
99 |
99 |
100 return None |
100 return None |
101 |
101 |