[pygtk] No ArgType for cairo_t*

2009-06-10 Thread BJörn Lindqvist
Hello everyone, I'm trying to wrap an interface method that takes a cairo_t* argument, but pygobject-codegen-2.0 says: Could not write interface proxy GtkIImageCairoShaper.draw: No ArgType for cairo_t* and so it won't generate the __proxy_do-function for the method. I thought I read in the chang

[pygtk] [ANN] PyGtkImageView 1.2.0 -- Image viewer widget for PyGTK

2009-04-05 Thread BJörn Lindqvist
I'm pleased to finally announce PyGtkImageView 1.2.0! Description --- GtkImageView is a simple image viewer widget for GTK+. Similar to the image viewer panes in gThumb or Eye of Gnome. It makes writing image viewing and editing applications easy. Among its features are: * Mouse and keybo

Re: [pygtk] Segmentation fault

2008-12-03 Thread BJörn Lindqvist
It would be easier to debug if you posted some example of what you are doing. The traceback doesn't include debugging symbols so it is very hard to say where the problem is. 2008/12/3, Newell Jensen <[EMAIL PROTECTED]>: > I am not a segmentation fault debugger guru and was wondering if someone on

Re: [pygtk] emulate Live Bookmarks buttons?

2008-09-10 Thread BJörn Lindqvist
Hello, 2008/9/6 Karl Ostmo <[EMAIL PROTECTED]>: > I would actually prefer for this button to be part of a gtk.Toolbar, such as > a gtk.ToolButton. However, gtk.MenuToolButton does not do what I want; that > widget has the menu part split into a separate button, as in the "Recent > pages" next to

Re: [pygtk] Segfault with set_set_scroll_adjustments_signals and gnome.ui

2008-09-10 Thread BJörn Lindqvist
Hi, 2008/8/29 Herwig Hochleitner <[EMAIL PROTECTED]>: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hello! > My Custom DrawingArea keeps segfaulting me on being destroyed. > I traced it down to the following minimal example: > > [PYTHON] > > import gtk > import gobject > import gnome.ui >

Re: [pygtk] gobject.Warnings with GtkTreeModelFilter

2008-09-10 Thread BJörn Lindqvist
2008/9/7 Darren Hart <[EMAIL PROTECTED]>: > I've been running into this problem trying to eliminate an apparently harmless > Warning message from my application. It appears in a number of locations: > > gui_datastores.py:66: Warning: unable to set property `text' of type > `gchararray' from value

Re: [pygtk] Error message

2008-06-25 Thread BJörn Lindqvist
Here is the minimal glade file that reproduces your problem: portrait 0 It seems like this problem is very widespread, see: http://lists.ximian.com/pipermail/glade-users/2005-March/002467.html http://lists.ximian.com/pipermail/glade-users/2007-May/003485.h

Re: [pygtk] Error message

2008-06-23 Thread BJörn Lindqvist
On Fri, Jun 20, 2008 at 10:35 AM, Frédéric <[EMAIL PROTECTED]> wrote: > /usr/local/lib/python2.4/site-packages/papywizard/view/configDialog.py:74: > GtkWarning: gtk_tree_row_reference_new: assertion `GTK_IS_TREE_MODEL > (model)' failed > self.wTree = gtk.glade.XML(gladeFile) > > /usr/local/lib/pyt

Re: [pygtk] gtk.ListStore columns in a gtk.ComboBox

2008-06-23 Thread BJörn Lindqvist
On Sun, Jun 22, 2008 at 4:09 PM, Isaac Alston <[EMAIL PROTECTED]> wrote: > I am making a search function where users can select two fields which > they'd like to search on in a database. I'm having trouble displaying > a single column from a gtk.ListStore with multiple columns in a > gtk.ComboBox c

[pygtk] [ANN] PyGtkImageView 1.1.0 -- Image viewer widget for PyGTK

2008-03-12 Thread BJörn Lindqvist
I'm pleased to finally announce PyGtkImageView 1.1.0! Description --- GtkImageView is a simple image viewer widget for GTK+. Similar to the image viewer panes in gThumb or Eye of Gnome. It makes writing image viewing and editing applications easy. Among its features are: * Mouse and keybo

[pygtk] Wrapping plain structs

2007-09-18 Thread BJörn Lindqvist
How do you wrap naked typedef structs? I tried with define-boxed, like this: (define-boxed MyStruct (in-module "mod") (c-name "BlaHa") (fields ... ) ) But codegen.py seem to require a "gtype-id" field which requires the struct to be registered using glib's registering system. But what

