python怎么添加分割线
其他问答
1
window下怎么写分割线的代码,还是说只能再root下写分割线?
# -*- coding: utf-8 -*-
import tkinter as tk
import tkinter.messagebox
import pickle
# 窗口
window = tk.Tk()
window.title('窗体')
window.geometry('1500x800')
window.mainloop() #主循环
-
import tkinter as tk from tkinter import ttk window = tk.Tk() window.geometry('320x240') a=tk.Button(window,text='Button') a.pack() b=ttk.Separator(window,orient='horizontal') b.pack(fill=tk.X) window.mainloop()
-
import tkinter as tk from tkinter import ttk window = tk.Tk() window.geometry('320x240') a=tk.Button(window,text='Button') a.pack() b=ttk.Separator(window,orient='horizontal') b.pack(fill=tk.X) window.mainloop()
发表回复