Windows NT DGPENSV2LPKMN 10.0 build 14393 (Windows Server 2016) AMD64
Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/7.3.25
: 172.16.0.66 | : 172.16.0.254
Cant Read [ /etc/named.conf ]
7.3.25
SYSTEM
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
[ A ]
[ C ]
[ D ]
C: /
laragon /
bin /
python /
python-3.10 /
Lib /
idlelib /
[ HOME SHELL ]
Name
Size
Permission
Action
Icons
[ DIR ]
drwxrwxrwx
__pycache__
[ DIR ]
drwxrwxrwx
idle_test
[ DIR ]
drwxrwxrwx
CREDITS.txt
1.86
KB
-rw-rw-rw-
ChangeLog
56.59
KB
-rw-rw-rw-
HISTORY.txt
10.36
KB
-rw-rw-rw-
NEWS.txt
53.86
KB
-rw-rw-rw-
NEWS2x.txt
27.18
KB
-rw-rw-rw-
README.txt
9.7
KB
-rw-rw-rw-
TODO.txt
8.48
KB
-rw-rw-rw-
__init__.py
406
B
-rw-rw-rw-
__main__.py
167
B
-rw-rw-rw-
autocomplete.py
9.36
KB
-rw-rw-rw-
autocomplete_w.py
21.09
KB
-rw-rw-rw-
autoexpand.py
3.23
KB
-rw-rw-rw-
browser.py
8.64
KB
-rw-rw-rw-
calltip.py
7.3
KB
-rw-rw-rw-
calltip_w.py
7.19
KB
-rw-rw-rw-
codecontext.py
11.42
KB
-rw-rw-rw-
colorizer.py
14.8
KB
-rw-rw-rw-
config-extensions.def
2.27
KB
-rw-rw-rw-
config-highlight.def
2.9
KB
-rw-rw-rw-
config-keys.def
10.96
KB
-rw-rw-rw-
config-main.def
3.18
KB
-rw-rw-rw-
config.py
38.17
KB
-rw-rw-rw-
config_key.py
14.52
KB
-rw-rw-rw-
configdialog.py
105.61
KB
-rw-rw-rw-
debugger.py
19.19
KB
-rw-rw-rw-
debugger_r.py
12.27
KB
-rw-rw-rw-
debugobj.py
4.1
KB
-rw-rw-rw-
debugobj_r.py
1.1
KB
-rw-rw-rw-
delegator.py
1.05
KB
-rw-rw-rw-
dynoption.py
2.03
KB
-rw-rw-rw-
editor.py
66
KB
-rw-rw-rw-
extend.txt
3.63
KB
-rw-rw-rw-
filelist.py
3.91
KB
-rw-rw-rw-
format.py
15.82
KB
-rw-rw-rw-
grep.py
7.52
KB
-rw-rw-rw-
help.html
76.29
KB
-rw-rw-rw-
help.py
11.86
KB
-rw-rw-rw-
help_about.py
9.1
KB
-rw-rw-rw-
history.py
4.07
KB
-rw-rw-rw-
hyperparser.py
12.89
KB
-rw-rw-rw-
idle.bat
177
B
-rwxrwxrwx
idle.py
468
B
-rw-rw-rw-
idle.pyw
587
B
-rw-rw-rw-
iomenu.py
15.85
KB
-rw-rw-rw-
macosx.py
9.72
KB
-rw-rw-rw-
mainmenu.py
3.97
KB
-rw-rw-rw-
multicall.py
18.65
KB
-rw-rw-rw-
outwin.py
5.76
KB
-rw-rw-rw-
parenmatch.py
7.21
KB
-rw-rw-rw-
pathbrowser.py
3.23
KB
-rw-rw-rw-
percolator.py
3.58
KB
-rw-rw-rw-
pyparse.py
19.97
KB
-rw-rw-rw-
pyshell.py
63.08
KB
-rw-rw-rw-
query.py
15.1
KB
-rw-rw-rw-
redirector.py
6.88
KB
-rw-rw-rw-
replace.py
10.06
KB
-rw-rw-rw-
rpc.py
21.21
KB
-rw-rw-rw-
run.py
21.63
KB
-rw-rw-rw-
runscript.py
8.29
KB
-rw-rw-rw-
scrolledlist.py
4.51
KB
-rw-rw-rw-
search.py
5.6
KB
-rw-rw-rw-
searchbase.py
7.88
KB
-rw-rw-rw-
searchengine.py
7.42
KB
-rw-rw-rw-
sidebar.py
20.41
KB
-rw-rw-rw-
squeezer.py
12.87
KB
-rw-rw-rw-
stackviewer.py
4.5
KB
-rw-rw-rw-
statusbar.py
1.49
KB
-rw-rw-rw-
textview.py
6.84
KB
-rw-rw-rw-
tooltip.py
6.58
KB
-rw-rw-rw-
tree.py
16.47
KB
-rw-rw-rw-
undo.py
11.14
KB
-rw-rw-rw-
util.py
722
B
-rw-rw-rw-
window.py
2.65
KB
-rw-rw-rw-
zoomheight.py
4.23
KB
-rw-rw-rw-
zzdummy.py
2.03
KB
-rw-rw-rw-
Delete
Unzip
Zip
${this.title}
Close
Code Editor : zoomheight.py
"Zoom a window to maximum height." import re import sys import tkinter class WmInfoGatheringError(Exception): pass class ZoomHeight: # Cached values for maximized window dimensions, one for each set # of screen dimensions. _max_height_and_y_coords = {} def __init__(self, editwin): self.editwin = editwin self.top = self.editwin.top def zoom_height_event(self, event=None): zoomed = self.zoom_height() if zoomed is None: self.top.bell() else: menu_status = 'Restore' if zoomed else 'Zoom' self.editwin.update_menu_label(menu='options', index='* Height', label=f'{menu_status} Height') return "break" def zoom_height(self): top = self.top width, height, x, y = get_window_geometry(top) if top.wm_state() != 'normal': # Can't zoom/restore window height for windows not in the 'normal' # state, e.g. maximized and full-screen windows. return None try: maxheight, maxy = self.get_max_height_and_y_coord() except WmInfoGatheringError: return None if height != maxheight: # Maximize the window's height. set_window_geometry(top, (width, maxheight, x, maxy)) return True else: # Restore the window's height. # # .wm_geometry('') makes the window revert to the size requested # by the widgets it contains. top.wm_geometry('') return False def get_max_height_and_y_coord(self): top = self.top screen_dimensions = (top.winfo_screenwidth(), top.winfo_screenheight()) if screen_dimensions not in self._max_height_and_y_coords: orig_state = top.wm_state() # Get window geometry info for maximized windows. try: top.wm_state('zoomed') except tkinter.TclError: # The 'zoomed' state is not supported by some esoteric WMs, # such as Xvfb. raise WmInfoGatheringError( 'Failed getting geometry of maximized windows, because ' + 'the "zoomed" window state is unavailable.') top.update() maxwidth, maxheight, maxx, maxy = get_window_geometry(top) if sys.platform == 'win32': # On Windows, the returned Y coordinate is the one before # maximizing, so we use 0 which is correct unless a user puts # their dock on the top of the screen (very rare). maxy = 0 maxrooty = top.winfo_rooty() # Get the "root y" coordinate for non-maximized windows with their # y coordinate set to that of maximized windows. This is needed # to properly handle different title bar heights for non-maximized # vs. maximized windows, as seen e.g. in Windows 10. top.wm_state('normal') top.update() orig_geom = get_window_geometry(top) max_y_geom = orig_geom[:3] + (maxy,) set_window_geometry(top, max_y_geom) top.update() max_y_geom_rooty = top.winfo_rooty() # Adjust the maximum window height to account for the different # title bar heights of non-maximized vs. maximized windows. maxheight += maxrooty - max_y_geom_rooty self._max_height_and_y_coords[screen_dimensions] = maxheight, maxy set_window_geometry(top, orig_geom) top.wm_state(orig_state) return self._max_height_and_y_coords[screen_dimensions] def get_window_geometry(top): geom = top.wm_geometry() m = re.match(r"(\d+)x(\d+)\+(-?\d+)\+(-?\d+)", geom) return tuple(map(int, m.groups())) def set_window_geometry(top, geometry): top.wm_geometry("{:d}x{:d}+{:d}+{:d}".format(*geometry)) if __name__ == "__main__": from unittest import main main('idlelib.idle_test.test_zoomheight', verbosity=2, exit=False) # Add htest?
Close