Re: PyQt pass data from class
Thanks for your reply Is the latter, can you explain how i can do it. Thanks -- https://mail.python.org/mailman/listinfo/python-list
PyQt pass data from class
Hello i need to this 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.tabWidget.setCurrentIndex(0) combo = QComboBox() self.disegno = Cornice() class Cornice(QPainter): def __init__(self, parent=None): lista_dati = [] in the class Form i have a lineEdit in the class Cornice i need to write something link self.lineEdit.setText('blabla') that is in the class Form in wich way i can have access to the lineedit of class Form without event from class Cornice Many Thanks -- https://mail.python.org/mailman/listinfo/python-list
Re: Qtimer and extra argument
thanks -- https://mail.python.org/mailman/listinfo/python-list
Re: Qtimer and extra argument
I get () missing 1 required positional argument: 's' -- https://mail.python.org/mailman/listinfo/python-list
Qtimer and extra argument
Hello i hope that yo can reply to this question also if the argument is pyqt i have a simple test: def start_timer(self): self.timer = QTimer() testo = 'pressed' self.timer.singleShot(1000, self.metto_testo) def test(self, testo): self.lineEdit.setText(testo) How i can pass the variable testo to the def test? If i use : self.timer.singleShot(1000, self.metto_testo(testo) i get error Thanks -- https://mail.python.org/mailman/listinfo/python-list
import
Hello i'm not sure that is the right group but i try i use pyqt5 with eric i have two form in the first form i have add : from form_two import Form_two and for pass varible to second form i have add in the function def test(self) self.ft= Form_two() #so i can acces to Object in form_two self.ft.tableView.setModel(.) and it work But i need to pass also value from form two to object in in the firs but when i add from form_one import Form (in form two) i get the error Unhandled import error cannot import name Form (but the class name is correct) Thanks Luca -- https://mail.python.org/mailman/listinfo/python-list