Python27-try/except issue

26 Views Asked by At

Why the else function not running after below, it can be saved:

def OnButtonSavedata(default):
    Number=numberctrl.GetValue()
    if len(Number)==9:
        try:
            float(Number)
        except ValueError:
            wx.MessageBox('Just number please','Info',wx.OK|wx.ICON_INFORMATION)
    else:..

Please help me what I left off.

Thanks

0

There are 0 best solutions below