@@ -32,8 +32,8 @@ class CGPoint(ctypes.Structure):
3232 _fields_ = [('x' , cgfloat ()), ('y' , cgfloat ())]
3333
3434 def __repr__ (self ):
35- return '{0}(left={cls.x } top={cls.y })' .format (
36- type (self ).__name__ , cls = self )
35+ return '{0}(left={1 } top={2 })' .format (
36+ type (self ).__name__ , self . x , self . y )
3737
3838
3939class CGSize (ctypes .Structure ):
@@ -42,8 +42,8 @@ class CGSize(ctypes.Structure):
4242 _fields_ = [('width' , cgfloat ()), ('height' , cgfloat ())]
4343
4444 def __repr__ (self ):
45- return '{0}(width={cls.width } height={cls.height })' .format (
46- type (self ).__name__ , cls = self )
45+ return '{0}(width={1 } height={2 })' .format (
46+ type (self ).__name__ , self . width , self . height )
4747
4848
4949class CGRect (ctypes .Structure ):
@@ -52,8 +52,8 @@ class CGRect(ctypes.Structure):
5252 _fields_ = [('origin' , CGPoint ), ('size' , CGSize )]
5353
5454 def __repr__ (self ):
55- return '{0}<{cls.origin } {cls.size }>' .format (
56- type (self ).__name__ , cls = self )
55+ return '{0}<{1 } {2 }>' .format (
56+ type (self ).__name__ , self . origin , self . size )
5757
5858
5959class MSS (MSSBase ):
0 commit comments