[PyKDE] Is there a clicked signal for a QLabel ?

2007-01-31 Thread simon stockes
Hi, I have a gridlayout of QLabels. What it the signal to use in this context to change, for exemple, the text from the QLabel I have **clicked** ? I did not found **clicked()** signal for QGridlayout or QLabel. Simon. ___ PyKDE mailing list

Re: [PyKDE] Is there a clicked signal for a QLabel ?

2007-01-31 Thread Krzysztof Lichota
simon stockes napisaƂ(a): Hi, I have a gridlayout of QLabels. What it the signal to use in this context to change, for exemple, the text from the QLabel I have **clicked** ? I did not found **clicked()** signal for QGridlayout or QLabel. AFAIK you have to do it yourself. Here is how I do

Re: [PyKDE] Is there a clicked signal for a QLabel ?

2007-01-31 Thread Andreas Pakulat
On 31.01.07 11:06:08, simon stockes wrote: I have a gridlayout of QLabels. What it the signal to use in this context to change, for exemple, the text from the QLabel I have **clicked** ? I did not found **clicked()** signal for QGridlayout or QLabel. There is no signal for that and IMHO a

Re: [PyKDE] Is there a clicked signal for a QLabel ?

2007-01-31 Thread Giovanni Bajo
On 1/31/2007 11:06 AM, simon stockes wrote: I have a gridlayout of QLabels. What it the signal to use in this context to change, for exemple, the text from the QLabel I have **clicked** ? *All* widgets receive *events* from mouse clicks, which can be handled by subclassing and overriding

Re: [PyKDE] Is there a clicked signal for a QLabel ?

2007-01-31 Thread simon stockes
Thanks everybody for yours answers. It is clearer and I am in fact agree with you and trolltech. I suppose that to draw a button is not much more cpu time consuming against a label ? Simon 2007/1/31, Giovanni Bajo [EMAIL PROTECTED]: On 1/31/2007 11:06 AM, Simon stokes wrote: I have a

Re: [PyKDE] Is there a clicked signal for a QLabel ?

2007-01-31 Thread Andreas Pakulat
On 31.01.07 15:04:49, simon stockes wrote: Thanks everybody for yours answers. It is clearer and I am in fact agree with you and trolltech. I suppose that to draw a button is not much more cpu time consuming against a label ? No, well in theory it needs more time because a qlabel only

[PyKDE] More Model/View QTableView/QTreeView questions

2007-01-31 Thread Kelly Burkhart
I'm continuing to experiment with model/view and have a couple of additional questions for you experts. Please see attached code. 1. Is there a way, either from the tree view or the table view to select arbitrary text from within a cell? I.e. can I select just 'this text' from the middle cell

Re: [PyKDE] Inserting widgets into a QGroupBox

2007-01-31 Thread David Boddie
On Tue Jan 30 22:34:46 MET 2007, Tony Cappellini wrote: I have two QVBoxLayouts on a QDialogue. I want to put the widgets on the left side of the window into one group box, and the widgets on the right into another group box. So, I could draw a tree structure like this: QDialog QHBoxLayout

Re: [PyKDE] DCOP memory leak

2007-01-31 Thread Kovid Goyal
Does this help: from dcopext import DCOPClient, DCOPApp dcop=DCOPClient() dcop.attach() player = DCOPApp (amarok, dcop).player while 1: print player.trackCurrentTimeMs() Kovid. On Wednesday 31 January 2007 12:17:42 Tim De Graeve wrote: Hi, I'm writing a script for Amarok in python that has

[PyKDE] QTableView vs QTableWidget

2007-01-31 Thread Paulino
Hi, I've been playing with QTableWidget and QTableView and haven't decide witch is best suited... It's an invoicing app that I'm working on. The main dialog, will send data to several tables: invoices, invoices lines, products, customers. What is the best approach: The QSqlQueryModel with

Re: [PyKDE] QTableView vs QTableWidget

2007-01-31 Thread Andreas Pakulat
On 01.02.07 01:20:40, Paulino wrote: It's an invoicing app that I'm working on. The main dialog, will send data to several tables: invoices, invoices lines, products, customers. What is the best approach: The QSqlQueryModel with writing flags and QtableView or QtableWidget? What are

Re: [PyKDE] ElementTree in PyQt4 latest with py2exe not working

2007-01-31 Thread Javier Sanz
Hi. I'm having exactly the same problem, with PyQt GPL 4.1.1, Python 2.5 and Qt 4.2.2. I fixed ImportError: No module named elementtree.ElementTree downloading and installing ElementTree, as Rick suggested. Now I'm dealing with the other error you mention (widget-plugins path not valid), but I

Re: [PyKDE] QLayout parent

2007-01-31 Thread Tony Cappellini
Message: 2 Date: 28 Jan 2007 11:30 GMT From: Sibylle Koczian [EMAIL PROTECTED] Subject: Re: [PyKDE] QLayout parent To: PyKDE-Liste pykde@mats.imk.fraunhofer.de Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 I think you've got to replace the calls to addChildLayout by

Re: [PyKDE] Inserting widgets into a QGroupBox

2007-01-31 Thread Tony Cappellini
On Wed, 31 Jan 2007 02:08:11 +0100 David Boddie Wrote Would that sort of represent what you're trying to do? yes Here's a screenshot of what I am working towards, using another (non-python) WYSIWIG IDE. I use it to design the layout I'm trying to construct with pyQT.