@@ -97,7 +97,7 @@ def __init__(self, posSize, title, callback=None, sizeStyle="regular"):
9797 self ._nsObject .setButtonType_ (self .nsButtonType )
9898
9999 def _testForDeprecatedAttributes (self ):
100- super (Button , self )._testForDeprecatedAttributes ()
100+ super ()._testForDeprecatedAttributes ()
101101 from warnings import warn
102102 if hasattr (self , "_nsBezelStyle" ):
103103 warn (DeprecationWarning ("The _nsBezelStyle attribute is deprecated. Use the nsBezelStyle attribute." ))
@@ -209,7 +209,7 @@ def buttonCallback(self, sender):
209209 frameAdjustments = None
210210
211211 def __init__ (self , posSize , title , callback = None , sizeStyle = "regular" ):
212- super (SquareButton , self ).__init__ (posSize = posSize , title = title , callback = callback , sizeStyle = sizeStyle )
212+ super ().__init__ (posSize = posSize , title = title , callback = callback , sizeStyle = sizeStyle )
213213
214214
215215_imagePositionMap = {
@@ -296,7 +296,7 @@ def buttonCallback(self, sender):
296296 def __init__ (self , posSize ,
297297 imagePath = None , imageNamed = None , imageObject = None ,
298298 title = None , bordered = True , imagePosition = "top" , callback = None , sizeStyle = "regular" ):
299- super (ImageButton , self ).__init__ (posSize , title = title , callback = callback , sizeStyle = sizeStyle )
299+ super ().__init__ (posSize , title = title , callback = callback , sizeStyle = sizeStyle )
300300 image = None
301301 if imagePath is not None :
302302 image = NSImage .alloc ().initWithContentsOfFile_ (imagePath )
@@ -394,7 +394,7 @@ def __init__(self, posSize, callback=None, page=None, anchor=None):
394394 if callback is None :
395395 if page is not None or anchor is not None :
396396 callback = self ._helpBookCallback
397- super (HelpButton , self ).__init__ (posSize , title = "" , callback = callback )
397+ super ().__init__ (posSize , title = "" , callback = callback )
398398
399399 def _helpBookCallback (self , sender ):
400400 from Carbon import AH
0 commit comments