screenoverlay 0.4.1__py3-none-any.whl → 0.4.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
screenoverlay/overlay.py CHANGED
@@ -165,16 +165,22 @@ class NativeBlurOverlay:
165
165
  cmd = command_queue.get_nowait()
166
166
  if cmd == 'show':
167
167
  for win in self.windows:
168
- win.deiconify()
169
- win.lift()
168
+ try:
169
+ win.deiconify()
170
+ win.lift()
171
+ except Exception as e:
172
+ print(f"Warning: Failed to show window: {e}")
170
173
  elif cmd == 'hide':
171
174
  for win in self.windows:
172
- win.withdraw()
175
+ try:
176
+ win.withdraw()
177
+ except Exception as e:
178
+ print(f"Warning: Failed to hide window: {e}")
173
179
  elif cmd == 'stop':
174
180
  self.root.quit()
175
181
  return
176
- except:
177
- pass
182
+ except Exception as e:
183
+ print(f"Warning: Command queue error: {e}")
178
184
 
179
185
  # Check again in 10ms
180
186
  self.root.after(10, check_commands)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: screenoverlay
3
- Version: 0.4.1
3
+ Version: 0.4.2
4
4
  Summary: Cross-platform screen overlay with blur, black, white, and custom modes
5
5
  Home-page: https://github.com/pekay-ai/screenoverlay
6
6
  Author: Pekay
@@ -107,6 +107,10 @@ Overlay(mode='white').activate(duration=1)
107
107
 
108
108
  # Custom colored overlay
109
109
  Overlay(mode='custom', color_tint=(255, 100, 100), opacity=0.7).activate()
110
+
111
+ # Multi-monitor control
112
+ Overlay(mode='blur', all_screens=True).activate(duration=5) # Blur all monitors (default)
113
+ Overlay(mode='blur', all_screens=False).activate(duration=5) # Blur only primary monitor
110
114
  ```
111
115
 
112
116
  Press `ESC` to dismiss the overlay early.
@@ -222,7 +226,8 @@ Overlay(
222
226
  mode='blur', # 'blur', 'black', 'white', 'custom'
223
227
  blur_strength=3, # 1-5 (only for mode='blur')
224
228
  opacity=0.85, # 0.0-1.0
225
- color_tint=(136, 136, 136) # RGB tuple (0-255)
229
+ color_tint=(136, 136, 136), # RGB tuple (0-255)
230
+ all_screens=True # True = all monitors, False = primary only
226
231
  )
227
232
  ```
228
233
 
@@ -234,6 +239,7 @@ Overlay(
234
239
  | `blur_strength` | int | `3` | Blur intensity 1-5 (only for blur mode) |
235
240
  | `opacity` | float | `0.85` | Window opacity 0.0 (transparent) to 1.0 (opaque) |
236
241
  | `color_tint` | tuple | `(136, 136, 136)` | RGB color values (0-255) |
242
+ | `all_screens` | bool | `True` | If `True`, blur all monitors. If `False`, blur only primary monitor |
237
243
 
238
244
  ### `activate()` Method
239
245
 
@@ -0,0 +1,7 @@
1
+ screenoverlay/__init__.py,sha256=NX7qDYscRGygfi9p6HJC_gT876L8wNpX1f01sS1mxPc,256
2
+ screenoverlay/overlay.py,sha256=LRlwYVFTIudri2Z-9cDLNsgpf6Itnl5cCO2M2cDu0qA,18690
3
+ screenoverlay-0.4.2.dist-info/licenses/LICENSE,sha256=QlEjK4tuMjNEYVlvzaIhxfsCeU8hcGZyuT85cm1YChE,1084
4
+ screenoverlay-0.4.2.dist-info/METADATA,sha256=LgLMK4MIXrDtMx4pFzGRXn6ups6N6jWJ2g1k2g4v90Q,17132
5
+ screenoverlay-0.4.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
+ screenoverlay-0.4.2.dist-info/top_level.txt,sha256=kfPL07o_kJ-mlb14Ps2zp_tIYnD8GfsSXlbDxDF6Eic,14
7
+ screenoverlay-0.4.2.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- screenoverlay/__init__.py,sha256=NX7qDYscRGygfi9p6HJC_gT876L8wNpX1f01sS1mxPc,256
2
- screenoverlay/overlay.py,sha256=rLVjc2NGG5TffVg8nZ-PkZ6PftZ8krERavX4ZjguE78,18276
3
- screenoverlay-0.4.1.dist-info/licenses/LICENSE,sha256=QlEjK4tuMjNEYVlvzaIhxfsCeU8hcGZyuT85cm1YChE,1084
4
- screenoverlay-0.4.1.dist-info/METADATA,sha256=OVWAHek0ALWLywqb5f4NoGRFF2msyFBoO_Bu8kwFWvY,16746
5
- screenoverlay-0.4.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
- screenoverlay-0.4.1.dist-info/top_level.txt,sha256=kfPL07o_kJ-mlb14Ps2zp_tIYnD8GfsSXlbDxDF6Eic,14
7
- screenoverlay-0.4.1.dist-info/RECORD,,