Changeset 1202 for framspy/gui/widgets/propertyWindow.py
- Timestamp:
- 02/08/23 01:19:53 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
framspy/gui/widgets/propertyWindow.py
r1198 r1202 4 4 from typing import Dict, List, Callable, Tuple 5 5 from gui.framsutils.framsProperty import Property, PropertyCallback, propertyToTkinter 6 from gui.framsutils.FramsInterface import FramsInterface, InterfaceType 6 7 from gui.widgets.ToolTip import CreateToolTip 7 from gui. framsutils.FramsInterface import FramsInterface, InterfaceType8 from gui.utils import windowHideAndMaximize, windowShowAndSetGeometry 8 9 9 10 ''' … … 105 106 return maxwidth, maxheight, x, y 106 107 107 self.attributes("-alpha", 0)108 108 self.update_idletasks() 109 109 110 110 width, height, x, y = parseGeometryString(self.winfo_geometry()) 111 111 112 self.state('zoomed') 113 self.update() 112 windowHideAndMaximize(self) 114 113 rootx = self.winfo_rootx() 115 114 116 115 maxWidth, maxHeight, x, y = parseGeometryString(self.winfo_geometry()) 117 118 self.state("normal")119 self.update()120 121 116 x = (maxWidth - width) / 2 122 117 y = (maxHeight - height) / 2 123 118 124 self.geometry("+%d+%d" % (int(rootx + x), int(y))) 125 self.attributes("-alpha", 1) 126 self.update() 119 windowShowAndSetGeometry(self, "+%d+%d" % (int(rootx + x), int(y))) 127 120 self.maxsize(maxWidth, maxHeight) 128 121
Note: See TracChangeset
for help on using the changeset viewer.