17 lines
		
	
	
		
			273 B
		
	
	
	
		
			Python
		
	
	
		
		
			
		
	
	
			17 lines
		
	
	
		
			273 B
		
	
	
	
		
			Python
		
	
	
|  | from __future__ import annotations | ||
|  | 
 | ||
|  | import sys | ||
|  | 
 | ||
|  | from widget_module import Widget | ||
|  | 
 | ||
|  | 
 | ||
|  | class DerivedWidget(Widget): | ||
|  |     def __init__(self, message): | ||
|  |         super().__init__(message) | ||
|  | 
 | ||
|  |     def the_answer(self): | ||
|  |         return 42 | ||
|  | 
 | ||
|  |     def argv0(self): | ||
|  |         return sys.argv[0] |