click deactivate

This commit is contained in:
Frank DeMarco 2014-03-11 14:17:54 +09:00
parent ba48810f34
commit 97118c3336
1 changed files with 8 additions and 4 deletions

View File

@ -463,10 +463,14 @@ class GUI(Animation):
self.get_nodeset().remove(marker.node)
self.store_in_configuration()
redraw = True
if redraw:
self.set_y_range()
self.set_markers()
self.draw()
elif self.active and self.prompt.active and \
not self.prompt.rect.collidepoint(event.pos):
self.prompt.deactivate()
redraw = True
if redraw:
self.set_y_range()
self.set_markers()
self.draw()
def set_node(self, text, index):
result = match("^\s*(-{,1}\d*\.{,1}\d*)\s+(-{,1}\d*\.{,1}\d*)\s*$",