@@ -923,12 +923,6 @@ def updateObject(self, obj : wmwpy.classes.Object | None):
923
923
outline = '' ,
924
924
tags = ('part' , 'path' , property , 'pathPoint' , id ),
925
925
)
926
-
927
- self .level_canvas .tag_bind (
928
- point_id ,
929
- '<Button-1>' ,
930
- lambda e , object = obj , prop = property , id = point_id : self .selectPart (object , 'path' , id , prop )
931
- )
932
926
933
927
if is_closed :
934
928
line = self .level_canvas .create_polygon (
@@ -968,8 +962,13 @@ def onLevelClick(self, event : tk.Event):
968
962
969
963
mouse = (self .level_canvas .canvasx (event .x ), self .level_canvas .canvasy (event .y ))
970
964
971
- objects = self .level_canvas .find_overlapping (* mouse , * mouse )
965
+ # objects = self.level_canvas.find_overlapping(*mouse, *mouse)
966
+ objects = self .level_canvas .find_overlapping (
967
+ mouse [0 ] - 5 , mouse [1 ] - 5 ,
968
+ mouse [0 ] + 5 , mouse [1 ] + 5 ,
969
+ )
972
970
logging .debug (f'under mouse: { objects } ' )
971
+ # logging.debug(f'close: {close}')
973
972
length = len (objects )
974
973
975
974
for id in reversed (objects ):
@@ -1049,11 +1048,6 @@ def bindObject(self, id, obj : wmwpy.classes.Object | None = None):
1049
1048
'<Button1-Motion>' ,
1050
1049
lambda e , object = obj : self .dragObject (object , e )
1051
1050
)
1052
- self .level_canvas .tag_bind (
1053
- id ,
1054
- '<Button-1>' ,
1055
- lambda e , object = obj : self .selectObject (object , e )
1056
- )
1057
1051
1058
1052
context_menu = self .createObjectContextMenu (obj )
1059
1053
0 commit comments