variable exchange

Luca Bertolotti luca72.bertolotti at gmail.com
Tue Oct 9 03:12:25 EDT 2018


Hello i'm using python with pyqt but i have a problem on varable:
I have two class:

from PyQt5.QtCore import pyqtSlot
from PyQt5.QtWidgets import QWidget
from PyQt5.QtSql import QSqlDatabase, QSqlTableModel
from PyQt5 import QtWidgets
from PyQt5.QtCore import Qt

from Ui_form import Ui_Form
from form_cli import Form_cli


class Form(QWidget, Ui_Form):
    """
    Class documentation goes here.
    """
    def __init__(self, parent=None):
        """
        Constructor
        
        @param parent reference to the parent widget
        @type QWidget
        """
        super(Form, self).__init__(parent)
        self.setupUi(self)
        self.ftc = Form_cli()....................................etc


from PyQt5.QtCore import pyqtSlot, QModelIndex
from PyQt5.QtWidgets import QWidget, QTableWidgetItem, QLineEdit
from PyQt5.QtSql import QSqlTableModel
from PyQt5.QtSql import QSqlDatabase
from PyQt5.QtCore import Qt




from Ui_form_cli import Ui_Form



class Form_cli(QWidget, Ui_Form):
    """
    Class documentation goes here.
    """
    def __init__(self, parent=None):
        """
        Constructor
        
        @param parent reference to the parent widget
        @type QWidget
        """
        super(Form_cli, self).__init__(parent)
        self.setupUi(self)
        self.db = QSqlDatabase()
        self.tableWidget.setRowCount(1)
        self.tableWidget.setColumnCount(10)


>From the class Form_cli how i can modify a textedit that is in the class Form?

Thanks



More information about the Python-list mailing list