|
楼主 |
发表于 2021-10-25 23:47:19
|
显示全部楼层
root = tk.Tk()root.title("查询")
root.geometry("700x670+480+80")
tk.Label(root, text='输入地址', font=('', 12)).place(x=10, y=10, anchor='nw')
add = tk.Entry(root, show=None, width=68, font=('', 12))
add.place(x=90, y=10)
find = tk.Button(root, text="查询", width=10, height=1, command=th)
find.place(x=645, y=5)
style = ttk.Style() # 更改字体大小
style.configure("Treeview", font=(None, 12))
columns = ("Name","price","startime","stoptime")
treeview = ttk.Treeview(root, height=20, show="headings", columns=columns) # 表格
treeview.column("Name", width=250, anchor='sw')
treeview.column("price", width=200, anchor='center')
treeview.column("startime", width=150, anchor='center')
treeview.column("stoptime", width=150, anchor='center')
treeview.heading("Name", text="名称")
treeview.heading("price", text="金额")
treeview.heading("startime", text="开始时间")
treeview.heading("stoptime", text="结束时间")
treeview.place(x=5, y=40)
treeview.bind("<ButtonRelease-1>", treeviewClick) # 左键
treeview.bind("<ButtonRelease-3>", treeviewClick2) # 右键
root.mainloop()
就这种普通的gui嘛,怎么才能加广告,有什么广告联盟吗
|
|