position is a function
This commit is contained in:
parent
56d2f942ae
commit
299f7ad213
1 changed files with 2 additions and 2 deletions
|
@ -105,8 +105,8 @@ def _place_popup():
|
||||||
except: x = y = 0
|
except: x = y = 0
|
||||||
if x < 0: x += area.right() - size.width() + 2
|
if x < 0: x += area.right() - size.width() + 2
|
||||||
if y < 0: y += area.bottom() - size.height() + 2
|
if y < 0: y += area.bottom() - size.height() + 2
|
||||||
x += area.position.x()
|
x += area.position().x()
|
||||||
y += area.position.y()
|
y += area.position().y()
|
||||||
_popwidget.moveresize(otk.Rect(x, y, size.width(), size.height()))
|
_popwidget.moveresize(otk.Rect(x, y, size.width(), size.height()))
|
||||||
|
|
||||||
def _motion_grab(data):
|
def _motion_grab(data):
|
||||||
|
|
Loading…
Reference in a new issue