[PyQt] isColumnHidden problem

2009-07-23 Thread Kermit
hi all, i've a problem with isColumnHidden def __setupContextMenu(self): self.treeView_societe.header().setContextMenuPolicy(Qt.CustomContextMenu) self.__menu = QMenu(self) for a in range(len(TabSoc)): act = QAction(TabSoc[a], self)

[PyQt] TypeError: unable to convert a QVariant

2009-07-23 Thread Jason H
TypeError: unable to convert a QVariant of type 6 to a QMetaType of type 12738896 I have that error message. I have python-defined class that provides a property as: class X (QObject): xScale = pyqtProperty(double, getScaleX, setScaleX) then Qt tries to update the property

Re: [PyQt] Re: Very slow Eric editor on large files

2009-07-23 Thread Detlev Offenbach
On Donnerstag, 23. Juli 2009, Mario Daniel Carugno wrote: I guess Eric is a complex application, and Python is not the best option to write applications to run fast (Eric is written in Python as you probably know). I don't like Eric for that reason. Use kate or a better editor, VIM ;-) Good

Re: [PyQt] Setting font for QScintilla

2009-07-23 Thread Baz Walter
projetmbc wrote: I still have a little problem because I only want to have the comments in bold font in my example. Indeed all is in bold font. I don't understand why. the problem is this line: if style == self.Comment or self.Comment_End: i think you meant: if style ==

[PyQt] Row Height of a QTreeView

2009-07-23 Thread Fabrizio Milo aka misto
Hi, how can I set programmatically the height of the rows of a QTreeView? I would like also to increase the font, but doing self.font().pixelSize() returns -1 Any Ideas? Thanks -- Luck favors the prepared mind. (Pasteur) ___

[PyQt] error in syntax highlighting example

2009-07-23 Thread Jesse Aldridge
Hi. There's an error in the latest snapshot in examples/designer/plugins/widgets/highlightedtextedit.py Fix by doing this on line 133: - index = text.indexOf(expression, start) + index = expression.indexIn(text, start) ___ PyQt mailing list

Re: [PyQt] Row Height of a QTreeView

2009-07-23 Thread Albert Cervera i Areny
A Dijous, 23 de juliol de 2009, Fabrizio Milo aka misto va escriure: Hi, how can I set programmatically the height of the rows of a QTreeView? Row height depends on the sizeHint() of all the delegates in the row. So it depends on the font size (or if the text is wrapped, etc). I would like

Re: [PyQt] Setting font for QScintilla

2009-07-23 Thread projetmbc
Baz Walter a écrit : projetmbc wrote: I still have a little problem because I only want to have the comments in bold font in my example. Indeed all is in bold font. I don't understand why. the problem is this line: if style == self.Comment or self.Comment_End: i think you meant:

[PyQt] QStyle manipulations

2009-07-23 Thread Hans-Peter Jansen
Hi, I've some layout issues with customized widgets on the Mac, and now, I would like to _intercept_ a single QStyle method: layoutSpacingImplementation(), but how? I can create a style with QtGui.QStyleFactory.create(), but how do I intercept such a method? PyQt forbids me to subclass the