养花网,肖龙航,加气设备
在主窗口root中放置三个容器用于容纳组件,容器采用框架设计。
import tkinter as tk root = tk.tk() root.geometry('800x600+200+200') root.title('学习框架') frame1 = tk.frame(root, bd=2, relief=tk.raised) frame1.config(bg='#ffb6c1', height=40, width=760) frame2 = tk.frame(root, bd=2, relief=tk.raised) frame2.config(bg='#00bfff', height=500, width=150) frame3 = tk.frame(root, bd=2, relief=tk.raised) frame3.config(bg='#8b008b', height=500, width=600) frame1.place(x=20, y=5) frame2.place(x=20, y=50) frame3.place(x=180, y=50) root.mainloop()
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
python求numpy中array按列非零元素的平均值案例
网友评论