Re: [PyQt] Make widget look disabled
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 To: Jason H ; 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:scorp...@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 > >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? > ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
RE: [PyQt] 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:scorp...@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 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? ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
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 To: PyQt@riverbankcomputing.com Sent: Friday, July 31, 2009 2:02:25 PM Subject: [PyQt] Make widget look disabled Make widget look disabled How would I make a widget look disabled with it actually being enabled? ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Make widget look disabled
How would I make a widget look disabled with it actually being enabled? ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Printing a widget
Check labs.trolltech.com They recently (since 4.5's release) had an article about improving rendering on higher DPI screens. Me thinks this would give you clues. - Original Message From: Robert J. Hansen To: Jason H Cc: pyqt@riverbankcomputing.com Sent: Friday, July 31, 2009 12:03:24 AM Subject: Re: [PyQt] Printing a widget > Are you accounting for the higher DPI of printers (300, 600) vs that of the > screen (72 or 90)? You'll need to scale accordingly. I am not; thank you. Now for a follow-up question: is there any way to programmatically discover the DPI of the screen? QPrinter has a .resolution() which I'm assuming will give me the necessary DPI, but I don't know where I'd look in PyQt to find the screen DPI. Once again, thanks for the answer to my question -- I hope you'll indulge another. :) ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] looking for a "QPropertyEditor"
Hello, I am looking for a "QPropertyEditor" just like the one in the QDesigner. For C++ I found this posting http://lists.trolltech.com/qt-interest/2008-10/msg00596.html where the two following C++ implementations were discussed: http://qt-apps.org/content/show.php/QPropertyEditor?content=68684 (LGPL) http://www.qtsoftware.com/products/appdev/add-on-products/catalog/4/Widgets/qtpropertybrowser/ (Qt commercial solution) Does somebody know of a PyQt implementation? Regards Magnus ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Detecting GUI changes
Saúl Ibarra wrote: > > Hi and thanks for your answer! > > I'm using QLineEdit boxes and load text from an SQLite DB so AFAIK I > can't use qseltablemodel... > > Any other ideas? > Every Qt widget has some sort of "data updated" signal you can catch. You can always compare the new value the widget has at the time the signal was sent with the old value you know about and turn on a 'dirty' flag of your own. Eli -- View this message in context: http://www.nabble.com/Detecting-GUI-changes-tp24698714p24755487.html Sent from the PyQt mailing list archive at Nabble.com. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] PyQt: tr() or translate()
Dnia niedziela 26 lipca 2009 o 22:27:02 Hans-Peter Jansen napisał(a): > Am Sonntag, 26. Juli 2009 schrieb Michał Klich: > > Dnia czwartek 23 lipca 2009 o 02:05:08 Hans-Peter Jansen napisał(a): > > > Am Mittwoch, 22. Juli 2009 schrieb Michał Klich: > > > > Hi, > > > > > > > > I would like to get some calrification on tr() and translate(). > > > > On webpage > > > > http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/pyqt4ref.html#i > > > >nter nationalisation-of-pyqt-applicationsi found information that it > > > > is better to use > > > > QCoreApplication.translate() > > > > instead of tr(). > > > > > > http://www.riverbankcomputing.com/static/Docs/PyQt4/pyqt4ref.html#diffe > > >renc es-between-pyqt-and-qt > > > > > > > Looks like QT Designer is using same approach. Though i can not find > > > > any examples that would cover usage of QCoreApplication.translate(), > > > > like no one would use it > > > > > > Apart from the additional context AND the very important note above, > > > there's none. > > > > > > > Can someone please provide me with some additional info, some > > > > examples? Or maybe website i am refering to is out of date? > > > > I guess i could summarize my question, how do you create > > > > mutlilanguage apps? > > > > > > You will have to ask more precisely, if you really want helpful answers > > > - or even better, buy Mark Summerfields book "Rapid GUI Programming > > > with Python and Qt" - you won't regret it! > > > > > > Pete > > > > > > ___ > > > PyQt mailing listPyQt@riverbankcomputing.com > > > http://www.riverbankcomputing.com/mailman/listinfo/pyqt > > > > Thank you very much for this book. I have been looking around for some > > good books and actually skipped this one. You can't judge a book by its > > cover but i did. > > I did judge it by its contents, and it's been a very long time that I > enjoyed reading a technical book that much. Mark did a brillant job for one > of the most underestimated technologies available today ;-). > > Pete > > ___ > PyQt mailing listPyQt@riverbankcomputing.com > http://www.riverbankcomputing.com/mailman/listinfo/pyqt I have my hands on this book and i can concur with you. It is very good, well written and covers what i had to do. At this point i have no doubts how to prepare translations. Thank you guys so much and Mark Summefield in first place :) -- Michał Klich klich.mic...@gmail.com mic...@michalklich.com http://www.michalklich.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt