파이썬 How to change the color of certain words in the tkinter text widget?
나는 파이썬 셸처럼되고 싶은 프로그램을 가지고 있으며, 특정 단어를 입력 할 때 색상을 변경합니다. 도움이 필요하세요? 해결 방법 다음은 tag_configure , tag_add 및 tag_remove 메소드를 사용하는 예입니다. #!/usr/bin/env python3 import tkinter as tk from tkinter.font import Font class Pad(tk.Frame): def __init__(self, parent, *args, **kwargs): tk.Frame.__init__(self, parent, *args, **kwargs) self.toolbar = tk.Frame(self, bg="#eee") self.toolbar.pack(side="top", fill="x"..
2021. 1. 26.