Add validate before insert

This commit is contained in:
Mauricio Baeza 2020-10-31 22:48:02 -06:00
parent e024c17de9
commit e435520ede
2 changed files with 6 additions and 0 deletions

Binary file not shown.

View File

@ -46,6 +46,12 @@ class Controllers(object):
return
def cmd_insert_action(self, event):
data = self.d.text.value
if not data:
msg = _('Write some code')
app.errorbox(msg)
return
msg = _('You shure insert this equation')
if not app.question(msg):
return