PATH: //proc/self/root/opt/alt/python36/lib64/python3.6/idlelib
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 CREDITS.txt
↓
X
📄 ChangeLog
↓
X
📄 HISTORY.txt
↓
X
📁 Icons/
X
📄 NEWS.txt
↓
X
📄 NEWS2x.txt
↓
X
📄 README.txt
↓
X
📄 TODO.txt
↓
X
📄 __init__.py
↓
X
📄 __main__.py
↓
X
📁 __pycache__/
X
📄 _pyclbr.py
↓
X
📄 autocomplete.py
↓
X
📄 autocomplete_w.py
↓
X
📄 autoexpand.py
↓
X
📄 browser.py
↓
X
📄 calltip.py
↓
X
📄 calltip_w.py
↓
X
📄 codecontext.py
↓
X
📄 colorizer.py
↓
X
📄 config-extensions.def
↓
X
📄 config-highlight.def
↓
X
📄 config-keys.def
↓
X
📄 config-main.def
↓
X
📄 config.py
↓
X
📄 config_key.py
↓
X
📄 configdialog.py
↓
X
📄 debugger.py
↓
X
📄 debugger_r.py
↓
X
📄 debugobj.py
↓
X
📄 debugobj_r.py
↓
X
📄 delegator.py
↓
X
📄 dynoption.py
↓
X
📄 editor.py
↓
X
📄 extend.txt
↓
X
📄 filelist.py
↓
X
📄 grep.py
↓
X
📄 help.html
↓
X
📄 help.py
↓
X
📄 help_about.py
↓
X
📄 history.py
↓
X
📄 hyperparser.py
↓
X
📄 idle.py
↓
X
📄 idle.pyw
↓
X
📁 idle_test/
X
📄 iomenu.py
↓
X
📄 macosx.py
↓
X
📄 mainmenu.py
↓
X
📄 multicall.py
↓
X
📄 outwin.py
↓
X
📄 paragraph.py
↓
X
📄 parenmatch.py
↓
X
📄 pathbrowser.py
↓
X
📄 percolator.py
↓
X
📄 pyparse.py
↓
X
📄 pyshell.py
↓
X
📄 query.py
↓
X
📄 redirector.py
↓
X
📄 replace.py
↓
X
📄 rpc.py
↓
X
📄 rstrip.py
↓
X
📄 run.py
↓
X
📄 runscript.py
↓
X
📄 scrolledlist.py
↓
X
📄 search.py
↓
X
📄 searchbase.py
↓
X
📄 searchengine.py
↓
X
📄 squeezer.py
↓
X
📄 stackviewer.py
↓
X
📄 statusbar.py
↓
X
📄 textview.py
↓
X
📄 tooltip.py
↓
X
📄 tree.py
↓
X
📄 undo.py
↓
X
📄 window.py
↓
X
📄 zoomheight.py
↓
X
📄 zzdummy.py
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: zoomheight.py
"Zoom a window to maximum height." import re import sys from idlelib import macosx class ZoomHeight: def __init__(self, editwin): self.editwin = editwin def zoom_height_event(self, event=None): top = self.editwin.top zoom_height(top) return "break" def zoom_height(top): geom = top.wm_geometry() m = re.match(r"(\d+)x(\d+)\+(-?\d+)\+(-?\d+)", geom) if not m: top.bell() return width, height, x, y = map(int, m.groups()) newheight = top.winfo_screenheight() if sys.platform == 'win32': newy = 0 newheight = newheight - 72 elif macosx.isAquaTk(): # The '88' below is a magic number that avoids placing the bottom # of the window below the panel on my machine. I don't know how # to calculate the correct value for this with tkinter. newy = 22 newheight = newheight - newy - 88 else: #newy = 24 newy = 0 #newheight = newheight - 96 newheight = newheight - 88 if height >= newheight: newgeom = "" else: newgeom = "%dx%d+%d+%d" % (width, newheight, x, newy) top.wm_geometry(newgeom) if __name__ == "__main__": from unittest import main main('idlelib.idle_test.test_zoomheight', verbosity=2, exit=False) # Add htest?
SIMPAN PERUBAHAN