Ну может как-то так:  
new Ext.Window({
        title: 'Калькулятор',
        layout: 'fit',
        width: 700,
        height: 550,
        buttons: [{
           text: '1',
           handler: function(){
                 Ext.getCmp('id-field').setValue(+'1');
           },{
           text: '2',
           handler: function(){
                 Ext.getCmp('id-field').setValue(+'2');
           }
        }]
    });
И если вы только начали не учите 3-й. Учите 4-й ExtJS