I am fairly new to python, and currently working on a project. Following is my Dimension class :
class Dimension:
    dpi = 0
    padding_x = 200 * dpi
    padding_y = 100 * dpi
I am setting the dpi value from another class called Splash:
class Splash:
if __name__ == '__main__':
    Dimension.dpi = 1.6
    print("x padding : {}".format(Dimension.padding_x))  # prints 0
So my problem is, while I get the value of dpi as 1.6 if I try to print it, the corresponding value of padding_x or padding_y is 0 even after I have set dpi value. When the variable dpi's value is changed, shouldn't the padding_x or y's value also be changed?
 
    