| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | 1 | import cv2, PySimpleGUI as sg | |
| 2 | - window, cap = sg.Window('Demo Application - OpenCV Integration', [[sg.Image(filename='', key='image')], ], location=(800, 400)), cv2.VideoCapture(0) | ||
| 2 | + window, cap = sg.Window('Demo Application - OpenCV Integration', [[sg.Image(key='-IMAGE-')], ], location=(800, 400)), cv2.VideoCapture(0) | ||
| 3 | 3 | while window(timeout=20)[0] is not None: | |
| 4 | - window['image'](data=cv2.imencode('.png', cap.read()[1])[1].tobytes()) | ||
| 4 | + window['-IMAGE-'](data=cv2.imencode('.png', cap.read()[1])[1].tobytes()) | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | #!/usr/bin/python3 | |
| 2 | - version = __version__ = "4.40.0 Released 26-Apr-2021" | ||
| 2 | + version = __version__ = "4.40.0.1 Unreleased\nFix for scrollable Column showing can be scrolled when the contents are actually smaller" | ||
| 3 | 3 | ||
| 4 | 4 | __version__ = version.split()[0] # For PEP 396 and PEP 345 | |
| 5 | 5 | ||
@@ -6283,6 +6283,8 @@ def resize_frame(self, e): | |||
| 6283 | 6283 | self.canvas.itemconfig(self.frame_id, height=e.height, width=e.width) | |
| 6284 | 6284 | ||
| 6285 | 6285 | def yscroll(self, event): | |
| 6286 | + if self.canvas.yview() == (0.0, 1.0): | ||
| 6287 | + return | ||
| 6286 | 6288 | if event.num == 5 or event.delta < 0: | |
| 6287 | 6289 | self.canvas.yview_scroll(1, "unit") | |
| 6288 | 6290 | elif event.num == 4 or event.delta > 0: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments