@@ -753,80 +753,109 @@ def __call__(self, *args):
753753 except :
754754 self .widget ._report_exception ()
755755
756+
756757class Wm :
757- def aspect (self ,
758+ def wm_aspect (self ,
758759 minNumer = None , minDenom = None ,
759760 maxNumer = None , maxDenom = None ):
760761 return self ._getints (
761762 self .tk .call ('wm' , 'aspect' , self ._w ,
762763 minNumer , minDenom ,
763764 maxNumer , maxDenom ))
764- def client (self , name = None ):
765+ aspect = wm_aspect
766+ def wm_client (self , name = None ):
765767 return self .tk .call ('wm' , 'client' , self ._w , name )
766- def colormapwindows (self , * wlist ):
768+ client = wm_client
769+ def wm_colormapwindows (self , * wlist ):
767770 args = ('wm' , 'colormapwindows' , self ._w ) + _flatten (wlist )
768771 return map (self ._nametowidget , self .tk .call (args ))
769- def command (self , value = None ):
772+ colormapwindows = wm_colormapwindows
773+ def wm_command (self , value = None ):
770774 return self .tk .call ('wm' , 'command' , self ._w , value )
771- def deiconify (self ):
775+ command = wm_command
776+ def wm_deiconify (self ):
772777 return self .tk .call ('wm' , 'deiconify' , self ._w )
773- def focusmodel (self , model = None ):
778+ deiconify = wm_deiconify
779+ def wm_focusmodel (self , model = None ):
774780 return self .tk .call ('wm' , 'focusmodel' , self ._w , model )
775- def frame (self ):
781+ focusmodel = wm_focusmodel
782+ def wm_frame (self ):
776783 return self .tk .call ('wm' , 'frame' , self ._w )
777- def geometry (self , newGeometry = None ):
784+ frame = wm_frame
785+ def wm_geometry (self , newGeometry = None ):
778786 return self .tk .call ('wm' , 'geometry' , self ._w , newGeometry )
779- def grid (self ,
787+ geometry = wm_geometry
788+ def wm_grid (self ,
780789 baseWidth = None , baseHeight = None ,
781790 widthInc = None , heightInc = None ):
782791 return self ._getints (self .tk .call (
783792 'wm' , 'grid' , self ._w ,
784793 baseWidth , baseHeight , widthInc , heightInc ))
785- def group (self , pathName = None ):
794+ grid = wm_grid
795+ def wm_group (self , pathName = None ):
786796 return self .tk .call ('wm' , 'group' , self ._w , pathName )
787- def iconbitmap (self , bitmap = None ):
797+ group = wm_group
798+ def wm_iconbitmap (self , bitmap = None ):
788799 return self .tk .call ('wm' , 'iconbitmap' , self ._w , bitmap )
789- def iconify (self ):
800+ iconbitmap = wm_iconbitmap
801+ def wm_iconify (self ):
790802 return self .tk .call ('wm' , 'iconify' , self ._w )
791- def iconmask (self , bitmap = None ):
803+ iconify = wm_iconify
804+ def wm_iconmask (self , bitmap = None ):
792805 return self .tk .call ('wm' , 'iconmask' , self ._w , bitmap )
793- def iconname (self , newName = None ):
806+ iconmask = wm_iconmask
807+ def wm_iconname (self , newName = None ):
794808 return self .tk .call ('wm' , 'iconname' , self ._w , newName )
795- def iconposition (self , x = None , y = None ):
809+ iconname = wm_iconname
810+ def wm_iconposition (self , x = None , y = None ):
796811 return self ._getints (self .tk .call (
797812 'wm' , 'iconposition' , self ._w , x , y ))
798- def iconwindow (self , pathName = None ):
813+ iconposition = wm_iconposition
814+ def wm_iconwindow (self , pathName = None ):
799815 return self .tk .call ('wm' , 'iconwindow' , self ._w , pathName )
800- def maxsize (self , width = None , height = None ):
816+ iconwindow = wm_iconwindow
817+ def wm_maxsize (self , width = None , height = None ):
801818 return self ._getints (self .tk .call (
802819 'wm' , 'maxsize' , self ._w , width , height ))
803- def minsize (self , width = None , height = None ):
820+ maxsize = wm_maxsize
821+ def wm_minsize (self , width = None , height = None ):
804822 return self ._getints (self .tk .call (
805823 'wm' , 'minsize' , self ._w , width , height ))
806- def overrideredirect (self , boolean = None ):
824+ minsize = wm_minsize
825+ def wm_overrideredirect (self , boolean = None ):
807826 return self ._getboolean (self .tk .call (
808827 'wm' , 'overrideredirect' , self ._w , boolean ))
809- def positionfrom (self , who = None ):
828+ overrideredirect = wm_overrideredirect
829+ def wm_positionfrom (self , who = None ):
810830 return self .tk .call ('wm' , 'positionfrom' , self ._w , who )
811- def protocol (self , name = None , func = None ):
831+ positionfrom = wm_positionfrom
832+ def wm_protocol (self , name = None , func = None ):
812833 if callable (func ):
813834 command = self ._register (func )
814835 else :
815836 command = func
816837 return self .tk .call (
817838 'wm' , 'protocol' , self ._w , name , command )
818- def resizable (self , width = None , height = None ):
839+ protocol = wm_protocol
840+ def wm_resizable (self , width = None , height = None ):
819841 return self .tk .call ('wm' , 'resizable' , self ._w , width , height )
820- def sizefrom (self , who = None ):
842+ resizable = wm_resizable
843+ def wm_sizefrom (self , who = None ):
821844 return self .tk .call ('wm' , 'sizefrom' , self ._w , who )
822- def state (self ):
845+ sizefrom = wm_sizefrom
846+ def wm_state (self ):
823847 return self .tk .call ('wm' , 'state' , self ._w )
824- def title (self , string = None ):
848+ state = wm_state
849+ def wm_title (self , string = None ):
825850 return self .tk .call ('wm' , 'title' , self ._w , string )
826- def transient (self , master = None ):
851+ title = wm_title
852+ def wm_transient (self , master = None ):
827853 return self .tk .call ('wm' , 'transient' , self ._w , master )
828- def withdraw (self ):
854+ transient = wm_transient
855+ def wm_withdraw (self ):
829856 return self .tk .call ('wm' , 'withdraw' , self ._w )
857+ withdraw = wm_withdraw
858+
830859
831860class Tk (Misc , Wm ):
832861 _w = '.'
0 commit comments