From: SourceForge.net <no...@so...> - 2012-02-09 10:26:21
|
Bugs item #3294450, was opened at 2011-04-28 08:10 Message generated for change (Comment added) made by juergen18 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=3294450&group_id=12997 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 88. Themed Tk Group: obsolete: 8.5.9 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Harald Oehlmann (oehhar) Assigned to: Joe English (jenglish) Summary: Ttk label does not show multiline text if widget clipped Initial Comment: Given a ttk label widget with two text lines like: "ABCDEF ABC" The widget is packed in such a way, theat the x space is not sufficient and the last character of the first line is not shown. In this case, the output is: "ABCDE " thus the second row is empty. IMHO it should be: "ABCDE ABC" Test code: % pack [ttk::label .l -text [string repeat 1234567890 10]\nrow2\nrow3] % wm resizable . 1 1 Resize the window in x direction until the first text line is clipped. Platform: Windows Vista Pro 32 bit wish 8.5.9 self compiled with MSVC6 ---------------------------------------------------------------------- Comment By: juergen gohlke (juergen18) Date: 2012-02-09 02:26 Message: The bug can also be reproduced in (self compiled) Tk 8.5.11 on Linux Centos 5.7 with X Protocol Version 11, Revision 0, Release 7.1.1 xorg-x11-server 1.1.1-48.76.el5_7.5. In addition, when one line is too long for the widget space on the screen, that line and all following lines are invisible. test: pack [ttk::label .ttklabel -text first\n[string repeat "word " 80]\nlast -anchor w -justify left] -side top ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=3294450&group_id=12997 |