Files
QSfera/Desktop/test/gui/helpers/ElementHelper.py
T
Курнат Андрей 2315f25754 Initial QSfera import
2026-06-07 10:20:04 +03:00

6 lines
169 B
Python

def get_element_center_xy(element):
rect = element.rect
x = int(rect['x'] + (rect['width'] // 2))
y = int(rect['y'] + (rect['height'] // 2))
return x, y