[PyQt] Copying to QClipboard

2008-06-19 Thread Jake Richards
Hello: I am having a little trouble with the QClipboard in linux. I seem to be able to read from the clipboard, but am unable to write to it. Using the code below, I get what is currently hilighted and print it out, then try to set the clipboard, but when I try to paste (using middle mouse butt

Re: [PyQt] RE: Can I create more than one instance of a class?

2008-06-19 Thread Chris M
Adonay, Glad to hear you have solved the issue :-D The problem you give of the window disappearing or not appearing at all is because the variable 'other' (or a,b,c) goes out of scope when the _init_ method returns. You need to keep a reference to the window object (which your new code does by us

Re: [PyQt] Modal Dialogs? Basic howto help please.

2008-06-19 Thread Chris M
Sorry Lee, hadn't realised I had sent a personal email, so messages quoted below for the list. Are you wanting the dialog to stay above other windows in your application or above all other windows on your desktop? Regards, Chris 2008/6/19 Lee Jackson > Sorry I should have thought how to term thi

[PyQt] Re: Virtual methods and an extra reference

2008-06-19 Thread Kevin Watters
Sundance ierne.eu.org> writes: > This class behaves like weakref.ref, only for callables. We use a variant of this idea in our app for observable callbacks: class bound_ref(object): def __init__(self, method, cb = None): self.object = weakref_ref(method.im_self, cb) self.fun

[PyQt] RE: Can I create more than one instance of a class?

2008-06-19 Thread [EMAIL PROTECTED]
Finally using your code, the a b c window disappears! I have read a example of SDI window and now it works. If you are interested in, the code is like this. Parent program (main.py) class main(QMainWindow): windowList=[] def __init__(self): QMainWindow.__init__(self) uic.l

[PyQt] bug in Qt 4.3.3...?

2008-06-19 Thread Giacomo Lacava
This is more Qt than PyQt, but I was wondering if anybody is still seeing the bug mentioned at http://trolltech.com/developer/task-tracker/index_html?id=170783&method=entry in Qt 4.3.3 using the sqlite driver, because I am (Windows-GPL official build). It was supposed to be fixed in 4.3.2... If yo

Re: [PyQt] Virtual methods and an extra reference

2008-06-19 Thread Sundance
Kevin Watters wrote: > I'm tracking down a memory leak in my app--and I think it's boiling > down to a virtual method on one of my classes that has an extra > reference, one not coming from any Python object. Hi Kevin, hi Phil, hi all, Okay, Kevin, you MUST be reading my mind because, first thin