[pygtk] Getting string with in pixels

2011-07-27 Thread David ROY
Exhuming this old thread with apparently no final answer. I found that one of the issue in the initial code was the call to “modify_font”. I replaced it with a call to “set_font_description” on the layout. This is the working code, that takes markup into account: def get_pango_string_size

Re: [pygtk] Codegen/argtypes: "No ArgType for GValue*" on Linux & Windows

2010-11-04 Thread David ROY
That's great! Man, you rock :-) Thanks -David > Hi, > > Quoting "David ROY" : >> I had to restart with a fresh new install of every GTK stuff but I now >> have it working. > > Great :) > >> One thing, I used to install the "pygtk +

Re: [pygtk] Codegen/argtypes: "No ArgType for GValue*" on Linux & Windows

2010-11-03 Thread David ROY
t find any other way to install glade for Python on Windows than using the "pygtk + glade" distribution. So I had to copy/paste "glade.pyd" from an old install directly in C:\Python26\Lib\site-packages\gtk-2.0\gtk, which is kinda dirty. Met Vriendelijke Groeten -David > Hi, &

Re: [pygtk] Codegen/argtypes: "No ArgType for GValue*" on Linux & Windows

2010-11-02 Thread David ROY
and see your changes in pygobject and pygtk, I'm very curious to understand :-) Thanks -David > Hi, > > Quoting "David ROY" : >> I'm trying to compile a Python package that uses pygtk and it's >> codegen/argtypes facilities (the package is pygoocanvas).

Re: [pygtk] Codegen/argtypes: "No ArgType for GValue*" on Linux & Windows

2010-11-02 Thread David ROY
Hi Dieter, In fact that's what I'm already doing. Thus I have no issue with the types registered in arg-types.py, such as BoundsPtrArg or GooCanvasBoundPtrParam. The problem is that I don't see where "GValue*" is registered (or more precisely, where it should be registered and why it isn't). Is

[pygtk] Codegen/argtypes: "No ArgType for GValue*" on Linux & Windows

2010-10-28 Thread David ROY
Hi, I'm trying to compile a Python package that uses pygtk and it's codegen/argtypes facilities (the package is pygoocanvas). I succeeded both on Linux and Windows (after having a hard time on Windows) but I still have some virtual accessors and interfaces not being created, on both platforms. T