[pygtk] [ANN] GtkImageView 1.5.0 and PyGtkImageView 1.0.0 -- Image viewer widget for GTK

2007-09-10 Thread BJörn Lindqvist
I'm pleased to finally announce GtkImageView 1.5.0. I'm even more pleased to ALSO announce PyGtkImageView 1.0.0: Description --- GtkImageView is a simple image viewer widget for GTK+. Similar to the image viewer panes in gThumb or Eye of Gnome. It makes writing image viewing and editing ap

Re: [pygtk] Documentation strategy for bindings

2007-09-04 Thread BJörn Lindqvist
On 9/3/07, Lauro Moura <[EMAIL PROTECTED]> wrote: > On 9/3/07, BJörn Lindqvist <[EMAIL PROTECTED]> wrote: > > Hello! > > > > I'm interested to know what the best way (or maybe there are multiple > > good ways) to write documentation for Python bindi

[pygtk] Documentation strategy for bindings

2007-09-03 Thread BJörn Lindqvist
Hello! I'm interested to know what the best way (or maybe there are multiple good ways) to write documentation for Python bindings for a GTK library is. What I would like, is for a way to get the documentation into the docstrings, because then I get interactive help and can generate html and pdfs

Re: [pygtk] Signal with a float argument

2007-01-31 Thread BJörn Lindqvist
Awesome man! Thankyou. On 1/30/07, Ed Catmur <[EMAIL PROTECTED]> wrote: On Mon, 2007-01-29 at 18:15 +0100, BJörn Lindqvist wrote: > When running the above code on Windows it produces the following output: > > RINGING! Hello olle > RINGING 5.92878775009e-323 > > T

Re: [pygtk] Call for devs: gnome-format

2007-01-30 Thread BJörn Lindqvist
What a good idea! Maybe you are already aware of gfloppy which formats floppy disks? http://yolinux.com/TUTORIALS/images/gfloppy.gif If you want your code included in GNOME, it is probably a good idea if you borrow the interface from that tool. -- mvh Björn __

[pygtk] Signal with a float argument

2007-01-29 Thread BJörn Lindqvist
import gobject import gtk class Foobar(gtk.Widget): __gsignals__ = { 'ring_ring' : (gobject.SIGNAL_ACTION | gobject.SIGNAL_RUN_LAST, None, (str,)), 'ring_loud' : (gobject.SIGNAL_ACTION | gobject.SIGNAL_RUN_LAST, None, (float,)) }

Re: [pygtk] Building DocBook documentation

2006-11-28 Thread BJörn Lindqvist
On 11/28/06, Johan Dahlin <[EMAIL PROTECTED]> wrote: BJörn Lindqvist wrote: > On 11/27/06, Johan Dahlin <[EMAIL PROTECTED]> wrote: >> BJörn Lindqvist wrote: >> > Hello! >> > >> > I have a problem with building pygtk's (and other modules hosted

Re: [pygtk] Building DocBook documentation

2006-11-27 Thread BJörn Lindqvist
On 11/27/06, Johan Dahlin <[EMAIL PROTECTED]> wrote: BJörn Lindqvist wrote: > Hello! > > I have a problem with building pygtk's (and other modules hosted on > www.pygtk.org) documentation. For pygtk, the source to the > documentation is in the files ./docs/referen

Re: [pygtk] How to select a menuitem

2006-11-27 Thread BJörn Lindqvist
Hi, how can you select a menuitem with python code? I want to remember the last menuitem the user took, so that I can focus/select it the next time the menu pops up. something like this: self.flagsmenu.popup() if self.flagsmenu_lastitem: self.flagsmenu_lastitem.select() # menuitem GT

[pygtk] Building DocBook documentation

2006-11-27 Thread BJörn Lindqvist
Hello! I have a problem with building pygtk's (and other modules hosted on www.pygtk.org) documentation. For pygtk, the source to the documentation is in the files ./docs/references/*.xml. But it seems no matter what I do, I can't produce html-documentation from those files. How do you do it? --

[pygtk] Per pixel access to a pixbuf

2006-06-25 Thread BJörn Lindqvist
I need to do lots of per-pixel manipulation of gdk.Pixbufs. First i started with pure Python because it was the simplest: pixels = pixbuf.get_pixels() for y in range(pixbuf.get_height()): for x in range(pixbuf.get_width()): [do some manipulation with the pixel at (x, y)] [return a new p