[PyQt] Using rich text in QTextBrowser

2009-12-27 Thread Star Glider
Hi, I'm new to PyQt. I'm converting an application to Python/PyQt, one of the tasks is to retrive data from a database and show it, no problem, the problem is that the one of the fields as text in rich text format, and it needs to be display without the rtf markup, of course. Is there any way to

Re: [PyQt] Using rich text in QTextBrowser

2009-12-27 Thread Ville M. Vainio
On Sun, Dec 27, 2009 at 12:44 PM, Star Glider starglider@gmail.com wrote: Is there any way to convert rtf to HTML? Just google rtf to html, plenty of hits. -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing list

Re: [PyQt] QtGui.QApplication() never returns

2009-12-27 Thread Hans-Peter Jansen
On Wednesday 23 December 2009, 15:52:59 Joe Turpin wrote: On Mon, Dec 14, 2009 at 10:14 AM, Joe Turpin joe.tur...@gmail.com wrote: On Mon, Dec 14, 2009 at 9:15 AM, David Boddie dbod...@trolltech.com wrote: On Sat Dec 12 21:47:16 GMT 2009, Joe Turpin wrote: I have a very basic python script

[PyQt] Setting the space a QGraphicPixmapItem occupies in a scene

2009-12-27 Thread TheLonelyStar
Hi, I want to setup a QGraphicsPixmapItem to occupy the space (-1,-1) - (1,1). I find a function setOffset with which (I guess) can set the (-1,-1). But I can I tell the pixmap to expand to (1,1)? Thanks! -- View this message in context:

[PyQt] Problem with latest snapshot

2009-12-27 Thread detlev
Hi, latest snapshot seems to have a little problem with QHostAddress. The following entered in a Python shell QHostAddress(QHostAddress.Any).toString() results in PyQt4.QtCore.QString(u'0.0.0.4') However, the address should be '0.0.0.0'. Any idea what could be wrong? Regards, Detlev --

[PyQt] Another problem with latest Pyqt snapshot

2009-12-27 Thread detlev
Hi, the following entered in a Python shell QColor(Qt.white).name() results in u'#03'. The correct result should be u'#ff'. What is wrong here? Regards, Detlev -- Detlev Offenbach det...@die-offenbachs.de ___ PyQt mailing list

[PyQt] sip.pyd crash due to class order of inheritance

2009-12-27 Thread Demetrius Cassidy
import sys from PyQt4 import QtCore, QtGui app = QtGui.QApplication(sys.argv) class Ui_Frame(object): def setupUi(self, Frame): Frame.setObjectName(Frame) Frame.resize(200, 300) Frame.setMinimumSize(QtCore.QSize(200, 200)) class FrameWnd(Ui_Frame, QtGui.QFrame):

Re: [PyQt] sip.pyd crash due to class order of inheritance

2009-12-27 Thread Phil Thompson
On Sun, 27 Dec 2009 12:12:09 -0800 (PST), Demetrius Cassidy dcassid...@mass.rr.com wrote: import sys from PyQt4 import QtCore, QtGui app = QtGui.QApplication(sys.argv) class Ui_Frame(object): def setupUi(self, Frame): Frame.setObjectName(Frame) Frame.resize(200, 300)

Re: [PyQt] Problem with latest snapshot

2009-12-27 Thread Phil Thompson
On Sun, 27 Dec 2009 19:53:02 +0100, detlev det...@die-offenbachs.de wrote: Hi, latest snapshot seems to have a little problem with QHostAddress. The following entered in a Python shell QHostAddress(QHostAddress.Any).toString() results in PyQt4.QtCore.QString(u'0.0.0.4') However,

[PyQt] Small patch to compile sip with stackless 2.6.4

2009-12-27 Thread Demetrius Cassidy
+++ b/c:\\sip-4.10-snapshot-20091223\\siplib\\siplib.c @@ -617,11 +617,15 @@ PyMODINIT_FUNC SIP_MODULE_ENTRY(void) if (sip_api_register_py_type((PyTypeObject *)sipSimpleWrapper_Type) 0) SIP_FATAL(sip: Failed to register sip.simplewrapper type); +#if defined(STACKLESS) +

Re: [PyQt] sip.pyd crash due to class order of inheritance

2009-12-27 Thread Demetrius Cassidy
Phil Thompson-5 wrote: On Sun, 27 Dec 2009 12:12:09 -0800 (PST), Demetrius Cassidy dcassid...@mass.rr.com wrote: import sys from PyQt4 import QtCore, QtGui app = QtGui.QApplication(sys.argv) class Ui_Frame(object): def setupUi(self, Frame): Frame.setObjectName(Frame)

[PyQt] wrapping text in the checkbox text label. Possible?

2009-12-27 Thread reckoner
Hi, I am new to PyQt and I have an existing Tkinter GUI that uses a checkbutton with a label that can wrap multiple lines. I've been looking at http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qcheckbox.html But it doesn't have a wraplength option for the text label, as