[PyQt] pyuic4 generates invalid method call QFormLayout.addLayout()

2009-03-17 Thread Сыр Российский
Test form: ui version=4.0 classForm/class widget class=QWidget name=Form property name=geometry rect x0/x y0/y width200/width height100/height /rect /property property name=windowTitle stringForm/string /property layout class=QFormLayout name=formLayout

[PyQt] Sorting column with QComboBox cellwidgets

2009-03-17 Thread Gert-Jan
EDIT: my apologies if this thread is double-posted. This is a repost, as the original one appears to be pending for a couple of days now. ORIGINAL MESSAGE: Hey there, I'm relatively new to Qt4. I have constructed a QTableWidget and filled one of its columns with a QComboBox using

[PyQt] mouse pressed event with qt 4.5

2009-03-17 Thread Thomas Espenhain
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I have a strange behavior with the mouse pressed event with pyqt4 with qt-4.5 Following situation: - - a stacked widget with 2 pages - - every page has a button placed at same position - - button1 on page 1 makes page 2 active - - button2 on

Re: [PyQt] Eric4 buggy

2009-03-17 Thread Darryl Wallace
Perhaps you should direct your question to the eric mailing list. I've been using Eric4 for over year with no problems. Mario Daniel Carugno wrote: Hi, i'm trying eric4 and seems too buggy. Now i configure options, but every time i start Eric, configuration is lost and i get the dialog:

Re: [PyQt] Qt trying to load .uic instead of .ui

2009-03-17 Thread Till Gerken
On Mon, Mar 16, 2009 at 7:05 PM, Arthur Pemberton pem...@gmail.com wrote: when I try to do a uic.loadUi, th euic module tries to load a .ui file instead a .uic file. According to the documentation, uic.loadUi() is supposed to load the .ui file. Is that incorrect?

[PyQt] Why has Dock Widget has lost the ability to dock on bottom/top?

2009-03-17 Thread Marc Nations
Hi, I can't figure out why the dock widget won't dock on the bottom or top anymore. I have checked the Allowed Areas, and according to those settings it should be able to. This is something that has worked in the past. Also, I can't add a new dock widget to the bottom or top in the Designer

Re: [PyQt] Qt trying to load .uic instead of .ui

2009-03-17 Thread Arthur Pemberton
On Tue, Mar 17, 2009 at 7:56 AM, Till Gerken till.ger...@gmail.com wrote: On Mon, Mar 16, 2009 at 7:05 PM, Arthur Pemberton pem...@gmail.com wrote: when I try to do a uic.loadUi, th euic module tries to load a .ui file instead a .uic file. According to the documentation, uic.loadUi() is

[PyQt] Best way to pass commands between threads?

2009-03-17 Thread Marc Nations
Hi, In the past with other gui toolkits I've set up a periodic call function that pulls control back from the child threads and take care of all the gui business that gets originated in the child threads. Either I've stored all the commands in a queue to be processed when periodic check is

Re: [PyQt] Best way to pass commands between threads?

2009-03-17 Thread Marc Nations
On Tue, Mar 17, 2009 at 11:53 AM, Phil Thompson p...@riverbankcomputing.com wrote: On Tue, 17 Mar 2009 11:32:48 -0500, Marc Nations mnations.li...@gmail.com wrote: Hi, In the past with other gui toolkits I've set up a periodic call function that pulls control back from the child

Re: [PyQt] Best way to pass commands between threads?

2009-03-17 Thread Giovanni Bajo
On 3/17/2009 8:22 PM, Marc Nations wrote: On Tue, Mar 17, 2009 at 11:53 AM, Phil Thompson p...@riverbankcomputing.com mailto:p...@riverbankcomputing.com wrote: On Tue, 17 Mar 2009 11:32:48 -0500, Marc Nations mnations.li...@gmail.com mailto:mnations.li...@gmail.com wrote:

Re: [PyQt] mouse pressed event with qt 4.5

2009-03-17 Thread Andreas Pakulat
On 17.03.09 12:43:28, Thomas Espenhain wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I have a strange behavior with the mouse pressed event with pyqt4 with qt-4.5 Following situation: - - a stacked widget with 2 pages - - every page has a button placed at same position - -

Re: [PyQt] mouse pressed event with qt 4.5

2009-03-17 Thread Thomas Espenhain
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Andreas, thanks for your answer and sorry for the missing example .. here it comes: import sys from PyQt4 import QtCore, QtGui app = QtGui.QApplication(sys.argv) class Example(QtGui.QWidget): def __init__(self, parent=None):

[PyQt] How can I make a column of self expanding QTextEdits?

2009-03-17 Thread Jesse Aldridge
I'm trying to make a tool for finding and replacing text across several files. I want two columns, one for before and one for after. In the left column, I want to display the original contents of the files, one QTextEdit per file. In the right column, I want the same thing, only I want to show

Re: [PyQt] postgresql

2009-03-17 Thread Damien Elmes
I used wxwidgets for a while for my app (http://ichi2.net/anki) which runs on Linux, Win32 and Mac. It was really painful. Compared to pyqt, there were many platform specific bugs I had to work around, and at the time wxwidgets' rich text widget on Mac did not even support text centering. I moved

[PyQt] dragging a QGraphicsSvgItem

2009-03-17 Thread Wolfgang Rohdewald
While dragging it, I want to see the whole image of the item move. What works is something like this: (code goes into class Tile(QGraphicsSvgItem), def mousePressEvent) ... pmapSize = self.tileset.tileSize.toSize() if self.pixmap is None or self.pixmap.size()