[PyQt] question about the QThread event loop

2010-02-11 Thread Doh-Hyoung Kim
Hi, I have a question about the QThread event loop. In order to test the behavior of QThread event loop, I tested the following code. Each of thread A, B, C has its own event loop. Thread B sends a signal to thread A, and the thread C sends a signal to the thread B, after the event loops start. =

[PyQt] PyQt4 Python File Object to QFile

2010-02-11 Thread Russell Valentine
I wonder if anyone ever bridged the gap between QFile and the Python File Object? It could be handy sometimes to go between the two. The only way that comes to my head right now is to reimplment QFile or QIODevice, so it would use a python file object for all it's io. That seems a bit messy so

[PyQt] masks and antialiasing

2010-02-11 Thread Victor Noagbodji
hi all, isn't it possible to have antialiasing when using a mask? consider the following lines which creates a rounded rect mask. try: bmp = QPixmap(param.sizeHint()) except AttributeError: bmp = QPixmap(param) p = QPainter(bmp) p.setPen(Qt.blue) p.setBrush(QBr

Re: [PyQt] rounded corners on a qlabel used as a top level window

2010-02-11 Thread Victor Noagbodji
thanks Henning, i thought the example was specific to splashscreen, but it worked. now i need to get the exact shape. -- paul victor noagbodji ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] rounded corners on a qlabel used as a top level window

2010-02-11 Thread Henning Schröder
On Thu, Feb 11, 2010 at 10:42 PM, Victor Noagbodji wrote: > > hello all, > > if you visit http://jsgrowl.com/, you will see nice modal and > semi-modal windows. the idea is to reproduce them using pyqt. i > started with a qlabel. used html for the content. set the window flag > to Qt.SplashScreen.

[PyQt] rounded corners on a qlabel used as a top level window

2010-02-11 Thread Victor Noagbodji
hello all, if you visit http://jsgrowl.com/, you will see nice modal and semi-modal windows. the idea is to reproduce them using pyqt. i started with a qlabel. used html for the content. set the window flag to Qt.SplashScreen. and applied my stylesheet. but the squared corner is not going way. t

Re: [PyQt] Help on "self"

2010-02-11 Thread Josh
David Arnold wrote: Hi, I'm not new to Python, but the use of "self" in classes has always been confusing. I working thru Rapid Gui Programming, and I have this code from Chatper 5: import sys from PyQt4.QtGui import * class PenPropertiesDlg(QDialog): def __init__(self, parent=None):

[PyQt] Help on "self"

2010-02-11 Thread David Arnold
Hi, I'm not new to Python, but the use of "self" in classes has always been confusing. I working thru Rapid Gui Programming, and I have this code from Chatper 5: import sys from PyQt4.QtGui import * class PenPropertiesDlg(QDialog): def __init__(self, parent=None): super(PenProperti

Re: [PyQt] Compilation at MacOS X

2010-02-11 Thread William Kyngesburye
Compiling PyQt is mostly straightforward. If you are getting to the stage of writing your own program, you've figured that out. If you are using the system Python, it's not easy (if at all) to build something that will work on 10.5. That's because Apple builds their Python with a deployment t

[PyQt] QtSql: Need help to find what's wrong

2010-02-11 Thread Anne-Laure Terrettaz-Zufferey
Hello, I am creating a database using PyQt and QtSql module. My problem is that no new data is recorded, and impossible to delete something.Slots "toLast", "toPervious", "toNext" , "toFisrt" doen't work. My database has only one row to test the recording of new data. There is a part of my code (

[PyQt] Compilation at MacOS X

2010-02-11 Thread Michael Held
Hi, is there a general procedure to compile PyQt 4.7 for MacOS X? I am facing problems when compiling on MacOS 10.6 and want to run my PyQt app on MacOS 10.5 Thanks for your help! Michael ___ PyQt mailing listPyQt@riverbankcomputing.com http://www

[PyQt] Palette on QInputDialog

2010-02-11 Thread Sebastian Elsner
Hello, seems like palettes are not working on QInputDialogs. Please see the script attached. Setting a palette on an QErrorMessage works fine, but not on a InputDialog. Using PyQt 4.6.2 on Windows XP 64bit SP2 with python 2.6.4 32bit. from PyQt4 import QtCore from PyQt4 import QtGui cla

[PyQt] PyKDE and Akonadi

2010-02-11 Thread Maurizio Pozzobon
Hi all, I'm Maurizio from Italy and I'm new here. I'm starting to work on a project which uses pykde to connect to akonadi, but I can't get it to work. My program is this: from PyKDE4.akonadi import * Akonadi.Control.start() - but when I'm trying to launch it it just seg faults. What I'm I