2
확인 여러 개의 탭 핸들, 나는이 간단한 코드가 있습니다파이썬 Tkinter를 :
import tkinter.filedialog
from tkinter import *
import tkinter.ttk as ttk
root = Tk()
root.title('test')
nb = ttk.Notebook(root)
nb.pack(fill='both', expand='yes')
f1 = Text(root)
f2 = Text(root)
f3 = Text(root)
nb.add(f1, text='page1')
nb.add(f2, text='page2')
nb.add(f3, text='page3')
root.mainloop()
을하고 난 그냥 궁금, Tkinter를 그들 텍스트와 함께 여러 탭을 처리하는 가장 좋은 방법은 무엇입니까? 마치 'page2'의 모든 텍스트를 지우거나 'page3'에 무언가를 삽입하고 싶다면 어떻게하면 좋을까요?