pyqt5 - Qt5 widgets seem slow to respond (redraw) after a click or a hover in i3 window manager -
while using favorite window manager i3 on fedora core 24, have upgraded pyqt5 pyqt4 working perfectly. started minimal example:
import sys pyqt5.qtwidgets import ( qapplication, qpushbutton, qvboxlayout, qwidget, ) def test(): app = qapplication(sys.argv) window = qwidget() lo = qvboxlayout() window.setlayout(lo) in range(10): btn = qpushbutton(str(i)) lo.addwidget(btn) window.show() sys.exit(app.exec_()) if __name__ == '__main__': test()
what saw:
the widget's buttons not responsive. i.e. appearance slow update , feels laggy after click. if window loses focus (by moving mouse out example) buttons update immediately. happens when using i3, other wms don't seem have problem (tested on gnome).
a yet stranger behavior observed sometimes: after clicking button looks clicked 5 seconds, appears in normal state next 5 seconds, clicked state!
what expected instead:
a smooth gui behavior similar pyqt4
further info
output of i3 --moreversion 2>&- || i3 --version
:
binary i3 version: 4.12 (2016-03-06, branch "4.12") © 2009 michael stapelberg , contributors running i3 version: 4.12 (2016-03-06, branch "4.12") (pid 17904) loaded i3 config: /home/username/.i3/config (last modified: wed 27 jul 2016 01:49:50 pm cest, 2497 seconds ago) i3 binary called: /usr/bin/i3 i3 binary running: i3
my logfile: http://logs.i3wm.org/logs/5631496962441216.bz2
Comments
Post a Comment