robotools / robofab

RoboFab
http://robofab.org
Other
108 stars 31 forks source link

Return None in AskString dialog when cancel is pressed #60

Closed jenskutilek closed 8 years ago

jenskutilek commented 8 years ago

AskString always returned the input string, even when the dialog was cancelled.

This patch returns None when the dialog is cancelled. We might also opt to return -1 instead, that's what vanilla.dialogs.AskYesNoCancel does.