[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyQt] weirdness with PyQt4 setWhatsThis function
From: Tony Willis <twillis449 () gmail ! com>
Date: 2016-08-22 20:32:40
Message-ID: e4c56954-382f-fd0f-5c96-ee8127a46766 () gmail ! com
[Download RAW message or body]
The little script below gives the simplest possible example of using the
PyQt setWhatsThis help function. My problem: the script runs fine on
Ubuntu 16.04 when one uses the KDE or Xfce desktop environment - the
help window pops up and the text is displayed. When I run it in the
UNITY / gnome desktop environment the help window pops up but NO text is
displayed. So somehow gnome is suppressing the text display. Has anyone
else encountered this problem? If so, is there a simple workaround?
My environment - Ubuntu 16.04 with PyQt4.
Thanks
Tony
#####################
!/usr/bin/env python
# use shift+f1 to get a help display to pop up
import sys
import PyQt4.Qt as Qt
class DemoMainWindow(Qt.QMainWindow):
def __init__(self, parent=None):
Qt.QMainWindow.__init__(self, parent)
self.setWhatsThis("This is a demo showing QWhatsThis does or
does not work")
# __init__()
# class DemoMainWindow
if __name__ == '__main__':
app = Qt.QApplication(sys.argv)
demo = DemoMainWindow()
demo.resize(500, 500)
demo.show()
sys.exit(app.exec_())
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic