[PyQt] PyQt ScrollArea - Scroll Wheel/two-fingure-scroll-gesture - Doesn't work unless mouse is over the scrollbar

2013-08-08 Thread Saravanan Shanmugham
I have a working PyQt GUI that has a scroll area with some matplotlib plots. As expected I see a scrollbar on the right side and the bottom of the scroll area. I am using a MAC When I move my mouse over the Scroll Bar and then I use the two-finger pan gesture i.e mouse wheel, I see mouse wheel ev

Re: [PyQt] how to use the button to control the program

2013-08-08 Thread 吉文
Hello,Dave, thank you very much for helping me, I am so sorry for replying later, I did the hardware of my project in these days. According to your hints, I changed my code, but when I click the start button, the program is dead, no any response. The following is my code. import sys from PyQt4 imp

Re: [PyQt] how to use the button to control the program

2013-08-08 Thread David Hoese
Hi Harry, Sorry, I think you misunderstood me. When I said you might be able to use a loop that didn't return I meant you could use it with a QTimer...BUT I had time to try this and it doesn't work. Before I give you more hints I'll say it again, research the Qt Event Loop, but at this point this