Tk Source Code

Ticket Change Details
Login
Overview

Artifact ID: 195653b5264d4db915b8a3d98ae7c653b223b169
Ticket: 8b1cc43f740e54b1148e332fde8f6566b40a1f78
tabs: numeric justification is not working
User & Date: bll 2017-07-04 22:18:23
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    From the test script, it can be seen in the 'c' and 'e' characters that
    right,center,left are working.  
    
    Numeric is not aligned to the decimal point.
    
    
    package require Tk
    
    set fixedFont {"Courier New" -12}
    
    frame .f -width 100 -height 20
    pack .f -side left
    text .t -font $fixedFont -width 60 -height 10
    pack .t -expand 1 -fill both
    
    .t delete 1.0 end
    .t tag configure x -tabs [list 30 left 60 right 90 left 120 right 140 left]
    .t tag configure z -tabs [list 30 numeric 60 numeric 90 numeric 120 numeric 140 left]
    .t tag configure c -tabs [list 30 center 60 center 90 center 120 center 140 left]
    .t tag configure y -tabs [list 30 60 90 120 140]
    .t insert 1.0 "a\tb\tc\td\te\tmixed\n"
    .t insert 2.0 "1.5\t1.4\t1.3\t1.2\t1.1\tnumeric\n"
    .t insert 3.0 "a\tb\tc\td\te\tcenter\n"
    .t insert 4.0 "a\tb\tc\td\te\tleft\n"
        .t tag add x 1.0 2.0
        .t tag add z 2.0 3.0
        .t tag add c 3.0 4.0
        .t tag add y 4.0 end
    
  5. foundin changed to: "revised_text"
  6. is_private changed to: "0"
  7. login: "bll"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "bll"
  13. subsystem changed to: "18. [text]"
  14. title changed to: "tabs: numeric justification is not working"
  15. type changed to: "Bug"