def exec_(self): name = self.edtName.text().simplified() if not name: self.new = True self.edtName.setInputMask(u'в/ч ' + 'X' * 8) else: self.code = self.edtCode.text().simplified() return CItemEditorBaseDialog.exec_(self)
def exec_(self): QtGui.qApp.setJTR(self) result = CItemEditorBaseDialog.exec_(self) try: if not result: self.delAllJobTicketReservations() except: QtGui.qApp.logCurrentException() QtGui.qApp.setJTR(None) QtGui.qApp.disconnectClipboard() return result
def exec_(self): result = CItemEditorBaseDialog.exec_(self) return result