Re: [PyQt] Re: pyqtSignature question

2008-05-05 Thread Phil Thompson
On Tuesday 06 May 2008, Catriona Johnson wrote: > Hi Phil > I was just playing with the examples in Mark Summerfield's book on > @pyqtSignature and was wondering how signals/slots other than those > for buttons etc might be written. I was having trouble with this > QTableView example. As I said, I

Re: [PyQt] Screenshots in linux

2008-05-05 Thread Jean-Baptiste BUTET
Hi :) > > > Does anyone have any idea how I might select a region of my desktop > and > > then take a screen grab of it? > > In KDE you can use KSnapshot. There's also xgrab (segfaults on my system) > and > Gnome probably has something. For a console you can just cut and paste. > in order to ta

Re: [PyQt] Screenshots in linux

2008-05-05 Thread Jim Bublitz
On Monday 05 May 2008 13:22, Jake Richards wrote: > Hello: > Does anyone have any idea how I might select a region of my desktop and > then take a screen grab of it? The screenshot example shows me how to grab > the snapshot, but the hard part (at least for me) is changing my mouse > cursor to s

[PyQt] Re: pyqtSignature question

2008-05-05 Thread Catriona Johnson
Hi Phil I was just playing with the examples in Mark Summerfield's book on @pyqtSignature and was wondering how signals/slots other than those for buttons etc might be written. I was having trouble with this QTableView example. Thanks > > Message: 4 > Date: Thu, 1 May 2008 13:08:49 +0100 > From:

Re: [PyQt] treeview model/view or item-based?

2008-05-05 Thread Ulrich
That looks like a good idea and should be easy to implement. Regards, Ulrich Doug Bell wrote: You don't actually have to create all items at once with the tree-widget item-based approach. You can just create the visible items (that have open parents). Then create a method that loads children o

Re: [PyQt] treeview model/view or item-based?

2008-05-05 Thread Doug Bell
Ulrich wrote: > The tree has 3 to 4 levels. Let's say the first level contains 30 items, > the second level 2000 and the third contains 7000 "folders". The last > level contains 50,000 items. > > I thought it would be a good idea (?) to store the data in a database > like SQLite, because this

[PyQt] Screenshots in linux

2008-05-05 Thread Jake Richards
Hello: Does anyone have any idea how I might select a region of my desktop and then take a screen grab of it? The screenshot example shows me how to grab the snapshot, but the hard part (at least for me) is changing my mouse cursor to some crosshairs and drawing a region on the desktop that I'd

Re: [PyQt] arbitrary instance attributes on qt widgets?

2008-05-05 Thread Erick Tryzelaar
On Mon, May 5, 2008 at 12:17 PM, Wilbert Berendsen <[EMAIL PROTECTED]> wrote: > Hi, Is this legal? > > q = QListBoxText(listbox) > q.bla = 3 > > this sets a new attribute 'bla' to 3. I could use this to have the > listboxitem > carry some other data. Yes it is legal. > Or should I subclass

[PyQt] treeview model/view or item-based?

2008-05-05 Thread Ulrich
Hi, I have tree-structured data, something like a filesystem where you have folders and files. FolderA +-FolderA1 +-FolderA2 --+--FileA2.1 +-FolderA3 FolderB FolderC I think you know what I mean ;-) The tree has 3 to 4 levels. Let's say the first level contains 30 items, the

[PyQt] arbitrary instance attributes on qt widgets?

2008-05-05 Thread Wilbert Berendsen
Hi, Is this legal? q = QListBoxText(listbox) q.bla = 3 this sets a new attribute 'bla' to 3. I could use this to have the listboxitem carry some other data. Or should I subclass QListBoxItem to add such an attribute? with best regards, Wilbert Berendsen -- http://www.wilbertberendsen.nl/ "Yo