[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Make widget look disabled
From:       Jason H <scorp1us () yahoo ! com>
Date:       2009-07-31 19:04:54
Message-ID: 840964.15956.qm () web65710 ! mail ! ac4 ! yahoo ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Why wouldn't you what to just use up/down (tristate) buttons?

You can set a widget to get mouse events even when the mouse is not down, but I do \
not know if the enabling changes that.






________________________________
From: Anita Westman <AWestman@evertz.com>
To: Jason H <scorp1us@yahoo.com>; PyQt@riverbankcomputing.com
Sent: Friday, July 31, 2009 2:51:05 PM
Subject: RE: [PyQt] Make widget look disabled

Make widget look disabled  
I have 
4 widgets. The widget that is currently active has a border around the 
frame.  I want the user to be able to select the other 3 widgets, but while 
they are not selected I want them to look disabled.  When I disable using 
setEnabled(False), I can't get the mouse events for those widgets to unselect 
the last frame and draw a border around the newly selected 
frame.
-----Original Message-----
> From: Jason H 
> [mailto:scorp1us@yahoo.com]
> Sent: Friday, July 31, 2009 2:46 
> PM
> To: Anita Westman; PyQt@riverbankcomputing.com
> Subject: >  Re: [PyQt] Make widget look disabled
> 
> 
> What in the world you are trying to do?
> 
> I seriously question your 
> logic...
> 
> And it's not a PyQt question.
> 
> But what about setting 
> the stylesheet to match a disabled one?
> 
> 
> 
> 
> 
________________________________
 From: Anita Westman 
> <AWestman@evertz.com>
> To: >  PyQt@riverbankcomputing.com
> Sent: Friday, July 31, 2009 2:02:25 
> PM
> Subject: [PyQt] Make 
> widget look disabled
> 
> 
> How would I make a widget look disabled with it 
> actually being enabled? 
> 


      


[Attachment #5 (text/html)]

<html><head><style type="text/css"><!-- DIV {margin:0px;} \
--></style></head><body><div style="font-family:times new roman,new \
york,times,serif;font-size:12pt"><div>Why wouldn't you what to just use up/down \
(tristate) buttons?<br><br>You can set a widget to get mouse events even when the \
mouse is not down, but I do not know if the enabling changes \
that.<br><br><br></div><div style="font-family: times new roman,new york,times,serif; \
font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; \
font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span \
style="font-weight: bold;">From:</span></b> Anita Westman \
&lt;AWestman@evertz.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> \
Jason H &lt;scorp1us@yahoo.com&gt;; PyQt@riverbankcomputing.com<br><b><span \
style="font-weight: bold;">Sent:</span></b> Friday, July 31, 2009 2:51:05 \
PM<br><b><span style="font-weight: bold;">Subject:</span></b> RE: [PyQt] Make widget \
look  disabled<br></font><br>


 
<title>Make widget look disabled</title>

<style type="text/css">DIV {
MARGIN:0px;}
</style>


<div><font color="#0000ff" face="Arial" size="2"><span class="565154718-31072009">I \
have  4 widgets. The widget that is currently active has a border around the 
frame.&nbsp; I want the user to be able to select the other 3 widgets, but while 
they are not selected I want them to look disabled.&nbsp; When I disable using 
setEnabled(False), I can't get the mouse events for those widgets to unselect 
the last frame and draw a border around the newly selected 
frame.</span></font></div>
<blockquote>
  <div class="OutlookMessageHeader" dir="ltr" align="left"><font face="Tahoma" \
size="2">-----Original Message-----<br><b>From:</b> Jason H   \
[mailto:scorp1us@yahoo.com]<br><b>Sent:</b> Friday, July 31, 2009 2:46   \
PM<br><b>To:</b> Anita Westman; PyQt@riverbankcomputing.com<br><b>Subject:</b>   Re: \
[PyQt] Make widget look disabled<br><br></font></div>  <div style="font-size: 12pt; \
font-family: times new roman,new york,times,serif;">  <div>What in the world you are \
trying to do?<br><br>I seriously question your   logic...<br><br>And it's not a PyQt \
question.<br><br>But what about setting   the stylesheet to match a disabled \
one?<br><br></div>  <div style="font-size: 12pt; font-family: times new roman,new \
york,times,serif;"><br>  <div style="font-size: 12pt; font-family: times new \
roman,new york,times,serif;"><font face="Tahoma" size="2">  <hr size="1">
  <b><span style="font-weight: bold;">From:</span></b> Anita Westman 
  &lt;AWestman@evertz.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> 
  PyQt@riverbankcomputing.com<br><b><span style="font-weight: bold;">Sent:</span></b> \
Friday, July 31, 2009 2:02:25   PM<br><b><span style="font-weight: \
bold;">Subject:</span></b> [PyQt] Make   widget look disabled<br></font><br>
  <p><font face="Arial" size="2">How would I make a widget look disabled with it 
  actually being enabled?</font> 
</p></div></div></div><br></blockquote></div></div></div><br>

      </body></html>



_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://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