text: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  '''
  Created on 23/03/2015
  
  @author: jorgesaw
  '''
  
  from __future__ import absolute_import, print_function, unicode_literals
  import PyQt4.QtGui as _qg
  from mate.model import models
  from mate.vista.gui.dlg.NewCategoryDlg import NewCategoryDlg
  
  class EditCategoryDlg(NewCategoryDlg):
      u"""Diálogo para editar los datos de un rubro."""
      
      def __init__(self, modelo=None, parent=None):
          super(EditCategoryDlg, self).__init__(modelo, parent)
  
          self.buttonBox.button(_qg.QDialogButtonBox.Ok).setText("&Editar")
          
          self.setWindowTitle(u'Editar rubro')
          
      def setData(self, listaData):
          self.lineRubro.setText(str(listaData[models.NAME]))