Starting QThread in PyQt5 leads to application crash
I have this little Python application that creates a GUI with PyQt5 for starting/stopping a remote server.
How to open a new window after successful login pyqt5
def login(self):
username = self.Username.text()
password = self.Password.text()
conn = sqlite3.connect(“studio.db”)
c = conn.cursor()
c.execute(“SELECT * FROM users WHERE username=? AND password=?”, (username, password))
result = c.fetchone()