[pygtk] Resizable, decoration-less window
manu3d at gmail.com
Wed Apr 29 04:22:39 WST 2009
(disclosure: I'm a newbie!)
I finally managed to go thoroughly through most of pygtk's tutorial. Very
nice. Unsormountable incompatibilities with other packages notwithstanding,
I'm looking forward to use it. It looks very consistent and I really like
its support of accessibility and different locales.
Some dots I need help to connect:
1) At this stage I can't quite see how to use themes to completely change
the look of a widget. That is, I can see how to change colors, fonts, etc,
but if I want windows with my own image-based decorations the only
roundabout way seems to be to create a 3x3 grid layout and use the 8
external tiles to place arbitrary images for borders and corners. Sure,
those might be set via themes, but is that the way to proceed?
2) If that's the case, is there a way to remove or hide the decorations from
a window but mantain -at least- the mouse-based resizing functionality? Or
do I really have to replicate the resizing functionality with events
triggered by mouse clicks/drags on each border/corner tile? Alternatively,
would it be possible to cover borders and titlebar with my own visual
elements "overflowing" their own container, but allow the resizing
functionality to come through?
3) Is there a nice recipe/example somewhere on how to do proper
alpha-channel-based compositing of widgets? I.e., something that would allow
a chat window's background to be semi-transparent while the text on it and
the other graphical elements such as borders and titlebar remains fully
opaque or have different transparencies?
4) I've seen examples for left-to-right and right-to-left text. Excellent.
But what about languages such as chinese that are read top-to-bottom AND the
columns are arranged right-to-left? As I didn't see anything specific the
only idea that springs to mind is to rotate the whole TextView object by 90
degree clockwise. But is that even possible?
5) Has anybody done some kind of XUL
<https://developer.mozilla.org/en/XUL>--> GTK builder? A builder that
takes a XUL file and generates the
appropriate widget? XUL seems to be a very nice and well thought
specification: with some careful coding it should be possible to get (py)gtk
to take it in input and to generate it as output, isn't it?
Sorry for the many questions! I just wanted to write three but I ended up
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pygtk