Re: [PyKDE] How do I delete a QCanvasItem?
I think I have figured out how to do it. MyCanvasItem.setCanvas(None) It gets rid of it, and seems to free any memory it was using. Any comments? Moray ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
[PyKDE] Deleting items from Canvas
Hi, I have a program that puts items onto a canvas, keeps a reference to it, and deletes the reference when I want to remove the item from the canvas. What I want to know is... A) Is this all I need to do? B) If not, what is the reccommended way of removing items from a canvas? The reason I ask, is that I run PyQT on SGI, Intel, and PowerPC, the results from the PowerPC version are very different to the Intel/SGI, I cannot get the items to remove themselves from the canvas on PPC, the code I use is *exactly* the same. I need to know if it's the PowerPC with the problem or otherwise. Thanks Moray ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
[PyKDE] Transparent rectangles on canvas
Hi, Is it possible to draw a transparent rectangle on a Qt Canvas, I appreciate XRENDER would be required. The Qt docs mention something about RGBA, which I understand is normal RGB with an alpha channel. I cannot figure out what I am supposed to do to use the alpha channel though, any tips? Thanks Moray ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
[PyKDE] Renaming listviewitems
Hi, I am having difficulty renaming listview items, when I triple click it, the edit box pops up and I can edit it, but how do I get the new name that I have typed in? I have a okRename function in my class, which is getting run, but doesn't seem to complete the edit. The edit box remains until I cancel it. Thanks Moray Taylor ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
[PyKDE] ListView background
A while ago, I asked on this group wether it was possible to set a background pixmap in Qt Listview, the answer was no. I have no learned that it is (maybe there is a version issue here.). Just so that anyone else wants to do it, the method you want is... SetpaletteBackgroundPixmap(QPixmap) Tada! Moray ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
[PyKDE] PyQt of PPC woes...Continued.
The story so far... Import qt Import sys From qt import * A = QApplication(sys.argv) D = A.desktop() W = D.width() ---Segmentation fault--- This happens with all of the PyQt examples. This was with Yellow Dog Linux 2.2. I have since tried it with Mandrake 8.2 on my Powerbook G4 Results are exactly the same. Tried with binaries, and from source, practicaly every version of 3.x. Used different versions of gcc and python, both from source and binary. Tried everything I can think of. I really don't want to get rid of my Powerbook, but PyQt is the only reason I own a computer (seriously). If anyone has any advice, experienve, reassuring words, I really want to hear from you. Thanks Moray ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
[PyKDE] Newbie seeks QT Canvas example
Hi, I am looking for a short, simple example of displaying an image (PNG, JPEG or whatever) on a canvas using PyQT and Python. I can use the SetBackgroundPixmap, but I cannot figure out how to place a picture at an XY coordinate. Thanks for any help Moray ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde