Skip to main content
adjusted variable names for clarity
Source Link
House
  • 73.5k
  • 17
  • 188
  • 276

Just use the maximum height of the window for your calculations:

When setting:

new_Valuepy_Y_Value = max_Screen_Height - my_Y_Value 

or when getting:

my_Y_Value = max_Screen_Height - py_Y_Value 

The best way to utilize these would be to abstract away their use in wrapper functions.

Just use the maximum height of the window for your calculations:

When setting:

new_Value = max_Screen_Height - my_Y_Value 

or when getting:

my_Y_Value = max_Screen_Height - py_Y_Value 

The best way to utilize these would be to abstract away their use in wrapper functions.

Just use the maximum height of the window for your calculations:

When setting:

py_Y_Value = max_Screen_Height - my_Y_Value 

or when getting:

my_Y_Value = max_Screen_Height - py_Y_Value 

The best way to utilize these would be to abstract away their use in wrapper functions.

Source Link
House
  • 73.5k
  • 17
  • 188
  • 276

Just use the maximum height of the window for your calculations:

When setting:

new_Value = max_Screen_Height - my_Y_Value 

or when getting:

my_Y_Value = max_Screen_Height - py_Y_Value 

The best way to utilize these would be to abstract away their use in wrapper functions.