Re: [PyQt] RightClick on QListView?

2008-02-25 Thread Aron Bierbaum
You have to use a custom context menu: def setupUi(self): view.setContextMenuPolicy(QtCore.Qt.CustomContextMenu) view.connect(view, QtCore.SIGNAL("customContextMenuRequested(QPoint)", self.onContext) def onContext(self): # Create a menu menu = QtGui.QMenu

[PyQt] RightClick on QListView?

2008-02-25 Thread Dirk Reiners
Hi All, we're trying to have a popup menu on a QListView, but there doesn't seem to be a way to detect right clicks on those. I'm sure I've done that before and there was a signal, but it looks like it's gone. Can anybody give me a hint on how to do that now? Thanks Dirk _

Re: [PyQt] QTextDocument and contentChange(int, int, int)

2008-02-25 Thread Phil Thompson
On Monday 25 February 2008, Tim Kornhammar wrote: > Hi. > > >From what I understand the function contentChange(int, int, int) is > > implemented but at the same time it does not seem like python accepts the > following code: > > self.connect(self.tabs.docs.getTextEdit(index).document(), > QtCore.S

Re: [PyQt] pyqt4 make: symbols not found

2008-02-25 Thread Phil Thompson
On Monday 25 February 2008, Joshua Bronson wrote: > Hi PyQt list, > I'm new to PyQt and I'm excited to start using it. After successfully > installing sip 4.7.4, I unfortunately ran into problems building PyQt > 4.3.3. The build goes fine for a while but then ld chokes on some undefined > symbols.

[PyQt] QTextDocument and contentChange(int, int, int)

2008-02-25 Thread Tim Kornhammar
Hi. >From what I understand the function contentChange(int, int, int) is implemented but at the same time it does not seem like python accepts the following code: self.connect(self.tabs.docs.getTextEdit(index).document(), QtCore.SIGNAL('contentsChange(int, int, int)'), self.MainWindow, QtCore.SL

Re: [PyQt] Re: Bug ovverriding sizeHint

2008-02-25 Thread Phil Thompson
On Monday 25 February 2008, Giovanni Bajo wrote: > On 2/25/2008 4:46 PM, Phil Thompson wrote: > >> Thanks for your change, but this is a showstopper for me, so I guess I > >> will have to find a different solution. Specifically, I would also need > >> to remove the attribute and readd it later, etc

Re: [PyQt] Re: Bug ovverriding sizeHint

2008-02-25 Thread Giovanni Bajo
On 2/25/2008 4:46 PM, Phil Thompson wrote: Thanks for your change, but this is a showstopper for me, so I guess I will have to find a different solution. Specifically, I would also need to remove the attribute and readd it later, etc. (The GC issue also worries me, but I have not analyzed its im

Re: [PyQt] Re: Bug ovverriding sizeHint

2008-02-25 Thread Phil Thompson
On Monday 25 February 2008, Giovanni Bajo wrote: > On 2/25/2008 3:28 PM, Phil Thompson wrote: > > 2. Patching will have no effect if the virtual has already been invoked > > (because there is an internal cache). > > Thanks for your change, but this is a showstopper for me, so I guess I > will have

Re: [PyQt] Re: Bug ovverriding sizeHint

2008-02-25 Thread Giovanni Bajo
On 2/25/2008 3:28 PM, Phil Thompson wrote: 2. Patching will have no effect if the virtual has already been invoked (because there is an internal cache). Thanks for your change, but this is a showstopper for me, so I guess I will have to find a different solution. Specifically, I would also ne

[PyQt] pyqt4 make: symbols not found

2008-02-25 Thread Joshua Bronson
Hi PyQt list, I'm new to PyQt and I'm excited to start using it. After successfully installing sip 4.7.4, I unfortunately ran into problems building PyQt 4.3.3. The build goes fine for a while but then ld chokes on some undefined symbols. A copy of the output is at http://pylonshq.com/pasties/721.

Re: [PyQT] QDialog with only one button

2008-02-25 Thread Alexandre Badez
On Mon, Feb 25, 2008 at 3:14 PM, Doug Bell <[EMAIL PROTECTED]> wrote: > > Alexandre Badez wrote: > > Hy, > > > > I would like to display a message to my users with a QDialog with only > > a 'ok' button. > > But I didn't found any option about this in the QDialog class. > > > > Any idea ? > >

Re: [PyQt] Re: Bug ovverriding sizeHint

2008-02-25 Thread Phil Thompson
On Monday 25 February 2008, Giovanni Bajo wrote: > On 2/25/2008 10:29 AM, Phil Thompson wrote: > >> === > >> from PyQt4.Qt import * > >> app = QApplication([]) > >> w = QWidget() > >> L = QVBoxLayout(w) > >> L.addWidget(QLabel("ciao", w)) > >> > >

Re: [PyQT] QDialog with only one button

2008-02-25 Thread Doug Bell
Alexandre Badez wrote: > Hy, > > I would like to display a message to my users with a QDialog with only > a 'ok' button. > But I didn't found any option about this in the QDialog class. > > Any idea ? Try QMessageBox. Doug. ___ PyQt mailing listPy

[PyQT] QDialog with only one button

2008-02-25 Thread Alexandre Badez
Hy, I would like to display a message to my users with a QDialog with only a 'ok' button. But I didn't found any option about this in the QDialog class. Any idea ? -- Alex ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomput

[PyQt] Re: QImage from Python buffer

2008-02-25 Thread Jeremy Sanders
Phil Thompson wrote: > Tonight's SIP snapshot will allow a Python object that supports the buffer > interface to be used whenever a char or char * is expected. No need to > rebuild PyQt. Great - thanks! -- http://www.jeremysanders.net/ ___ PyQt maili

[PyQt] Re: Bug ovverriding sizeHint

2008-02-25 Thread Giovanni Bajo
On 2/25/2008 10:29 AM, Phil Thompson wrote: === from PyQt4.Qt import * app = QApplication([]) w = QWidget() L = QVBoxLayout(w) L.addWidget(QLabel("ciao", w)) called_class = [] class MyScrollArea(QScrollArea): def sizeHint(self):

[PyQt] Re: Bug ovverriding sizeHint

2008-02-25 Thread Phil Thompson
On Friday 22 February 2008, Giovanni Bajo wrote: > Hi, > > consider this snippet: > > === > from PyQt4.Qt import * > app = QApplication([]) > w = QWidget() > L = QVBoxLayout(w) > L.addWidget(QLabel("ciao", w)) > > called_class = [] > class MyScrol