import sys 
from PyQt5.QtWidgets import *
from PyQt5 import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *

class Classifier(QMainWindow):
	def __init__(self):
		QMainWindow.__init__(self)
		self.setWindowTitle("Clasificador de noticias en secciones")
		self.setGeometry(10, 10, 600, 500)
		self.tab_window = MyTableWidget()
		self.setCentralWidget(self.tab_window)
		self.show()

class MyTableWidget(QWidget):        
 
    def __init__(self):   
        super(QWidget, self).__init__()
        self.layout = QVBoxLayout(self)
 
        # Initialize tab screen
        self.tabs = QTabWidget()
        self.tab1 = QWidget()	
        self.tab2 = QWidget()
        self.tab3 = QWidget()
        self.tabs.resize(300,200) 
 
        # Add tabs
        self.tabs.addTab(self.tab1,"Universal")
        self.tabs.addTab(self.tab2,"Jornada")
        self.tabs.addTab(self.tab3,"Excelsior")
 
        # Create first tab
        self.tab1.layout = QVBoxLayout(self)
        self.pushButton1 = QPushButton("PyQt5 button")
        self.tab1.layout.addWidget(self.pushButton1)
        self.tab1.setLayout(self.tab1.layout)
 
        # Add tabs to widget        
        self.layout.addWidget(self.tabs)
        self.setLayout(self.layout)
 
    @pyqtSlot()
    def on_click(self):
        print("\n")
        for currentQTableWidgetItem in self.tableWidget.selectedItems():
            print(currentQTableWidgetItem.row(), currentQTableWidgetItem.column(), currentQTableWidgetItem.text())
7f90f120ad47fdf032d9cbe3772f6569b9a4ef59
<mask token>


class MyTableWidget(QWidget):
    <mask token>
    <mask token>

<mask token>


class MyTableWidget(QWidget):
    <mask token>

    @pyqtSlot()
    def on_click(self):
        print('\n')
        for currentQTableWidgetItem in self.tableWidget.selectedItems():
            print(currentQTableWidgetItem.row(), currentQTableWidgetItem.
                column(), currentQTableWidgetItem.text())

<mask token>


class MyTableWidget(QWidget):

    def __init__(self):
        super(QWidget, self).__init__()
        self.layout = QVBoxLayout(self)
        self.tabs = QTabWidget()
        self.tab1 = QWidget()
        self.tab2 = QWidget()
        self.tab3 = QWidget()
        self.tabs.resize(300, 200)
        self.tabs.addTab(self.tab1, 'Universal')
        self.tabs.addTab(self.tab2, 'Jornada')
        self.tabs.addTab(self.tab3, 'Excelsior')
        self.tab1.layout = QVBoxLayout(self)
        self.pushButton1 = QPushButton('PyQt5 button')
        self.tab1.layout.addWidget(self.pushButton1)
        self.tab1.setLayout(self.tab1.layout)
        self.layout.addWidget(self.tabs)
        self.setLayout(self.layout)

    @pyqtSlot()
    def on_click(self):
        print('\n')
        for currentQTableWidgetItem in self.tableWidget.selectedItems():
            print(currentQTableWidgetItem.row(), currentQTableWidgetItem.
                column(), currentQTableWidgetItem.text())

<mask token>


class Classifier(QMainWindow):

    def __init__(self):
        QMainWindow.__init__(self)
        self.setWindowTitle('Clasificador de noticias en secciones')
        self.setGeometry(10, 10, 600, 500)
        self.tab_window = MyTableWidget()
        self.setCentralWidget(self.tab_window)
        self.show()


class MyTableWidget(QWidget):

    def __init__(self):
        super(QWidget, self).__init__()
        self.layout = QVBoxLayout(self)
        self.tabs = QTabWidget()
        self.tab1 = QWidget()
        self.tab2 = QWidget()
        self.tab3 = QWidget()
        self.tabs.resize(300, 200)
        self.tabs.addTab(self.tab1, 'Universal')
        self.tabs.addTab(self.tab2, 'Jornada')
        self.tabs.addTab(self.tab3, 'Excelsior')
        self.tab1.layout = QVBoxLayout(self)
        self.pushButton1 = QPushButton('PyQt5 button')
        self.tab1.layout.addWidget(self.pushButton1)
        self.tab1.setLayout(self.tab1.layout)
        self.layout.addWidget(self.tabs)
        self.setLayout(self.layout)

    @pyqtSlot()
    def on_click(self):
        print('\n')
        for currentQTableWidgetItem in self.tableWidget.selectedItems():
            print(currentQTableWidgetItem.row(), currentQTableWidgetItem.
                column(), currentQTableWidgetItem.text())

import sys 
from PyQt5.QtWidgets import *
from PyQt5 import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *

class Classifier(QMainWindow):
	def __init__(self):
		QMainWindow.__init__(self)
		self.setWindowTitle("Clasificador de noticias en secciones")
		self.setGeometry(10, 10, 600, 500)
		self.tab_window = MyTableWidget()
		self.setCentralWidget(self.tab_window)
		self.show()

class MyTableWidget(QWidget):        
 
    def __init__(self):   
        super(QWidget, self).__init__()
        self.layout = QVBoxLayout(self)
 
        # Initialize tab screen
        self.tabs = QTabWidget()
        self.tab1 = QWidget()	
        self.tab2 = QWidget()
        self.tab3 = QWidget()
        self.tabs.resize(300,200) 
 
        # Add tabs
        self.tabs.addTab(self.tab1,"Universal")
        self.tabs.addTab(self.tab2,"Jornada")
        self.tabs.addTab(self.tab3,"Excelsior")
 
        # Create first tab
        self.tab1.layout = QVBoxLayout(self)
        self.pushButton1 = QPushButton("PyQt5 button")
        self.tab1.layout.addWidget(self.pushButton1)
        self.tab1.setLayout(self.tab1.layout)
 
        # Add tabs to widget        
        self.layout.addWidget(self.tabs)
        self.setLayout(self.layout)
 
    @pyqtSlot()
    def on_click(self):
        print("\n")
        for currentQTableWidgetItem in self.tableWidget.selectedItems():
            print(currentQTableWidgetItem.row(), currentQTableWidgetItem.column(), currentQTableWidgetItem.text())