Пример #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)