diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-30 21:11:04 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-30 21:11:04 +0000 |
| commit | bb6ac36d410ba62bc8bb481dd6461a30aace42fd (patch) | |
| tree | da693a2562ccb3f14671d5ac76a9fbf901a0ba89 /scripts | |
| parent | 225d4302d0b2bd40d03d3bfa54116c0adfe3143e (diff) | |
working popups for moving/resizing
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/focus.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/focus.py b/scripts/focus.py index 5ae40cf2..adba3725 100644 --- a/scripts/focus.py +++ b/scripts/focus.py @@ -203,12 +203,12 @@ def _create_popup_list(data): t = t[:24] + "..." + t[-24:] titles.append(t) _list_windows.append(c) - l = font.measureString(t) + 10 # add margin + l = font.measureString(t) if l > longest: longest = l if len(titles) > 1: for t in titles: w = otk.FocusLabel(_list_widget) - w.resize(longest, height) + w.fitSize(longest, height) w.setText(t) w.unfocus() _list_labels.append(w) |
