![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Tkinter
itsverycool
这个作者很懒,什么都没留下…
展开
-
用类编写Tkinter实例的正确姿势
代码来自Tkinter官方文档import tkinter as tkclass Application(tk.Frame): def __init__(self, master=None): super().__init__(master) self.master = master self.pack() self.create_widgets() def create_widgets(self): s转载 2020-08-13 16:00:40 · 3077 阅读 · 1 评论 -
在Tkinter中实时更新摄像头画面的正确姿势
def cv2VideoON(self): ''' 摄像头初始化 ''' cap=cv2.VideoCapture(0) cap.set(3, 640) cap.set(4, 480) while True: ret_flag, color_frame = cap.read() BGR_image = cv2.cvtColor(color_image, cv2.COLOR_RGB2BGR) tk_image = Image.fromar..原创 2020-08-13 15:53:51 · 1506 阅读 · 0 评论