Re: [PyQt] embedding iconic pushButton in TableView and/or TreeView

2010-11-16 Thread Hans Meine
Op den Dingsdag 16 November 2010 Klock 19:21:08 hett James Polk schreven: > I'm trying to figure out how embed a pushButton (with iconic image > preferrably) in the first column of a TableView (or TreeView in > QSortFilterProxyModel). AFAIK, this is exactly what widget delegates are for. http://

Re: [PyQt] ANN: Preview of Python code editor widget - pure Python alternative to QScintilla

2010-11-16 Thread Algis Kabaila
Benoit, I did download your editor to try it out. I note that the matching bracket "(" is not added automatically, nor the space after a comma; not does it automatically add left spacing after a command that ends with ":", viz "for i in range(5): Perhaps it is because the program does not li

[PyQt] Nube trying Unit testing a GUI app with PyQt

2010-11-16 Thread Ian
Hi all, I have been trying to find how to unit test a GUI app written using Python 2.7, PyQt 4.7.4 and Qt4 - Under windows 7 (64 bit). unittest and QtText appear promising, but I can't get started. Is there a beginners tutorial anywhere? Is there something better? Many thanks Ian

[PyQt] Order of %Import vs. %Include directives affects generated output with respect to namespaces?

2010-11-16 Thread Nate Reid
This is using sip 4.10 // Example module that produces erroneous output %Module example %Import mapped_types.sip // A separately compiled module with some mapped types %Import some_module.sip // This is before the %Includes %Include file.sip // A wrapped class that uses a wrapped class in

Re: [PyQt] How to destroy SIGNAL

2010-11-16 Thread starglider develop
Hi Mark, thank you so much for your help. I use QObject.disconnect(): QObject.disconnect(self.grdMain, SIGNAL("itemDoubleClicked(QTableWidgetItem*)"), self.grdClik) Your book about PyQt is great, thank you. regards, Jorge On 16 November 2010 08:53, Mark Summerfield wrote: > On Mon, 15 Nov 2010

[PyQt] Phonon import error

2010-11-16 Thread Gionata Boccalini
Hi everyone, first post to this mailing list! I have been having a problem importing Phonon module in a PyQt GUI application. The result is >>> from PyQt4 import Phonon Traceback (most recent call last): File "", line 1, in ImportError: cannot import name Phonon I am using opensuse 11.3 wit

[PyQt] embedding iconic pushButton in TableView and/or TreeView

2010-11-16 Thread James Polk
Hello, I'm trying to figure out how embed a pushButton (with iconic image preferrably) in the first column of a TableView (or TreeView in QSortFilterProxyModel).  This is something that is pretty easy to do in MEL (Maya's command language) but apparently seems pretty tricky to do in PyQt.  I've s

Re: [PyQt] pyuic4 assign invalid roles to labels and fields in Form layout

2010-11-16 Thread Hans Meine
Op den Dingsdag 09 November 2010 Klock 19:34:54 hett Phil Thompson schreven: > On Tue, 09 Nov 2010 19:25:28 +0100 (CET), Marián Kyral > > As you can see, labels have assigned FieldRole and fields have assigned > > LabelRole. > > > > self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole

Re: [PyQt] ANN: Preview of Python code editor widget - pure Python alternative to QScintilla

2010-11-16 Thread Benoît HERVIER
Hi, I ve already made my own Editor for Maemo and Meego, it s pure PyQt without scintilla too : Available at : http://khertan.net/khteditor http://gitorious.org/khteditor You can look at my code for : - parenthese matching Mine include some kinetic scrolling as it s mainly for Maemo device, s

Re: [PyQt] How to destroy SIGNAL

2010-11-16 Thread Mark Summerfield
On Mon, 15 Nov 2010 21:20:35 + starglider develop wrote: > Hi, > I have a QWidgetGrid that need to response to a double click signal, > but sometimes it as the > double grid signal disconnected to allow the user to directly edit the > cells, and a itemChanged signal was > implemented, my probl