(self)
return outer
Return frame of action buttons for dialog.

        Methods:
            ok
            apply
            cancel
            help

        Widget Structure:
            outer: Frame
                buttons: Frame
                    (no assignment): Button (ok)
                    (no assignment): Button (apply)
                    (no assignment): Button (cancel)
                    (no assignment): Button (help)
                (no assignment): Frame
Return frame of action buttons for dialog.
Return frame of action buttons for dialog .
def create_action_buttons(self):
        """Return frame of action buttons for dialog.

        Methods:
            ok
            apply
            cancel
            help

        Widget Structure:
            outer: Frame
                buttons: Frame
                    (no assignment): Button (ok)
                    (no assignment): Button (apply)
                    (no assignment): Button (cancel)
                    (no assignment): Button (help)
                (no assignment): Frame
        """
        if macosx.isAquaTk():
            # Changing the default padding on OSX results in unreadable
            # text in the buttons.
            padding_args = {}
        else:
            padding_args = {'padding': (6, 3)}
        outer = Frame(self.frame, padding=2)
        buttons_frame = Frame(outer, padding=2)
        self.buttons = {}
        for txt, cmd in (
            ('Ok', self.ok),
            ('Apply', self.apply),
            ('Cancel', self.cancel),
            ('Help', self.help)):
            self.buttons[txt] = Button(buttons_frame, text=txt, command=cmd,
                       takefocus=FALSE, **padding_args)
            self.buttons[txt].pack(side=LEFT, padx=5)
        # Add space above buttons.
        Frame(outer, height=2, borderwidth=0).pack(side=TOP)
        buttons_frame.pack(side=BOTTOM)
        return outer
def create_action_buttons ( self ) : if macosx . isAquaTk ( ) : # Changing the default padding on OSX results in unreadable # text in the buttons. padding_args = { } else : padding_args = { 'padding' : ( 6 , 3 ) } outer = Frame ( self . frame , padding = 2 ) buttons_frame = Frame ( outer , padding = 2 ) self . buttons = { } for txt , cmd in ( ( 'Ok' , self . ok ) , ( 'Apply' , self . apply ) , ( 'Cancel' , self . cancel ) , ( 'Help' , self . help ) ) : self . buttons [ txt ] = Button ( buttons_frame , text = txt , command = cmd , takefocus = FALSE , * * padding_args ) self . buttons [ txt ] . pack ( side = LEFT , padx = 5 ) # Add space above buttons. Frame ( outer , height = 2 , borderwidth = 0 ) . pack ( side = TOP ) buttons_frame . pack ( side = BOTTOM ) return outer