mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-25 12:24:19 +00:00
trackplacer: clean up position indicator on leaving window.
This commit is contained in:
parent
7f87e3782c
commit
f88068d6b1
@ -332,6 +332,9 @@ class TrackEditor:
|
||||
self.drawing_area.connect("motion_notify_event", self.motion_notify_event)
|
||||
self.drawing_area.connect("button_press_event", self.button_press_event)
|
||||
|
||||
self.drawing_area.connect("leave_notify_event",
|
||||
lambda w, e: self.coordwin.set_text(""))
|
||||
|
||||
self.drawing_area.set_events(gtk.gdk.EXPOSURE_MASK
|
||||
| gtk.gdk.LEAVE_NOTIFY_MASK
|
||||
| gtk.gdk.BUTTON_PRESS_MASK
|
||||
|
Loading…
x
Reference in New Issue
Block a user