[PyQt] Qfiledailoug multiple file selection

2009-03-06 Thread klia
Hey folks; How can i be able to select multiple files whenever i browse my directory using QfileDailoug? this is the code to call up the filedailoug files = QtGui.QFileDialog.getOpenFileName(self, 'Open file','/home/', (Images (*.png *.tiff *.jpg))) Thank you -- View this message in

[PyQt] How can I capture some mouse events but ignore others?

2009-03-06 Thread Marc Nations
Hi, I'm trying to create a custom table which pops up a menu when the user right clicks. This part works ok. It looks like this: class Table(QtGui.QTableWidget): def __init__(self, parent, gui): QtGui.QTableWidget.__init__(self, parent) self.gui = gui def

Re: [PyQt] PyKDE Question : Anyone know what's up with the KDE4 sample code?

2009-03-06 Thread Simon Edwards
Arthur Pemberton wrote: URL: http://websvn.kde.org/trunk/KDE/kdebindings/python/pykde4/examples/ I originally sent this to the PyKDE list, but it seemed to have bounced. So i'm trying here. Wasn't sure if other people were using some alternate means of learning or if everyone is just very

Re: [PyQt] How can I capture some mouse events but ignore others?

2009-03-06 Thread Brian Kelley
It looks like you are not accepting the event, try: if event.button() == QtCore.Qt.RightButton: self.rightClickMenu(event) event.accept() From the docs: void QEvent::accept () Sets the accept flag of the event object, the equivalent of calling setAccepted(true). Setting the accept

Re: [PyQt] How can I capture some mouse events but ignore others?

2009-03-06 Thread Marc Nations
Thanks, wasn't aware of being able to accept events. So I tried this, instead of waiting for release I moved it up to when a button is pressed to get a better idea of what was happening. I tried this: def mousePressEvent(self, event): if event.button() == QtCore.Qt.RightButton:

Re: [PyQt] How can I capture some mouse events but ignore others?

2009-03-06 Thread Brian Kelley
Hmm, that is what I would have thought, you could always try calling the table widget directory in the case of ignores. Actually, I'll bet you have to do this since you have overridden the mousePressEvent function. QtGui.QTableWidget.mousePressEvent(event) On 3/6/09 10:47 AM, Marc Nations

Re: [PyQt] How can I capture some mouse events but ignore others?

2009-03-06 Thread Phil Thompson
On Fri, 6 Mar 2009 07:50:57 -0800, Brian Kelley kel...@eyesopen.com wrote: Hmm, that is what I would have thought, you could always try calling the table widget directory in the case of ignores. Actually, I'll bet you have to do this since you have overridden the mousePressEvent function.

Re: [PyQt] How can I capture some mouse events but ignore others?

2009-03-06 Thread Jim Bublitz
On Friday 06 March 2009 06:53:01 am Marc Nations wrote: Hi, I'm trying to create a custom table which pops up a menu when the user right clicks. This part works ok. It looks like this: class Table(QtGui.QTableWidget): def __init__(self, parent, gui):

Re: [PyQt] Qfiledailoug multiple file selection

2009-03-06 Thread Detlev Offenbach
On Freitag, 6. März 2009, klia wrote: Hey folks; How can i be able to select multiple files whenever i browse my directory using QfileDailoug? this is the code to call up the filedailoug files = QtGui.QFileDialog.getOpenFileName(self, 'Open file','/home/', (Images (*.png *.tiff *.jpg)))

Re: [PyQt] How can I capture some mouse events but ignore others?

2009-03-06 Thread Andreas Pakulat
On 06.03.09 08:40:17, Jim Bublitz wrote: On Friday 06 March 2009 06:53:01 am Marc Nations wrote: Hi, I'm trying to create a custom table which pops up a menu when the user right clicks. This part works ok. It looks like this: class Table(QtGui.QTableWidget): def __init__(self,

Re: [PyQt] PyKDE Question : Anyone know what's up with the KDE4 sample code?

2009-03-06 Thread Arthur Pemberton
On Fri, Mar 6, 2009 at 9:13 AM, Simon Edwards si...@simonzone.com wrote: Arthur Pemberton wrote: URL: http://websvn.kde.org/trunk/KDE/kdebindings/python/pykde4/examples/ I originally sent this to the PyKDE list, but it seemed to have bounced. So i'm trying here. Wasn't sure if other people

Re: [PyQt] How can I capture some mouse events but ignore others?

