ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

28 May 2020
2020-05-28×
28 May 2020
I used this command to generate the file, but the QString appears undefined
I
self.tabWidget.addTab(self.tab, QString())
Ë
Isn't QString removed from PySide? 🤔 you can just use ""
please am try to do a registration validation on PYQT5 where the users input is not filled in a particular LineEdit a MessageBox should display showing a warning message for the user to fill the LineEdit omitted i.e in web aspect if Email Text field is not filled a script alert display to the user to fill in his or her emai.
Y
this is my code: def CreateTab(self): uname = self.UnamelineEdit.text() email = self.MaillineEdit.text() pword = self.PwordlineEdit.text() con = sqlite3.connect("databasename") con.execute("INSERT INTO USER(USERNAME,EMAIL,PASSWORD) VALUES(?,?,?)", (uname, email, pword)) if UnameLineEdit.text == "": print("invalid") else: print("data inserted") con.commit() con.close() msg = QMessageBox() msg.setWindowTitle("Confirmation") msg.setText("Registeration successful!") msg.setIcon(QMessageBox.Information) msg.setStandardButtons(QMessageBox.Retry | QMessageBox.Ignore | QMessageBox.Cancel) msg.setDefaultButton(QMessageBox.Ignore) x = msg.exec_()
C
Hello, this is a PySide2 group, not a PyQt5, but anyways...what's is the problem? be more precise on what's the difficulty, or "where" you get an error message or something like that.
Y
From the if statement, try to test run the simple code if it will work by picking a particular LineEdit. If UnameLineEdit.text == "": print("invalid"). else: print("data inserted")
C
you are missing the ()
C
maybe there are other problems in ther est of the code
Calendar: May 2020
Archive by month
Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog