示例#1
0
    def _on_table_show(self):
        if self.__cursor.closed:
            return

        rowCount = self._tableWidget.rowCount()

        try:
            data = Query.fetch_cursor(self.__cursor, self.__offset, self.__count)
        except Exception, err:
            QtGui.QMessageBox(QtGui.QMessageBox.Critical, self._tableWidget.tr('ERROR'), unicode(err), QtGui.QMessageBox.Ok, self._tableWidget).exec_()
            return