#@+leo-ver=4
#@+node:@file __overrideClasses.py
from leoPlugins import *
from leoGlobals import *

#@+others
#@-others

# Override classes & methods...

if 0:
	#@	<< override the LeoFrame class >>
	#@+node:<< override the LeoFrame class >>
	# print "overriding LeoFrame class"
	
	import leoFrame
	
	assert(leoFrame.leoCoreFrame.instances==0)
	
	class myLeoFrame(leoFrame.leoCoreFrame):
		
		pass
		
		if 0:
			def __init__(self,title=None):
				print "myLeoFrame ctor",title
				leoFrame.leoCoreFrame.__init__(self,title)
	
	leoFrame.LeoFrame = myLeoFrame
	#@nonl
	#@-node:<< override the LeoFrame class >>
	#@nl

if 0:
	#@	<< override methods of the LeoApp class >>
	#@+node:<< override methods of the LeoApp class >>
	import leoApp
	
	# print "overriding app.closeLeoWindow"
	
	oldAppCloseLeoWindow = app().closeLeoWindow
	
	def myAppCloseLeoWindow(self,frame):
		
		global oldAppCloseLeoWindow
	
		oldAppCloseLeoWindow(frame)
		print "after closeLeoWindow"
	
	funcToMethod(myAppCloseLeoWindow,leoApp.LeoApp,"closeLeoWindow")
	#@nonl
	#@-node:<< override methods of the LeoApp class >>
	#@nl

__version__ = "1.2"
plugin_signon(__name__)
#@nonl
#@-node:@file __overrideClasses.py
#@-leo
