Re: [PyQt] vertical alignment of richtext in a table view

2010-09-06 Thread Mark Summerfield
On Tue, 7 Sep 2010 01:37:45 +0200 Wolfgang Rohdewald wrote: > On Montag 06 September 2010, Mark Summerfield wrote: > > I'm tending to use a differnt approach for rich text delegates > > nowadays. Instead of using a QTextDocument, I store a > > class-level QLabel, something like this: > > your sol

Re: [PyQt] vertical alignment of richtext in a table view

2010-09-06 Thread Wolfgang Rohdewald
On Montag 06 September 2010, Mark Summerfield wrote: > I'm tending to use a differnt approach for rich text delegates > nowadays. Instead of using a QTextDocument, I store a > class-level QLabel, something like this: your solution certainly looks cleaner than my temporary fix (document.setDocument

Re: [PyQt] deadlock when using new style signal / slots

2010-09-06 Thread Hans-Peter Jansen
On Tuesday 07 September 2010, 00:01:55 Erik Janssens wrote: > Hello Pete, > > it might indeed be that the deadlock is not directly > related to the new style signal slot, since the deadlock > might become visible due to a slight timing difference > cause by eg switching to new style signal slots. >

Re: [PyQt] deadlock when using new style signal / slots

2010-09-06 Thread Erik Janssens
Hello Pete, it might indeed be that the deadlock is not directly related to the new style signal slot, since the deadlock might become visible due to a slight timing difference cause by eg switching to new style signal slots. however I wonder wether I'm doing anything wrong by connecting and emi

[PyQt] List widgets in a widget

2010-09-06 Thread starglider develop
Hi, I have a TabWidget dinamicly populated with widgtes(QLabel and QLineEdit), and I need to know all the widgets by name in a way I can get their values. This is for a database application, and I want to get the name of the widgets that are the name of the fields in the database. the widget if po

Re: [PyQt] Composite widgets?

2010-09-06 Thread fpp
On Mon, Sep 6, 2010 at 10:15 PM, Hans-Peter Jansen wrote: > > Start browsing the Qt documentation. Yes, it's a bit arkward to ignore the > C++ decoration, but after getting used to, you start to enjoy to be able to > ignore all the C++ related complexities and regret all those poor C++ > hackers:

Re: [PyQt] Composite widgets?

2010-09-06 Thread Hans-Peter Jansen
On Monday 06 September 2010, 03:13:29 Peter Milliken wrote: > Prior to embarking on learning PyQt, I wrote my GUI applications using > Tkinter and Pmw. The Pmw widget set is quite nice and provides a library > of composite classes using the Tkinter widgets. > > My question is: > > Is there any (sim

[PyQt] ANN: PyQt v4.7.6 and SIP v4.11.1 Released

2010-09-06 Thread Phil Thompson
PyQt v4.7.6 and SIP v4.11.1 have been released and can be downloaded from the usual places. Both are minor bug fix releases. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] QDockwidget advice needed

2010-09-06 Thread Hans-Peter Jansen
Dear Al, On Saturday 21 August 2010, 03:42:22 Algis Kabaila wrote: > > Not exactly, but who cares. AFAICS, all you need is the Signals and > > Slots chapter. Unfortunately, it misses the new style signals (because > > Phil invented them later), but you should get hold of them from the > > beginnin

Re: [PyQt] vertical alignment of richtext in a table view

2010-09-06 Thread Mark Summerfield
Hi Wolfgang, On Sun, 5 Sep 2010 10:55:04 +0200 Wolfgang Rohdewald wrote: > Hi, > > in Mark Summerfields book "Rapid GUI programming with Python > and QT", there is an example on page 485 with a table column > having a delegate that displays richtext. In the book, > the text in this column has a

Re: [PyQt] PyQt4 4.7.5 configure fails under Python7 and sip 4.11

2010-09-06 Thread Demetrius Cassidy
Ah yes spaces. The bane of all evil - I forgot about that, thanks. On 9/5/2010 10:05 PM, Robin M Baur wrote: On Sun, Sep 5, 2010 at 19:17, Demetrius Cassidy wrote: Using PyQt-win-gpl-4.7.5 with sip 4.11 under Python7, configure fails with a syntax error executing sip: C:\Documents and Settin

Re: [PyQt] Composite widgets?

2010-09-06 Thread Dan Kripac
On having a quick look at pmw, I can definitely say that a lot of that functionality is available as PyQt native widgets (plus much much more) and the few exceptions would be able to be made with code not much more complex than the example I gave. It may seem overwhelming at first, but it would be

Re: [PyQt] Composite widgets?

2010-09-06 Thread Peter Milliken
Thanks Dan, but I was really looking for something much more elaborate :-) The structure of the Pmw library/widgets is difficult to describe, but I found it an amazingly powerful library that allow some pretty nice (and easy) extensions once you understood how it worked. Whilst I have never delved

Re: [PyQt] pyqt signals

2010-09-06 Thread Phil Thompson
On Mon, 6 Sep 2010 10:44:21 +0200 (CEST), "lucabe...@libero.it" wrote: > Hello i have write this but i'm not able to connect the emit of the > class Socket to the Form class, can you help me? > > class Socket(QtNetwork.QTcpSocket): > def __init__(self, parent=None): > super(Socket, se

Re: [PyQt] QFileDialog crash with Gnome + "Desktop Settings (Default)" + QFileDialog.DontUseNativeDialog

2010-09-06 Thread Hans-Peter Jansen
On Sunday 29 August 2010, 15:40:48 PyCoder PyCoder wrote: > Hi > > I have a lil problem with QFileDialog and i think its a bug but im not > sure... > > > The code is realy simple: > > contSave = QtGui.QFileDialog(self) > contSave.setFileMode(QtGui.QFileDialog.AnyFile) > cont

[PyQt] pyqt signals

2010-09-06 Thread lucabe...@libero.it
Hello i have write this but i'm not able to connect the emit of the class Socket to the Form class, can you help me? class Socket(QtNetwork.QTcpSocket): def __init__(self, parent=None): super(Socket, self).__init__(parent) self.connect(self, QtCore.SIGNAL("readyRead()"), self.l

Re: [PyQt] deadlock when using new style signal / slots

2010-09-06 Thread Hans-Peter Jansen
Dear Erik, On Friday 27 August 2010, 21:56:14 Erik Janssens wrote: > Hi, > > Another issue popped up when porting our code to > new style signal slots. > > it appears the deadlock occurs when one thread is > emitting using a pyqtSignal object, while another > thread is connecting the same pyqtSign

Re: [PyQt] Composite widgets?

2010-09-06 Thread Dan Kripac
Hi Peter, I find that a lot of my use with PyQt is composing compound widget subclasses that combine other widgets in a particular arrangement and behaviour that I need. You can easily design the way they behave in terms of signals emitted, and you can capture mouse and keyboard events simply by o