Re: [pygtk] new pygtk for gtk 2.0 snapshot
On Tue, 3 Apr 2001, Skip Montanaro wrote: James I just put up a new snapshot of devel pygtk at: James http://www.gnome.org/~james/pygtk2-SNAP-20010330.tar.gz I managed to get all the prerequisite stuff installed, but can't build the pygtk snapshot. When compiling gtkobject-support.c I get (long lines wrapped): They went and made some changes after my last snapshot, which broke the pygtk build (as you noticed :) I put together a new snapshot while at GUADEC, but didn't get round to announcing it on any mailing lists. You can grab it from http://canvas.gnome.org/~james/pygtk2-SNAP-20010408.tar.gz It will work fine with the glib/gtk+ 1.3.3 releases (along with whatever version of pango was released at the time). James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
Re: [pygtk] GtkCList with widgets as clients?
On Fri, 6 Apr 2001, David Given wrote: Does anyone know how to put widgets in the cells of a GtkCList? The documentation is sparse, to say the least; for the thing I want to do (editing a list of configuration settings), I reckon this would be the most intuitive way of doing it. The GtkCList widget doesn't support embedding widgets James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
Re: [pygtk] GtkTree?
On Mon, 9 Apr 2001, David Robertson wrote: I am trying to build a simple tree using the following code: mytree = GtkTree() myitem = GtkTreeItem("something") mytree.append(myitem) my question is, how to actually build the nodes and leafelets... I have the GTK reference but it is in C and I had given up on C 10 years ago so it is pretty greek to me. Any help on any functions or classes I am overlooking would be appreciated. I tried tinkering with GtkTreeItem.set_submenu to no avail. You can use the set_subtree() method of the tree item to specify a GtkTree as a subtree. I don't recommend using GtkTree though, as it is fairly broken. The CTree widget can do everything Tree does, and is less broken. Thanks for your help. Another quick question. Is there an actual reference for the python GTK wrapper? Not yet. James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
[pygtk] pygtk and python 2.0
Hi. I'm using debian (unstable) and pygtk 0.6.6. I have both python 1.5 and python 2.0 (as python2) installed and noticed that testgtk.py (from examples directory) shows me a warning: piotrlg@xunil:/usr/share/doc/python-gtk/examples/testgtk$ python2 testgtk.py WARNING: Python C API version mismatch for module _gtk: This Python has API version 1009, module _gtk has version 1007. Hello So is pygtk written mainly for python 1.x in mind? Regards Piotr Legiecki ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
Re: [pygtk] deriving classes from gtk.py
On Wed, 11 Apr 2001, Tim Goetze wrote: hi, i'd like to use pygtk widget classes as base classes to my own, like class myVBox (GtkVBox): ... now if i understand correctly, the python wrapping code in gtk.py is planned to be rewritten in c. will this break code like above? the development version of pygtk uses ExtensionClass, which is a module that allows creation of types in C extension modules that can be subclassed. So the above code will continue to work. James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
Re: [pygtk] new pygtk for gtk 2.0 snapshot
James I put together a new snapshot while at GUADEC ... Thanks very much. I found it and it installed just fine. James It will work fine with the glib/gtk+ 1.3.3 releases (along with James whatever version of pango was released at the time). I'm having a bit of a problem with pango. The following simple script gets a number of GRuntime-CRITICAL errors, then repeatedly tries to open /usr/local/lib/pango/modules/pango-basic-x.so.la, which fails, finally terminating with a floating point exception: import gtk win = gtk.GtkWindow() t = gtk.GtkTextView() win.add(t) win.connect("destroy", gtk.mainquit) win.show_all() gtk.mainloop() Does it run for you? If so, I have some config problems. If not, perhaps there is something wrong with pango and/or glib and/or libtool. Thx, -- Skip Montanaro ([EMAIL PROTECTED]) (847)971-7098 ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
Re: [pygtk] pygtk and python 2.0
Piotr testgtk.py Piotr WARNING: Python C API version mismatch for module _gtk: Piotr This Python has API version 1009, module _gtk has version 1007. Piotr So is pygtk written mainly for python 1.x in mind? Nope, but you will have to recompile and relink _gtkmodule.c with the Python 2.0 config stuff to get a _gtkmodule.so library that will load into python2 without issuing a warning. After configuring, try executing make as make PYTHON=/usr/local/bin/python2 -- Skip Montanaro ([EMAIL PROTECTED]) (847)971-7098 ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
Re: [pygtk] Pyglade + multiple windows
On 12 Apr 2001, Colin Fox wrote: Hi. I'm using pyglade and enjoying it immensely. However, I can't seem to figure out how to create multiple simultaneous instances of a window. The gimp, for example, has one each of the toolbox, layers, brushes, etc dialogs, but it has one image window per image. How would you do something like this in pyglade? I think what you want is this: 1- Give a name to the window you wish to duplicate in glade. 2- Create a new xml tree: xml = GladeXML(file, root) where root=name of window (see 1) Thanks, Colin. ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk -- Gustavo J. A. M. Carneiro [http://linuxdeec.fe.up.pt/~ee96090] ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk