Re: [PyQt] Button Color

2011-08-16 Thread uahmed
I am calling print just after using connect method . I think you are right it might get focus after displayed . On Wed, Aug 17, 2011 at 3:35 AM, Josh Stratton wrote: > I would assume it should print true if it's focused. Where are you > calling print? It might receive focus after you check if

Re: [PyQt] Button Color

2011-08-16 Thread Josh Stratton
I would assume it should print true if it's focused. Where are you calling print? It might receive focus after you check if it has focus. It might receive focus after the window is displayed. Not sure, but that's a guess. On Tue, Aug 16, 2011 at 3:32 PM, uahmed wrote: > Hi > > Thanks for the

Re: [PyQt] Button Color

2011-08-16 Thread uahmed
Hi Thanks for the reply yes it is like that When i press tab it moves to next button but When i use this command print close.hasFocus() It prints False , Does it indicate that it dont have Focus ? Thank You On Wed, Aug 17, 2011 at 3:26 AM, Josh Stratton wrote: > That looks like the default b

Re: [PyQt] Button Color

2011-08-16 Thread Josh Stratton
That looks like the default button that has focus if you were to hit "Enter" sending an event to that button. Like if you were to hit tab, the second button would receive the focus. You can check if the button has focus by calling hasFocus() or clearing it by calling clearFocus(). That should re

Re: [PyQt] button color

2007-07-16 Thread David Boddie
On Mon Jul 16 18:49:21 BST 2007, Katja Wegner wrote: > thanks for the fast answer. I checked the returned colors and all alpha > values are 255, thus no semi-transparent colors. I think I was confused about that as well, but that's another issue. :-/ > I checked it in my program, again: > linux

Re: [PyQt] button color

2007-07-15 Thread David Boddie
On Sun Jul 15 15:02:24 BST 2007, K.Wegner wrote: > Hi, in my program the user presses a button and gets the color dialog where > he can choose a color. after that I want to change the color of this button > to the new color but only the border is set to a new color and not the > background of the