Lib/idlelib/configdialog.py
def create_action_buttons(self):
        "Return frame of action buttons for dialog."
        if macosx.isAquaTk():
            # Changing the default padding on OSX results in unreadable
            # text in the buttons.
            padding_args = {}
        else:
            padding_args = {'padx':6, 'pady':3}
        outer = Frame(self, pady=2)
        buttons = Frame(outer, pady=2)
        for txt, cmd in (
            ('Ok', self.ok),
            ('Apply', self.apply),
            ('Cancel', self.cancel),
            ('Help', self.help)):
            Button(buttons, text=txt, command=cmd, takefocus=FALSE,
                   **padding_args).pack(side=LEFT, padx=5)
        # Add space above buttons.
        Frame(outer, height=2, borderwidth=0).pack(side=TOP)
        buttons.pack(side=BOTTOM)
        return outer
Return frame of action buttons for dialog.
Return frame of action buttons for dialog.
Return frame of action buttons for dialog .
def create_action_buttons(self):
        if macosx.isAquaTk():
            padding_args = {}
        else:
            padding_args = {'padx':6, 'pady':3}
        outer = Frame(self, pady=2)
        buttons = Frame(outer, pady=2)
        for txt, cmd in (
            ('Ok', self.ok),
            ('Apply', self.apply),
            ('Cancel', self.cancel),
            ('Help', self.help)):
            Button(buttons, text=txt, command=cmd, takefocus=FALSE,
                   **padding_args).pack(side=LEFT, padx=5)
        Frame(outer, height=2, borderwidth=0).pack(side=TOP)
        buttons.pack(side=BOTTOM)
        return outer
def create_action_buttons ( self ) : if macosx . isAquaTk ( ) : padding_args = { } else : padding_args = { 'padx' : 6 , 'pady' : 3 } outer = Frame ( self , pady = 2 ) buttons = Frame ( outer , pady = 2 ) for txt , cmd in ( ( 'Ok' , self . ok ) , ( 'Apply' , self . apply ) , ( 'Cancel' , self . cancel ) , ( 'Help' , self . help ) ) : Button ( buttons , text = txt , command = cmd , takefocus = FALSE , ** padding_args ) . pack ( side = LEFT , padx = 5 ) Frame ( outer , height = 2 , borderwidth = 0 ) . pack ( side = TOP ) buttons . pack ( side = BOTTOM ) return outer
Return frame of action buttons for dialog.
Return frame of action buttons for dialog .
"Return frame of action buttons for dialog." # Changing the default padding on OSX results in unreadable # text in the buttons. # Add space above buttons.
self