[PyQt] QModelTest and QAbstractTableModel models...

2008-02-19 Thread Dirk Wagener
Hi Can I use ModelTest to test custom implementations of QAbstractTableModel ? If I use ModelTest as is, it breaks when it tries to access some of the QAbstractTableModel private methods: File "Y:\tests\modeltest.py", line 81, in nonDestructiveBasicTest self.model.hasChildren(QtCore.QModelI

[PyQt] QComboBox + custom model, view, completer fails.(with example)

2008-02-19 Thread Igor Prischepoff
Hello,all! I'm trying to build my own completion in QComboBox. My overall setup with this thing is not working.Apparently I'm doing something wrong here. But what? What I'm trying to do: let's suppose we have this completion list (for simplicity it's small and with one column only, real data have

[PyQt] Always call pyqtRemoveInputHook()? (Or check if running under pdb)

2008-02-19 Thread Adeodato Simó
Hello. Reading the list archives, I found that to successfully run a PyQt application under pdb, one should call pyqtRemoveInputHook(). However, I can't figure out how the application can check if it's running under pdb, in order to make that call. So, does anybody how can I check if my app is r

Re: [PyQt] Always call pyqtRemoveInputHook()? (Or check if running under pdb)

2008-02-19 Thread Phil Thompson
On Tuesday 19 February 2008, Adeodato Simó wrote: > Hello. > > Reading the list archives, I found that to successfully run a PyQt > application under pdb, one should call pyqtRemoveInputHook(). > > However, I can't figure out how the application can check if it's > running under pdb, in order to ma

[PyQt] tracking current widget selection

2008-02-19 Thread John Vines (CISD/HPCD)
All, I am using the Model/View framework with a QTreeView to display my XML data. How do I find out the currently selected item in a QTreeView widget? Thanks in advance. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcom

Re: [PyQt] tracking current widget selection

2008-02-19 Thread Andreas Pakulat
On 19.02.08 13:15:48, John Vines (CISD/HPCD) wrote: > All, >I am using the Model/View framework with a QTreeView to display my XML > data. How do I find out the currently selected item in a QTreeView widget? Use the selection model of the view. Andreas -- You are as I am with You. ___

Re: [PyQt] QModelTest and QAbstractTableModel models...

2008-02-19 Thread Andreas Pakulat
On 19.02.08 09:47:50, Dirk Wagener wrote: > Hi > > Can I use ModelTest to test custom implementations of QAbstractTableModel ? > If I use ModelTest as is, it breaks when it tries to access some of the > QAbstractTableModel private > methods: > > File "Y:\tests\modeltest.py", line 81, in nonD

Re: [PyQt] tracking current widget selection

2008-02-19 Thread John Vines (CISD/HPCD)
Andreas, Thanks for the help. I'm a bit new to the PyQt and the Model/View framework so let's just say I don't quite follow :-[ Could you provide a bit more info, thanks again. Andreas Pakulat wrote: On 19.02.08 13:15:48, John Vines (CISD/HPCD) wrote: All, I am using the Model/V

Re: [PyQt] tracking current widget selection

2008-02-19 Thread John Vines (CISD/HPCD)
Andreas, OK I have a handle on it, thanks again. John John Vines (CISD/HPCD) wrote: Andreas, Thanks for the help. I'm a bit new to the PyQt and the Model/View framework so let's just say I don't quite follow :-[ Could you provide a bit more info, thanks again. Andreas Pakulat wro

[PyQt] PyQt4 with cx_Freeze

2008-02-19 Thread Darryl Wallace
Hello, I'm trying to use cx_Freeze (my latest try has been with version 3) to try to freeze a PyQt program into a binary for distribution. I tried just compiling the Multiple Document Interface (mdi.py) example that comes with PyQt4 as a test. I was wondering if you could help me out. I ru

Re: [PyQt] PyQt4 with cx_Freeze

2008-02-19 Thread Giovanni Bajo
On Tue, 19 Feb 2008 16:04:26 -0500, Darryl Wallace <[EMAIL PROTECTED]> wrote: > Hello, > > I'm trying to use cx_Freeze (my latest try has been with version 3) to > try to freeze a PyQt program into a binary for distribution. I tried > just compiling the Multiple Document Interface (mdi.py) exampl