Ejemplo n.º 1
0
 def __init__(self,parent = None,name = None,modal = 0,fl = 0):
     """Set up New specific fields and signal connections.<br>
     'parent', 'name', 'modal', 'fl': As usual
     """
     Account.__init__(self,parent,name,modal,fl)
     self.setCaption(self.tr('Account new'))
     self.wNew.setText(self.tr('Clear'))
     self.wSave.setEnabled(1)
     #Enable inject in case we want to base the new account on an old
     QObject.connect(parent,PYSIGNAL('accountSelected'), self.inject)
     self.wLineMode.setPixmap(self.imgEdit) #We are not grepping
Ejemplo n.º 2
0
    def __init__(self,parent = None,name = None,modal = 0,fl = 0):
        """Set up delete specific fields and signal connections.<br>
        'parent', 'name', 'modal', 'fl': As usual
        """
        Account.__init__(self,parent,name,modal,fl)
        self.setCaption(self.tr('Account delete'))
        self.wNew.hide() #not useful for a delete action
        self.wSave.setText(self.tr('Delete')) # more appropriate

        self.wSave.setEnabled(0)
        self.hideAndSuch()    
        QObject.connect(parent,PYSIGNAL('accountSelected'), self.inject)
        QObject.connect(self.wAccName, SIGNAL('textChanged(const QString &)'),
                        self.nameGrep)
        QObject.connect(self.wAccName, SIGNAL('lostFocus()'), self.nameLostFocus)
        QObject.connect(self.wAccNum, SIGNAL('textChanged(const QString &)'),
                        self.accNumChanged)
Ejemplo n.º 3
0
 def __init__(self,parent = None,name = None,modal = 0,fl = 0):
     """Set up Edit specific fields and signal connections.<br>
     'parent', 'name', 'modal', 'fl': As usual
     """
     Account.__init__(self,parent,name,modal,fl)
     self.setCaption(self.tr('Account edit'))
     self.initCombo()
     self.wNew.setText(self.tr('Clear'))
     self.wSave.setEnabled(0)
     #Set up signal slot relations
     QObject.connect(parent,PYSIGNAL('accountSelected'), self.inject)
     QObject.connect(self.wAccName, SIGNAL('textChanged(const QString &)'),
                     self.nameGrep)
     QObject.connect(self.wAccName, SIGNAL('lostFocus()'),
                     self.nameLostFocus)
     QObject.connect(self.wAccNum, SIGNAL('textChanged(const QString &)'),
                     self.accNumChanged)
     self.wSave.setEnabled(0)