Exemple #1
0
def is_int(string):
    print "Please import deepin_utils.core.is_int, this function will departed in next release version."
    return core.is_int(string)
Exemple #2
0
def is_int(string):
    print "Please import deepin_utils.core.is_int, this function will departed in next release version."
    return core.is_int(string)
Exemple #3
0
 def is_color_value(self, string):
     return len(string) == 0 or (is_int(string) and 0 <= int(string) <= 255)
 def is_color_value(self, string):
     return len(string) == 0 or (is_int(string) and 0 <= int(string) <= 255)