#2
Z892022-06-12 14:42
|
或是在File-->貼上 把文字貼到網址欄位的效果??
程序代码:
import PySimpleGUI as sg
def ChatBota():
menu_def = [[ "File", [ '貼上' ]]]
layout = [[sg.Menu(menu_def, tearoff=True)],
[sg.T('輸入網址')],
[sg.T('網址'),sg.InputText()],
[sg.Button('儲存')] ]
window = sg.Window('表單', layout)
event, values = window.read()
ChatBota()
def ChatBota():
menu_def = [[ "File", [ '貼上' ]]]
layout = [[sg.Menu(menu_def, tearoff=True)],
[sg.T('輸入網址')],
[sg.T('網址'),sg.InputText()],
[sg.Button('儲存')] ]
window = sg.Window('表單', layout)
event, values = window.read()
ChatBota()
[此贴子已经被作者于2022-6-11 19:25编辑过]