1
나는 이것을위한 해결책을 아주 오랫동안 찾고 있습니다. "overridedirect()"함수와 마찬가지로 Tk 윈도우의 Titlebar를 삭제하고 싶습니다. 이 기능의 문제점은 OS의 작업 표시 줄에 아이콘이 없다는 것입니다. "root.attributes ("- fullscreen ", 1)"로 시도해 보았지만 크기를 줄이려고했으나 작동하지 않습니다. 누군가가 좋은 해결책을 알고 있기를 바랍니다. 감사합니다.Python Tkinter 제목 줄을 삭제하십시오
내 코드는 지금 가지 다음과 같습니다
from tkinter import *
class Main(Frame):
def __init__(self, root):
**...**
#There are more classes after this one, but defined the same way
def main():
root = Tk()
root.geometry("800x400+0+0")
root.minsize(700, 400)
root.title("Title")
#root.overrideredirect(True)
#root.iconify()
##root.attributes('-topmost', 1)
##root.attributes("-fullscreen", 1)
##root.wm_state("zoomed")
if __name__ == "__main__":
main()