두 개의 텍스트 위젯이 tkinter 창에 있습니다. 내 문제는 두 번째 줄의 빈 테두리가 첫 번째 줄의 일부를 숨기고 있다는 것입니다.Python 용 Tkinter 용 텍스트 위젯에서 빈 경계 제거
내가 http://effbot.org/tkinterbook/text.htm
보았지만 모든 기본 보더 물건이 0 여기
내 코드가 설정되어, 감사합니다!
import Tkinter, tkFont, random
root=Tkinter.Tk()
root.geometry('+%d+%d' % (0,0)) #controls where the window is
root.geometry('%dx%d' % (600,350)) #controls window size
root.config(background="#fff")
firstLine = "First Line"
secondLine = "Second Line"
customFont = tkFont.Font(family="Agency FB",
size=100,
weight="bold")
text1 = Tkinter.Text(root,
font=customFont,
background="#fff",
fg="#000",
relief="flat")
text1.insert("end",firstLine)
text1.config(state='disabled')
text1.place(x=10,y=10) #controls where the text is placed
text2 = Tkinter.Text(root,
font=customFont,
background="#fff",
fg="#000",
relief="flat")
text2.insert("end",secondLine)
text2.config(state='disabled')
text2.place(x=10,y=125) #controls where the number is placed
root.mainloop()
이것은 단지 이것과 중복되지 않습니다 : http://stackoverflow.com/questions/23693586/removing-line-seperation-of-widgets-on-tkinter? 그 다른 질문에 대한 답변에서 주어진 조언을 시도 했습니까? –
"borderwidth = 0, highlightthickness = 0 옵션"으로 변경하고 수정하지 않았습니다. 어쩌면 충분히 명확하지 않을 수도 있습니다. 나는 여기에 그림이 있기 때문에 단어가 나쁘다 : http://oi62.tinypic.com/34658nn.jpg –
Kevin. 나는 그것을해야한다고 알려야했다. ... –