Re: [PyQt] About keyPressEvent

2007-08-22 Thread Gustavo A. Dí­az
I did this time: def keyPressEvent(self, event):         if event.key() == QtCore.Qt.Key_Escape:         self.hide()                     if event.key() == QtCore.Qt.Key_Alt + QtCore.Qt.Key_Escape:             self.hide() Esc key only, hides the app. Alt + Esc does not, it just

Re: [PyQt] About keyPressEvent

2007-08-22 Thread Gustavo A. Dí­az
But this method is applied when you have a Menu bar right? Which i do NOT use. I just want the key combination Alt+Esc to hide my app. Examples please? Thanks. Sundance escribió: Gustavo A. Dí­az wrote: As i said, only Escape key. I want to know to do the same but with al

[PyQt] Qt and mysql

2007-08-22 Thread Martin Alderete
Hi! I have problems when i try to get values from sql query. I have record in database but when i do the code below i recived None objects..., I'm using mysql-server5.0, Qt4.3 and PyQt4.3 Can anybody check it? thank's! Martin Alderete self.manager = QtSql.QSqlDatabase("QMYSQL") self.manage

Re: [PyQt] can't create a QPainter in QTreeWidget's paintEvent

2007-08-22 Thread Jim Bublitz
On Wednesday 22 August 2007 13:49, Devon wrote: > Hi, folks - > > Here is a dummy version of a derived tree widget: > > > class MyTreeWidget(QTreeWidget): > def __init__(self, parent=None): > QTreeWidget.__init__(self, parent) > > def paintEvent(self, e)

[PyQt] can't create a QPainter in QTreeWidget's paintEvent

2007-08-22 Thread Devon
Hi, folks - Here is a dummy version of a derived tree widget: class MyTreeWidget(QTreeWidget): def __init__(self, parent=None): QTreeWidget.__init__(self, parent) def paintEvent(self, e): QTreeWidget.paintEvent(self, e) painter = QPain

Re: [PyQt] About keyPressEvent

2007-08-22 Thread Sundance
Gustavo A. Dí­az wrote: > As i said, only Escape key. > > I want to know to do the same but with alt + Escape... or which > is the way to do it... Hi Gustavo, I am not sure I understand what it is that gives you trouble here. Is it that you don't know how to go about it, or is it that it do