Jul-21-2018, 02:20 PM
Hello Everybody,
sorry, I've a simple English language.
My issue is QtableWidget , how can I put information inside a table by using QLineEdit , QRadioButton and QPushButton ?
if I write any thing in the Line Edit show inside QTableWidget
I'll put my code Here and my window's screenshot Gui
this is a screenshot of my window gui
![[Image: p_932e7vs71.png]](https://f.top4top.net/p_932e7vs71.png)
thank you for attention
sorry, I've a simple English language.
My issue is QtableWidget , how can I put information inside a table by using QLineEdit , QRadioButton and QPushButton ?
if I write any thing in the Line Edit show inside QTableWidget
I'll put my code Here and my window's screenshot Gui
from PyQt5.QtGui import * from PyQt5.QtWidgets import * import sys app = QApplication(sys.argv) window = QWidget() window.setGeometry(350,150,600,450) window.setWindowTitle('Table') window.setToolTip('This program is not complete') Lable1 = QLabel('Full Name :',window) Lable1.move(40,15) Lable1 = QLabel('Age :',window) Lable1.move(252,15) Lable1 = QLabel('Gender :',window) Lable1.move(380,15) btnAdd = QPushButton('Add',window) btnAdd.resize(80,30) btnAdd.move(500,40) LinEd1 = QLineEdit('',window) # Name Line Edit LinEd1.resize(200,30) LinEd1.move(40,40) LinEd2 = QLineEdit('',window) # Age Line Edit LinEd2.resize(100,30) LinEd2.move(250,40) RadioM = QRadioButton('Male',window) # Gender Radio Buttons RadioM.move(370,35) RadioF = QRadioButton('Female',window) # Gender Radio Buttons RadioF.move(370,55) tablEx = QTableWidget(window) tablEx.resize(540,300) tablEx.move(30,100) tablEx.setColumnCount(3) tablEx.setRowCount(9) tablEx.setHorizontalHeaderLabels(("Name,Age,Gender").split(',')) window.show() app.exec_()
this is a screenshot of my window gui
![[Image: p_932e7vs71.png]](https://f.top4top.net/p_932e7vs71.png)
thank you for attention