[PyQt] multiple dialog boxes simultaneously

2007-11-28 Thread Pradnyesh Sawant
Hello, I want to have multiple dialog boxes simultaneously. So I have a function, which is the target for threading.Thread, and which creates a new dialog. But I'm getting the following error: ASSERT failure in QWidget: "Widgets must be created in the GUI thread.", file kernel/qwidget.cpp, line 951

Re: [PyQt] Problem with a simple QDialog

2007-11-28 Thread Alexandre Badez
On Nov 28, 2007 2:23 PM, Andreas Pakulat <[EMAIL PROTECTED]> wrote: > On 28.11.07 13:21:37, Alexandre Badez wrote: > > On Nov 28, 2007 12:00 PM, Andreas Pakulat <[EMAIL PROTECTED]> wrote: > > > > > But you can do this inside your dialog class. Just override the accept > > > and reject methods and

Re: [PyQt] Problem with a simple QDialog

2007-11-28 Thread Andreas Pakulat
On 28.11.07 13:21:37, Alexandre Badez wrote: > On Nov 28, 2007 12:00 PM, Andreas Pakulat <[EMAIL PROTECTED]> wrote: > > > But you can do this inside your dialog class. Just override the accept > > and reject methods and do whatever logic you have their. > > > > It doesn't make sense to have a moda

[PyQt] Re: running pyqt application on win*

2007-11-28 Thread Thorsten Kampe
* Giovanni Bajo (Wed, 28 Nov 2007 00:45:08 +0100) > On Mon, 2007-11-26 at 21:32 +0200, Markos Gogoulos wrote: > > there's py2exe to make windows executables, without the need to ship > > python or qt. Py2exe is easy to use and there's some cool > > documentation regarding pyqt, check > > http://ww

Re: [PyQt] Problem with a simple QDialog

2007-11-28 Thread Alexandre Badez
On Nov 28, 2007 12:00 PM, Andreas Pakulat <[EMAIL PROTECTED]> wrote: > But you can do this inside your dialog class. Just override the accept > and reject methods and do whatever logic you have their. > > It doesn't make sense to have a modal dialog without another window > (i.e. in your __main__

Re: [PyQt] auto-completing combo box with table view

2007-11-28 Thread Andreas Pakulat
On 28.11.07 22:16:09, Horst Herb wrote: > On Wednesday 28 November 2007, Andreas Pakulat wrote: > > That model provides data, no matter wether the index is valid or not or > > the role matches Qt.DisplayRole. That means you break the contract > > between model and view. > > It is just a dummy to d

Re: [PyQt] auto-completing combo box with table view

2007-11-28 Thread Horst Herb
On Wednesday 28 November 2007, Andreas Pakulat wrote: > That model provides data, no matter wether the index is valid or not or > the role matches Qt.DisplayRole. That means you break the contract > between model and view. It is just a dummy to deliver some data to test the widget - should do that

Re: [PyQt] Problem with a simple QDialog

2007-11-28 Thread Andreas Pakulat
On 28.11.07 10:40:58, Alexandre Badez wrote: > On Nov 28, 2007 10:21 AM, Horst Herb <[EMAIL PROTECTED]> wrote: > > > On Wednesday 28 November 2007, Alexandre Badez wrote: > > > wChapterSelection = QtGui.QDialog() > > > wChapterSelection.exec_() > > > > > > And I've got also a bus error. > > > > >

Re: [PyQt] auto-completing combo box with table view

2007-11-28 Thread Andreas Pakulat
On 28.11.07 18:43:43, Horst Herb wrote: > After studying the PyQT documentation for an hour, I remain confused > I have a simple task: a combo widget shall start auto-completing text input > >from a database table, and present options in a table view (column-separated > list of database rows) >

Re: [PyQt] Problem with a simple QDialog

2007-11-28 Thread Alexandre Badez
On Nov 28, 2007 10:21 AM, Horst Herb <[EMAIL PROTECTED]> wrote: > On Wednesday 28 November 2007, Alexandre Badez wrote: > > wChapterSelection = QtGui.QDialog() > > wChapterSelection.exec_() > > > > And I've got also a bus error. > > > > What really suprise me, is that I already use QDialog elsewhe

Re: [PyQt] Problem with a simple QDialog

2007-11-28 Thread Horst Herb
On Wednesday 28 November 2007, Alexandre Badez wrote: > wChapterSelection = QtGui.QDialog() > wChapterSelection.exec_() > > And I've got also a bus error. > > What really suprise me, is that I already use QDialog elsewhere, and I > didn't had any problem with this. app = QApplication(sys.argv) wCh

[PyQt] Problem with a simple QDialog

2007-11-28 Thread Alexandre Badez
Hy, I use to create a simple QDialog widget, that I create myself (I called it WindowChapterSelectionDialog). I create it like that: wChapterSelection = WindowChapterSelectionDialog.WindowChapterSelectionDialog() # <- I always import the module, not the class directly [..code that as nothing to d