Commits

Anonymous committed b9a94cc

Removed dependency on .this

  • Participants
  • Parent commits c10e99f
  • Branches Boa_0-4-0_pre

Comments (0)

Files changed (2)

Views/Designer.py

             sze = childCtrl.GetSize()
             realParent = childCtrl.GetParent()
             # Compensate for BlankWindowPages's offset
-            if realParent.this[:8] != \
-                  self.objects[officialParent][1].this[:8]:
+            if realParent != self.objects[officialParent][1]:
                 offset[0] += realParent.GetPosition().x
                 offset[1] += realParent.GetPosition().y
 

Views/SelectionTags.py

         # Put selection around control
 
         # Begin a drag, don't drag frame
-        if ctrl.this != self.designer.this:
+        if ctrl != self.designer:
             self.dragging = true
             self.dragOffset = pos
             self.showFramedTags(None)
             self.selCompn = None
             self.inspSel = None
         else:
-            if ctrl.this == self.designer.this:
+            if ctrl == self.designer:
                 self.name = ''
                 self.parent = ctrl
                 cp = (0, 0)