Changeset 1211
- Timestamp:
- 04/03/23 00:32:54 (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
framspy/gui/utils.py
r1202 r1211 1 1 from threading import Timer 2 import os 2 3 3 4 class Swap: … … 55 56 # https://stackoverflow.com/questions/18394597/is-there-a-way-to-create-transparent-windows-with-tkinter 56 57 def windowHideAndMaximize(wnd): # to get the size of working area on screen (screen minus taskbars, toolbars etc.) - make invisible maximized window 58 if os.name=='posix': 59 wnd.wait_visibility() 57 60 wnd.attributes("-alpha", 0) 58 wnd.state('zoomed') 61 if os.name=='posix': 62 wnd.attributes("-zoomed", 1) 63 else: 64 wnd.state('zoomed') 59 65 wnd.update() 60 66 61 67 def windowShowAndSetGeometry(wnd, geometry): 62 wnd.state('normal') 68 if os.name=='posix': 69 wnd.attributes("-zoomed", 0) 70 wnd.wait_visibility() 71 else: 72 wnd.state('normal') 63 73 wnd.update() 64 74 wnd.geometry(geometry)
Note: See TracChangeset
for help on using the changeset viewer.