def add_btn_confirm(self,label_confirm):
<EOL>self.wbtn_confirm = button.Button("<STR_LIT>",self,self.window,self.peng,<EOL>pos=lambda sw,sh, bw,bh: (sw/<NUM_LIT:2>-bw-<NUM_LIT:4>,sh/<NUM_LIT:2>-bh/<NUM_LIT:2>-bh*<NUM_LIT:2>),<EOL>size=[<NUM_LIT:0>,<NUM_LIT:0>],<EOL>label=label_confirm,<EOL>borderstyle=self.borderstyle<EOL>)<EOL>self.wbtn_confirm.size = lambda sw,sh: (self.wbtn_confirm._label.font_size*<NUM_LIT:8>,self.wbtn_confirm._label.font_size*<NUM_LIT:2>)<EOL>self.addWidget(self.wbtn_confirm)<EOL>def f():<EOL><INDENT>self.doAction("<STR_LIT>")<EOL>self.exitDialog()<EOL><DEDENT>self.wbtn_confirm.addAction("<STR_LIT>",f)<EOL>
Adds a confirm button to let the user confirm whatever action they were presented with.

This widget can be triggered by setting the label ``label_confirm`` to a string.

This widget will be positioned slightly below the main label and to the left
of the cancel button.