X-Git-Url: http://git.tremily.us/?p=hooke.git;a=blobdiff_plain;f=hooke%2Fui%2Fgui%2Fdialog%2Fselection.py;h=53f2cbb73a7962013ab70115d3f90c51431a8681;hp=ff7fbb70b059558c26668b6bd4445efe339a0e42;hb=1fc27f9e070cf9667993e89ff7f43824fe66bd0c;hpb=565f9d7b69d2e4a9ea447d7a50f8f835c3e08642 diff --git a/hooke/ui/gui/dialog/selection.py b/hooke/ui/gui/dialog/selection.py index ff7fbb7..53f2cbb 100644 --- a/hooke/ui/gui/dialog/selection.py +++ b/hooke/ui/gui/dialog/selection.py @@ -1,5 +1,5 @@ -# Copyright (C) 2010 Massimo Sandal -# W. Trevor King +# Copyright (C) 2010-2011 Massimo Sandal +# W. Trevor King # # This file is part of Hooke. # @@ -49,6 +49,7 @@ class Selection (wx.Dialog): callbacks = {} self._callbacks = callbacks self._selection_style = selection_style + self.canceled = False self._c = { 'text': wx.StaticText( @@ -97,6 +98,7 @@ class Selection (wx.Dialog): def cancel(self, event): """Close the dialog. """ + self.canceled = True self.EndModal(wx.ID_CANCEL) def button(self, event):