Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
So lost
#4
do

Quote:pip3 show pyqt5

my output is

Output:
Name: PyQt5 Version: 5.11.2 Summary: Python bindings for the Qt cross platform UI and application toolkit Home-page: https://www.riverbankcomputing.com/software/pyqt/ Author: Riverbank Computing Limited Author-email: [email protected] License: GPL v3 Location: /home/brian/.local/lib/python3.6/site-packages Requires: PyQt5-sip Required-by:
if your output is not empty try an example

from PyQt5.QtWidgets import (QApplication, QMainWindow, QMessageBox)

class MainWindow(QMainWindow):
    def __init__(self):
        super(MainWindow, self).__init__()
        self.setWindowTitle("Test")
        self.setGeometry(50, 50, 250, 150)


    def msgbox(self, message):
        QMessageBox.information(self, "Message", message)


if __name__ == '__main__':
    import sys

    app = QApplication(sys.argv)
    mainWin = MainWindow()
    mainWin.show()
    mainWin.msgbox("it works")
    sys.exit(app.exec_())
Reply


Messages In This Thread
So lost - by mtndewwarrior - Sep-23-2018, 12:22 AM
RE: So lost - by Larz60+ - Sep-23-2018, 01:05 AM
RE: So lost - by mtndewwarrior - Sep-23-2018, 02:47 AM
RE: So lost - by Axel_Erfurt - Sep-23-2018, 09:58 AM
RE: So lost - by mtndewwarrior - Sep-23-2018, 03:23 PM
RE: So lost - by Axel_Erfurt - Sep-23-2018, 03:30 PM
RE: So lost - by mtndewwarrior - Sep-23-2018, 03:33 PM
RE: So lost - by Axel_Erfurt - Sep-23-2018, 04:00 PM
RE: So lost - by mtndewwarrior - Sep-23-2018, 04:00 PM
RE: So lost - by Axel_Erfurt - Sep-23-2018, 04:13 PM
RE: So lost - by mtndewwarrior - Sep-23-2018, 04:21 PM
RE: So lost - by Axel_Erfurt - Sep-23-2018, 07:42 PM
RE: So lost - by snippsat - Sep-23-2018, 08:49 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020