示例#1
0
 def notification(self, compn, action):
     WindowDTC.notification(self, compn, action)
     if action == 'delete':
         for propName, typeName in (('ImageListSmall', 'wx.IMAGE_LIST_SMALL'),
                                    ('ImageListNormal', 'wx.IMAGE_LIST_NORMAL')):
             imgLst, imgLstType = self.GetImageList(propName)
             if imgLst and `imgLst` == `compn.control`:
                 self.SetImageList(propName, (None,))
                 idx = 0
                 while idx < len(self.textPropList):
                     prop = self.textPropList[idx]
                     if prop.prop_setter == 'SetImageList' and \
                           prop.params[1] == typeName:
                         del self.textPropList[idx]
                     else:
                         idx = idx + 1
示例#2
0
 def notification(self, compn, action):
     WindowDTC.notification(self, compn, action)
     if action == 'delete':
         for propName, typeName in (('ImageListSmall',
                                     'wx.IMAGE_LIST_SMALL'),
                                    ('ImageListNormal',
                                     'wx.IMAGE_LIST_NORMAL')):
             imgLst, imgLstType = self.GetImageList(propName)
             if imgLst and ` imgLst ` == ` compn.control `:
                 self.SetImageList(propName, (None, ))
                 idx = 0
                 while idx < len(self.textPropList):
                     prop = self.textPropList[idx]
                     if prop.prop_setter == 'SetImageList' and \
                           prop.params[1] == typeName:
                         del self.textPropList[idx]
                     else:
                         idx = idx + 1
示例#3
0
 def notification(self, compn, action):
     WindowDTC.notification(self, compn, action)
     if action == 'delete':
         if `self.control.GetImageList()` == `compn.control`:
             self.propRevertToDefault('ImageList', 'SetImageList')
             self.control.SetImageList(None)
示例#4
0
 def notification(self, compn, action):
     WindowDTC.notification(self, compn, action)
     if action == 'delete':
         if ` self.control.GetImageList() ` == ` compn.control `:
             self.propRevertToDefault('ImageList', 'SetImageList')
             self.control.SetImageList(None)