fix 字符串差异+1
This commit is contained in:
parent
28568a1792
commit
faad4c385e
BIN
scripts.db
BIN
scripts.db
Binary file not shown.
@ -1,6 +1,5 @@
|
|||||||
import tkinter as tk
|
import tkinter as tk
|
||||||
from tkinter import ttk
|
from tkinter import ttk
|
||||||
import pyperclip
|
|
||||||
from tkinter import messagebox
|
from tkinter import messagebox
|
||||||
|
|
||||||
def create_ui(parent, run_callback):
|
def create_ui(parent, run_callback):
|
||||||
@ -51,14 +50,6 @@ def create_ui(parent, run_callback):
|
|||||||
output_scroll.grid(row=5, column=2, sticky=(tk.N, tk.S))
|
output_scroll.grid(row=5, column=2, sticky=(tk.N, tk.S))
|
||||||
output_text["yscrollcommand"] = output_scroll.set
|
output_text["yscrollcommand"] = output_scroll.set
|
||||||
|
|
||||||
def copy_output(event):
|
|
||||||
output = output_text.get("1.0", tk.END).strip()
|
|
||||||
if output:
|
|
||||||
pyperclip.copy(output)
|
|
||||||
messagebox.showinfo("提示", "输出已复制到剪贴板")
|
|
||||||
|
|
||||||
output_text.bind("<Button-1>", copy_output)
|
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
input1 = input_entry1.get("1.0", tk.END).strip()
|
input1 = input_entry1.get("1.0", tk.END).strip()
|
||||||
input2 = input_entry2.get("1.0", tk.END).strip()
|
input2 = input_entry2.get("1.0", tk.END).strip()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user