controls/PouInstanceVariablesPanel.py
branchwxPython4
changeset 3307 eeec6e0ea269
parent 3303 0ffb41625592
child 3657 e0d6f5f0dcc2
equal deleted inserted replaced
3306:841fb2ee1213 3307:eeec6e0ea269
     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