use fitString to size the move coords box

This commit is contained in:
Dana Jansens 2003-01-30 23:33:53 +00:00
parent 9c0ef03876
commit f32ddbbf62

View file

@ -95,7 +95,7 @@ def _do_move():
_poplabel = otk.Label(_popwidget) _poplabel = otk.Label(_popwidget)
_poplabel.setTexture(style.labelFocusBackground()) _poplabel.setTexture(style.labelFocusBackground())
_popwidget.show(1) _popwidget.show(1)
_poplabel.resize(length, font.height()) _poplabel.fitString(text)
_poplabel.setText(text) _poplabel.setText(text)
area = otk.display.screenInfo(_screen).rect() area = otk.display.screenInfo(_screen).rect()
_popwidget.update() _popwidget.update()