Changeset 1202 for framspy/gui/widgets/ConsoleWindow.py
- Timestamp:
- 02/08/23 01:19:53 (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
framspy/gui/widgets/ConsoleWindow.py
r1198 r1202 2 2 from gui.widgets.ScrolledText import ScrolledText 3 3 from gui.framsutils.FramsSocket import FramsSocket 4 from gui.utils import windowHideAndMaximize, windowShowAndSetGeometry 4 5 from typing import Tuple, Callable 5 6 … … 45 46 return maxwidth, maxheight, x, y 46 47 47 self.attributes("-alpha", 0)48 48 self.update_idletasks() 49 49 50 50 width, height, x, y = parseGeometryString(self.winfo_geometry()) 51 52 self.state('zoomed') 53 self.update() 51 windowHideAndMaximize(self) 54 52 rootx = self.winfo_rootx() 55 56 53 maxWidth, maxHeight, x, y = parseGeometryString(self.winfo_geometry()) 57 58 self.state("normal")59 self.update()60 61 54 x = (maxWidth - width) / 2 62 55 y = (maxHeight - height) / 2 63 64 self.geometry("+%d+%d" % (int(rootx + x), int(y))) 65 self.attributes("-alpha", 1) 66 self.update() 56 windowShowAndSetGeometry(self, "+%d+%d" % (int(rootx + x), int(y))) 67 57 self.maxsize(maxWidth, maxHeight) 68 58
Note: See TracChangeset
for help on using the changeset viewer.