You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
598 B
20 lines
598 B
import tkinter as tk
|
|
from image_panning import panning
|
|
def odwp(image):
|
|
def on_submit():
|
|
param1 = entry1.get()
|
|
param2 = entry2.get()
|
|
panning(image, param1, param2)
|
|
dialog.destroy()
|
|
|
|
dialog = tk.Toplevel()
|
|
|
|
tk.Label(dialog, text="请输入沿x轴平移的长度").pack(pady=5)
|
|
entry1 = tk.Entry(dialog)
|
|
entry1.pack(pady=5)
|
|
|
|
tk.Label(dialog, text="请输入沿y轴平移的长度").pack(pady=5)
|
|
entry2 = tk.Entry(dialog)
|
|
entry2.pack(pady=5)
|
|
|
|
tk.Button(dialog, text = "提交", command = on_submit).pack(pady = 10) |