私はこれに対する解決策を非常に長い間探しています。関数「overridedirect()」のように、Tk ウィンドウのタイトルバーを削除したい。その機能に関する私の問題は、OS のタスクバーにアイコンがないことです。「root.attributes("-fullscreen", 1)」でも試して、縮小しようとしましたが、それもうまくいきません。誰かが良い解決策を知っていることを願っています、助けてくれてありがとう!
私のコードは次のようになります。
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()