[pygtk] Custom Widgets (Movable Containers)

Wildemar Wildenburger wildemar at freakmail.de
Fri Jan 25 02:14:48 WST 2008


Hello :)

I'm trying to create a note-taking application, very much "inspired" by =

the KDE-app Basket (BasKet, I don't know). I've made a gritty little =

video of Basket in use, if you don't know it: =

<URL:www.student.uni-oldenburg.de/andreas.waldenburger/Basket.mpeg> =

(it's DivX, about 40 seconds and roughly 1MB).
I have also attached a screenshot and the code of my experimental version.

I have several questions now:

How would I draw the boxes efficiently? When moving the Boxes around, =

the different borders will unhinge a little (so you can see cracks =

between them) and I don't want that.
I have considered drawing the border as a whole and then overlaying the =

left and right sides with eventboxes to add the current functionality. =

Is that preferable? What /is/ preferable?
How can I shape these boxes efficiently? I know that this is answered in =

the FAQ; I would like to know how to reuse what I have already drawn, as =

in: "Make this thing transparent, *except* for where I've drawn."
Any other comments on my code are of course extremely welcome as well.


regards,
/W
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot-minimal.py.png
Type: image/png
Size: 19903 bytes
Desc: not available
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20080124/36d3b3a6/S=
creenshot-minimal.py-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: minimal.py
Type: text/x-python
Size: 7129 bytes
Desc: not available
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20080124/36d3b3a6/m=
inimal-0001.py


More information about the pygtk mailing list