V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  EngAPI  ›  全部回复第 4 页 / 共 19 页
回复总数  361
1  2  3  4  5  6  7  8  9  10 ... 19  
120 天前
回复了 YadongZhang 创建的主题 健康 BMI 只有 17 还有救吗
性别是?
我看《不能结婚的男人》的时候照着主角那样吃,然后胖了
120 天前
回复了 flypei 创建的主题 推广 元旦 T 楼! 送 Google One 2T + 京东 E 卡 300 元
我要参加抽奖,谢谢
120 天前
回复了 luozhiyun 创建的主题 分享发现 2023 年总结:保持心情愉悦&积极向上
感谢分享,我也要努力了
122 天前
回复了 sungo 创建的主题 Python Python tkinter 如何实现自动滚动的文本框
import tkinter as tk
from tkinter import messagebox
import threading
import queue
import time

def down():
for i in range(1, 100):
output_queue.put(f"下载附件 {i}\n")
time.sleep(0.3)
return

def on_download_click():
try:
download_thread = threading.Thread(target=down, args=())
download_thread.start()
except Exception as e:
messagebox.showerror("错误", "该日期段没有附件下载")

def update_output_text():
while not output_queue.empty():
output_text.insert(tk.END, output_queue.get())

# 检查滚动条是否在底部
scroll_position = scrollbar.get()
if not fm_main.manually_scrolled or scroll_position[1] == 1.0:
output_text.see(tk.END)

fm_main.after(100, update_output_text)

def on_scroll(*args):
# 判断滚动条是否在底部
scroll_position = scrollbar.get()
if scroll_position[1] == 1.0:
fm_main.manually_scrolled = False
else:
fm_main.manually_scrolled = True

if __name__ == '__main__':
fm_main = tk.Tk()
fm_main.title("邮件附件批量下载_v1.0")
fm_main.geometry('600x300')
fm_main.resizable(0, 0)

btn1 = tk.Button(fm_main, text="下载", font=("Arial", 13), width=25, height=2, command=on_download_click)
btn1.pack()

scrollbar = tk.Scrollbar(fm_main)
scrollbar.pack(side=tk.RIGHT, fill=tk.Y)

output_text = tk.Text(fm_main, font=("Arial", 12), width=60, height=10)
output_text.pack(side=tk.LEFT, fill=tk.BOTH)

output_text.config(yscrollcommand=scrollbar.set)
scrollbar.config(command=output_text.yview)

output_queue = queue.Queue()
fm_main.after(100, update_output_text)

output_text.bind("<MouseWheel>", on_scroll)
output_text.bind("<Button-4>", on_scroll)
output_text.bind("<Button-5>", on_scroll)

fm_main.manually_scrolled = False

fm_main.mainloop()

问的 chatgpt3.5 的,你看看能运行么?
125 天前
回复了 lgapple 创建的主题 耳机 耳机(舒适且音质不渣),求推荐
我对音质好像也没啥需求,但是感觉 TWS 不如有线的音质好。
oppo enco x ,每天听小说用,觉得挺好的。
挺坏了的话准备买个 oppo enco x2
试驾是免费的,还有零食吃,有时候还给礼品。
125 天前
回复了 zzlit 创建的主题 问与答 求推荐墨水屏阅读器
如果看英文的,首推 kindle ,你都能上这里了,导入很简单,calibre 转下 mobi 格式。
看中文的海信那个看起来小小的不错。
@fankangsong istoreos 默认开了如下端口
22 ,2049 ,53 ,32778 ,32777 ,111 ,32780
134 天前
回复了 liuhy0927 创建的主题 游戏 有没有不吃电脑配置的游戏?
星际争霸 1 ,我时不时拿出我的 x220 玩一局
免费薅来的 oracle 近 800 天在线,我觉得他们的服务稳定性不错。
建议你买个收费的 oracle 服务器
136 天前
回复了 lifi 创建的主题 Python 买了本 Python 书籍入门
加油,有其他语言的基础学这个很容易,我几乎没看书,都是搜索看语法怎么用,用实际应用入门后再细细琢磨。
137 天前
回复了 albin504 创建的主题 程序员 准备在腾讯云开发者社区写技术博客了
cnblog 不考虑一下吗?
141 天前
回复了 imes 创建的主题 旅行 泰国苏梅岛一周考察:热钱、落后和待发展
我还以为这岛很发达来着,当年嫌这里人多去了象岛,也差不多样子,怎么感觉比象岛人还少?
141 天前
回复了 shenqi 创建的主题 健康 分享下胃镜肠镜和割息肉
请问贵庚?
1  2  3  4  5  6  7  8  9  10 ... 19  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2198 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 65ms · UTC 10:29 · PVG 18:29 · LAX 03:29 · JFK 06:29
Developed with CodeLauncher
♥ Do have faith in what you're doing.