<filename>winmain/func.py
# -*- coding: utf-8 -*-

def isanum(str):
    try:
        float(str);
        return True;
    except ValueError:
        return False;

<filename>winmain/func.py
# -*- coding: utf-8 -*-

def isanum(str):
    try:
        float(str);
        return True;
    except ValueError:
        return False;

# -*- coding: utf-8 -*-