How do I left-justify the information in the labels?

Steve Gronicus at SGA.Ninja
Sun Aug 30 07:28:54 EDT 2020


    for lineItem in range(len(ThisList)):
    
         SpecLine, Spec = GetLineByItem(ThisList[y])
         OldSpec = Spec
         NewSpec = " "

         SVRlabel = ttk.Label(window, text = SpecLine + "  "*5)
         SVRlabel.grid(column = 1, row = x)
                     
         NewSpec = tk.StringVar()
         New_Specs.append(NewSpec)
         SVRCodeEntered = ttk.Entry(window, width = 15, textvariable =
NewSpec)
         SVRCodeEntered.grid(column = 2, row = x, pady = 15)
         SVRCodeEntered.insert(0, OldSpec)
         x += 1 
         y += 1

Steve

============================================================

Footnote:
Some mornings it just isn't worth chewing through the leather straps.

- 



More information about the Python-list mailing list