Re: [PyQt] New Feature - Keyword Arguments for Properties and Signals

2009-09-09 Thread Phil Thompson
On Thu, 10 Sep 2009 01:25:12 +0300, "Ville M. Vainio" wrote: > Accidentally omitted list in CC, resending... > > > On Mon, Sep 7, 2009 at 10:57 AM, Phil Thompson > wrote: > >> For example, the following calls... >> >>    act = QAction("Save", parent) >>    act.setShortcut(QKeySequence.Save) >>

[PyQt] QSqlRelationalDelegate and sizeHint

2009-09-09 Thread Scott Frankel
Hello, What's the best way to explicitly set row and column sizes for a QTableView? I'm trying to use an QSqlRelationalDelegate, but print statements show that its sizeHint() method is never called. The paint() method is. If I set the editable model methods, I lose the FK comboBoxes.

[PyQt] PyQt4 crashing on inspect.ismodule(QSignalMapper)

2009-09-09 Thread Fabio Zadrozny
The console session below shows the problem. [D:\bin\4nt-7.01.360]d:\bin\Python261\python.exe Python 2.6.1 (r261:67517, Dec 4 2008, 16:51:00) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> from PyQt4.QtCore import * >>> QSignalMappe

[PyQt] New Feature - Keyword Arguments for Properties and Signals

2009-09-09 Thread Ville M. Vainio
Accidentally omitted list in CC, resending... On Mon, Sep 7, 2009 at 10:57 AM, Phil Thompson wrote: > For example, the following calls... > >    act = QAction("Save", parent) >    act.setShortcut(QKeySequence.Save) >    act.setStatusTip("Save the document") >    act.triggered.connect(self.save)

Re: [PyQt] Unicode characters in QTreeView

2009-09-09 Thread Doogster
> What kind of datatype does python-mpd extract? Is it 8-bit str or > unicode? If it's 8-bit str, you need to decode it properly before > passing it to Qt. Your advice worked. Returning QtCore.QVariant(var.decode("utf-8")) in the model for the display role instead of just QtCore.QVariant(var) did

[PyQt] Why is QStackedLayout so tall?

2009-09-09 Thread Jugdish
I'd like to use QStackedLayout to put some QLineEdit widgets in, with only one visible at a time. For some reason, whenever I put a widget inside a QStackedLayout, it displays much taller than it normally would. Below is a small example to demonstrate this -- compare the height of the QLineEdit out

[PyQt] dbus for win32

2009-09-09 Thread Jens Nie
Hi all. I would like to use some dbus based functionality another application offers within PyQt4 on windows and just realized that all the Qt DBus stuff does not seem to be wrapped, so that the native dbus libraries need to be used. Can anyone point me to a drop in package for dbus which I can

Re: [PyQt] PyQt compile failure

2009-09-09 Thread aalto
Phil Thompson-5 wrote: > > On Sun, 6 Sep 2009 11:29:57 -0700, "Glenn Tarbox, PhD" > wrote: >> On Sun, Sep 6, 2009 at 12:42 AM, Phil Thompson >> wrote: >> >>> On Sat, 5 Sep 2009 19:31:14 -0700, "Glenn Tarbox, PhD" > >>> wrote: >>> > I'm trying to compile the latest snapshot of PyQt and got the

Re: [PyQt] Unicode characters in QTreeView

2009-09-09 Thread Giovanni Bajo
On Wed, 2009-09-09 at 00:50 -0700, Doogster wrote: > Japanese characters aren't displaying properly in my QTreeView. > > What should I do? > > Here's a screenshot (the bottom line should be in Japanese). > http://img.photobucket.com/albums/v298/dugan-c/unicode-error.jpg > > This is an MPD client

[PyQt] QSqlTableModel/QTableView not updating fields

2009-09-09 Thread hkx
The following code allows me to click on each field and change it, however when clicking on another row, a) the changes are not submitted as expected, the screen just refreshes and the fields are cleared b) need several clicks on another row before changes are 'submitted' and screen refreshed

[PyQt] Unicode characters in QTreeView

2009-09-09 Thread Doogster
Japanese characters aren't displaying properly in my QTreeView. What should I do? Here's a screenshot (the bottom line should be in Japanese). http://img.photobucket.com/albums/v298/dugan-c/unicode-error.jpg This is an MPD client and the rows are id3 tags. The line in question does display prope