示例#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)
示例#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)
示例#3
0
 def is_color_value(self, string):
     return len(string) == 0 or (is_int(string) and 0 <= int(string) <= 255)
示例#4
0
 def is_color_value(self, string):
     return len(string) == 0 or (is_int(string) and 0 <= int(string) <= 255)