I would like to use pygtk to mimic a printed form. I've search for
information, and found some discussion about combining arbitrary line
drawing with text and text boxes, or placing label and text box widgets
over a background image, but I haven't found a solution. Does anyone
have suggestions?
I see that pygtk 2.12 has the bindings for the pango gravity
capabilities, but I can't quite make it do what I want. First off, I
can't find the path to specify PANGO_GRAVITY_SOUTH (or EAST, etc.). A
get_base_gravity returns an enum of type PangoGravity, but how do I
reference it? Next, I want t
On Tue, 2004-03-16 at 01:31, David M. Cook wrote:
> On Mon, Mar 15, 2004 at 10:26:37PM -0600, David G. Mackay wrote:
>
> > Is there any way to implement a treeview (other than deriving a new
> > class from scratch) with allows child nodes to be differently formatted
> > f
Is there any way to implement a treeview (other than deriving a new
class from scratch) with allows child nodes to be differently formatted
from the parent nodes? I would like to use a treeview to view
information from a database with related tables.
Thanks,
Dave
___
On Mon, 2004-02-09 at 06:40, Martin Grimme wrote:
> > Thanks. It complained that the pango object has no SCALE attribute, but
> > plugging in 1024 instead made it work.
>
> pango in PyGTK 2.0.0 does have the attribute. I have tested the code
> before I pasted it here. Maybe it's time to upgrade y
> pango.FontDescription is what you want:
>
> import gtk
> import pango
>
> ...
>
> fd = pango.FontDescription()
> fd.set_family("Serif")
> fd.set_style(pango.STYLE_ITALIC)
> fd.set_weight(pango.WEIGHT_BOLD)
> fd.set_size(12 * pango.SCALE)
>
>
> entry = gtk.Entry()
> entry.modify_font(fd)
>
Is there a set of code snippets showing how to set font characteristics
(size, slant, weight, etc.) under pango? I found the section in the FAQ
describing the markup capabilities, but that doesn't seem like it would
apply to gtk.Entry widgets. I couldn't find anything in the examples
directory th