mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Add version to title of IDLE help window.
This commit is contained in:
		
						commit
						8f2ee0d5ff
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -26,6 +26,7 @@ | |||
| """ | ||||
| from html.parser import HTMLParser | ||||
| from os.path import abspath, dirname, isfile, join | ||||
| from platform import python_version | ||||
| from tkinter import Toplevel, Frame, Text, Menu | ||||
| from tkinter.ttk import Menubutton, Scrollbar | ||||
| from tkinter import font as tkfont | ||||
|  | @ -265,7 +266,7 @@ def show_idlehelp(parent): | |||
|     if not isfile(filename): | ||||
|         # try copy_strip, present message | ||||
|         return | ||||
|     return HelpWindow(parent, filename, 'IDLE Help') | ||||
|     HelpWindow(parent, filename, 'IDLE Help (%s)' % python_version()) | ||||
| 
 | ||||
| if __name__ == '__main__': | ||||
|     from idlelib.idle_test.htest import run | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Terry Jan Reedy
						Terry Jan Reedy