Re: [pygtk] PyGtk for Python 3?

2011-03-04 Thread Marko Tasic
On Linux everything works as expected, but there is no Python 3.x build for Windows, so I'm forced to use ether Python 2.x build or old PyGtk. Marko Tasic On Fri, Mar 4, 2011 at 1:25 AM, Robert Park rbp...@exolucere.ca wrote: On Thu, Mar 3, 2011 at 3:25 PM, Greg Ewing

[pygtk] gtk/pygobject api question

2011-03-04 Thread Tom Cato Amundsen
It is explained somewhere how the API will change from pygtk to gtk+pygobject? I'm trying to port GNU Solfege using python-gobject 2.27.91 and gobject-introspection 0.10.3 in ubuntu natty. With pygtk I would do this: sizegroup = gtk.SizeGroup(gtk.SIZE_GROUP_HORIZONTAL) With gtk +

Re: [pygtk] PyGtk for Python 3?

2011-03-04 Thread John Stowers
On Fri, 2011-03-04 at 13:29 +0100, Marko Tasic wrote: On Linux everything works as expected, but there is no Python 3.x build for Windows, so I'm forced to use ether Python 2.x build or old PyGtk. Forced is a harsh word. We will get to windows support for gobject-introspection in good time.

Re: [pygtk] gtk/pygobject api question

2011-03-04 Thread Andrew Steele
You can still specify arguments at construction time, e.g. sizegroup = Gtk.SizeGroup(mode=Gtk.SizeGroupMode.BOTH). The important thing to remember is to 'name' the argument with 'mode='. As for you're other questions, I'd be interested to know myself whether arguments will be optional at some

Re: [pygtk] PyGtk for Python 3?

2011-03-04 Thread John Stowers
On Fri, 2011-03-04 at 11:25 +1300, Greg Ewing wrote: jors wrote: There won't. You will have to use Python GObject Introspection instead. Does this exist in a usable form yet? The web site says At this point we need documentation, stability and users! which sounds like it's not ready

Re: [pygtk] gtk/pygobject api question

2011-03-04 Thread John Stowers
On Fri, 2011-03-04 at 21:32 +0100, Tom Cato Amundsen wrote: It is explained somewhere how the API will change from pygtk to gtk+pygobject? I'm trying to port GNU Solfege using python-gobject 2.27.91 and gobject-introspection 0.10.3 in ubuntu natty. With pygtk I would do this:

Re: [pygtk] PyGtk for Python 3?

2011-03-04 Thread Andrew Steele
I'm working on documentation with a new tutorial (much the same as my own PyGTK tutorial and the original written by John Finlay) coming up soon. The job has become much easier now that 2.27.91 has fixed some of the irritating issues. On 3 March 2011 22:25, Greg Ewing greg.ew...@canterbury.ac.nz

Re: [pygtk] PyGtk for Python 3?

2011-03-04 Thread Antoine Martin
On 03/04/2011 03:36 PM, John Stowers wrote: On Fri, 2011-03-04 at 13:29 +0100, Marko Tasic wrote: On Linux everything works as expected, but there is no Python 3.x build for Windows, so I'm forced to use ether Python 2.x build or old PyGtk. Forced is a harsh word. We will get to windows

[pygtk] On figuring out what to do with the nautilus-python bindings

2011-03-04 Thread Adam Plumb
I'm the developer for nautilus-python, the python bindings for the nautilus extension framework. I'm having trouble figuring out where to begin with porting the bindings from PyGTK to PyGI. The way the current bindings work is that they act as a regular Nautilus C extension then automatically

[pygtk] Using pyGtk under windows application

2011-03-04 Thread Matteo Boscolo
Hi All, I'm developing an application inside a cad package written in c++ using a python Com server. in this application I would like to create a windows form with a list view reading data from a database .. I would like to have a no modal window so the user can leave the gtk application

Re: [pygtk] Using pyGtk under windows application

2011-03-04 Thread Arjan Molenaar
Hi Matteo, I'm not totally sure if I get your question right, but it seems to me you should just create a new top-level window. With gtk.Window.set_transient_for() you're able to create a parent-child relation for this (utility) window. Regards, Arjan Op 4 mrt. 2011 22:55 schreef Matteo Boscolo

Re: [pygtk] Using pyGtk under windows application

2011-03-04 Thread Matteo Boscolo
Sorry for my english .. may be some code is more explicit. this is my com class: #!/usr/bin/env python #oi:=newObj('OpenClient.Interface') #oi-showDialog() # example base.py import pygtk pygtk.require('2.0') import gtk S_OK =0 E_FAIL=1 class Base: def __init__(self): self.window =