Authentication Rejected: No auth protocols/host-based auth failed
Unsolved
Qt for Python
-
wrote on 16 Mar 2020, 16:40 last edited by
I am new to PyQt and am trying to learn the basics for GUI building. I am following a tutorial to build a window and a button that displays text, but I keep encountering this error. I am running a Manjaro distro with latest kernel.
qt5ct: using qt5ct plugin
Qt: Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed#!/usr/bin/python3 # -*- coding: utf:8 -*- import sys from PyQt5.QtWidgets import (QWidget, QToolTip, QPushButton, QApplication) from PyQt5.QtGui import QFont class Example(QWidget): def __init__(self): super().__init__() self.initUI() def initUI(self): QToolTip.setFont(QFont('SansSerif', 10)) self.setToolTip('This is a <b>QWidget</b> widget') btn = QPushButton('Button', self) btn.setToolTip('This is a <b>QPushButton</b> widget') btn.resize(btn.sizeHint()) btn.move(50, 50) self.setGeometry(300, 300, 300, 200) self.setWindowTitle('Tooltips') self.show() if __name__ == '__main__': app = QApplication(sys.argv) ex = Example() sys.exit(app.exec_())
1/1