2009-03-06 Thread Jim Bublitz
On Friday 06 March 2009 09:06:03 am Andreas Pakulat wrote: On 06.03.09 08:40:17, Jim Bublitz wrote: On Friday 06 March 2009 06:53:01 am Marc Nations wrote: Hi, I'm trying to create a custom table which pops up a menu when the user right clicks. This part works ok. It looks like this:

[PyQt] Re: Qt 4.5 and PyQt 4.5 for Ubuntu Hardy

2009-03-06 Thread Joshua Kugler
Matt Smith wrote: Have you tried to build them, I am using hardy, I downloaded sip 4.8 and pyqt 4.5 snapshots, it built find without any errors. I'm not sure what dependencies I have previously installed but it is quite trouble free process. If you are doing it for the first time you might

Re: [PyQt] How can I capture some mouse events but ignore others?

2009-03-06 Thread Marc Nations
On Fri, Mar 6, 2009 at 12:05 PM, Jim Bublitz jbubl...@nwinternet.comwrote: - Show quoted text - On Friday 06 March 2009 09:06:03 am Andreas Pakulat wrote: On 06.03.09 08:40:17, Jim Bublitz wrote: On Friday 06 March 2009 06:53:01 am Marc Nations wrote: Hi, I'm trying to create a

[PyQt] Is there a signal sended by HighLight ?

2009-03-06 Thread projetmbc
Hello, I would like to know if there is a signal sended by the SyntaxHiglighter when it catches a change in the text ? Best regards. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Problems freeing objects

2009-03-06 Thread Albert Cervera i Areny
In my application the main interface is based on tabs. The problem is that when I open a new tab I see memory increase but it does not decrease when I close the tab. I've been looking at this and I try to remove the widget from the QTabWidget. Set its parent to None and remove its reference.

Re: [PyQt] Problems freeing objects

2009-03-06 Thread Andreas Pakulat
On 07.03.09 00:56:06, Albert Cervera i Areny wrote: In my application the main interface is based on tabs. The problem is that when I open a new tab I see memory increase but it does not decrease when I close the tab. I've been looking at this and I try to remove the widget from the

[PyQt] Connecting to a QItemModel

2009-03-06 Thread Arthur Pemberton
How does one connect to the signals of a QItemModel? I tried the following, but it didn't work: self.connect( self.model, QtCore.SIGNAL('itemChanged(QStandardItem 8)'), self.on_model_itemChanged ) and

Re: [PyQt] Connecting to a QItemModel

2009-03-06 Thread Mads Ipsen
How does one connect to the signals of a QItemModel? I tried the following, but it didn't work: self.connect( self.model, QtCore.SIGNAL('itemChanged(QStandardItem 8)'), self.on_model_itemChanged ) and

Re: [PyQt] Connecting to a QItemModel

2009-03-06 Thread Arthur Pemberton
On Fri, Mar 6, 2009 at 6:22 PM, Mads Ipsen m...@comxnet.dk wrote: How does one connect to the signals of a QItemModel? I tried the following, but it didn't work: self.connect( self.model, QtCore.SIGNAL('itemChanged(QStandardItem 8)'),

[PyQt] PyQt by example: session 4

2009-03-06 Thread Roberto Alsina
Just published, Action! introduces actions, toolbars, menubars. http://lateral.netmanagers.com.ar/stories/BBS50.html ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Qfiledailoug multiple file selection

2009-03-06 Thread klia
Detlev Offenbach wrote: On Freitag, 6. März 2009, klia wrote: Hey folks; How can i be able to select multiple files whenever i browse my directory using QfileDailoug? this is the code to call up the filedailoug files = QtGui.QFileDialog.getOpenFileName(self, 'Open file','/home/',

Re: [PyQt] PyKDE Question : Anyone know what's up with the KDE4 sample code?

2009-03-06 Thread Arthur Pemberton
On Fri, Mar 6, 2009 at 9:13 AM, Simon Edwards si...@simonzone.com wrote: Arthur Pemberton wrote: URL: http://websvn.kde.org/trunk/KDE/kdebindings/python/pykde4/examples/ I originally sent this to the PyKDE list, but it seemed to have bounced. So i'm trying here. Wasn't sure if other people

Re: [PyQt] PyKDE Question : Anyone know what's up with the KDE4 sample code?

2009-03-06 Thread Arthur Pemberton
On Fri, Mar 6, 2009 at 9:13 AM, Simon Edwards si...@simonzone.com wrote: Arthur Pemberton wrote: URL: http://websvn.kde.org/trunk/KDE/kdebindings/python/pykde4/examples/ I originally sent this to the PyKDE list, but it seemed to have bounced. So i'm trying here. Wasn't sure if other people