赞
踩
- import tkinter as tk
- from tkinter import font
-
- window = tk.Tk()
- window.title('entry和text')
- window.geometry('400x400')
-
- # entry(类似于textbox 文本输入框)
- entry = tk.Entry(window, show=None, width=20)
- entry_password = tk.Entry(window, show='*')
- entry.pack()
- entry_password.pack()
-
- # button
- def insert_start():
- var = entry.get()
- # 在光标处插入值
- text.insert('insert',var)
- return
-
- def insert_end():
- var = entry.get()
- # 在光标处插入值
- text.insert('end',var)
- return
-
- def insert_position():
- var
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。