[pygtk] Re: gnome-python and gnome-session

2004-01-07 Thread James Henstridge
On 27/12/2003 8:08 AM, Martin Grimme wrote: Hi, gnome-python does not fully support session management, e.g. methods like gnome_client_set_restart_command() are missing. There has been a patch for the missing functions around since the days of 1.99.11 and Redhat and (now also) Debian patch their

Re: [pygtk] pyORBit and threading

2003-11-11 Thread James Henstridge
On 30/10/2003 1:02 AM, Sebastian Rittau wrote: Hi! I'm trying to get pyORBit to work with threading. Unfortunately this does not seem to work. When starting the attached sample script, the script will print out numbers of up to ~100 and then stop. gdb reports that thread 1 is hanging in poll(),

Re: [pygtk] PyGtk/C extension - segfault

2003-11-10 Thread James Henstridge
On 10/11/2003 7:52 PM, [EMAIL PROTECTED] wrote: Hi, a few days ago, I've got a great help on gtk-pygtk objects wrapping. Thanks a lot. Now, I have the library but the application crashes on segfault. I've been thinking it is problem of mine or problem of Python but PyGtk seems to have own part

Re: [pygtk] gtk.FileSelection source code... where?

2003-11-06 Thread James Henstridge
On 7/11/2003 11:29 AM, David Bernard wrote: Hi ! Newby question: I want to make my own version of gtk.FileSelection, and I need to copy some functions from the original (ugly) one, where can I find it? Sorry for my bad english.. Like the other widgets in GTK, GtkFileSelection is implemented in

Re: [pygtk] My menubar disappear with mysql

2003-11-05 Thread James Henstridge
On 4/11/2003 6:30 AM, mc collilieux wrote: Hello, I would continue a programm beginned with pygtk 1.99.13 and python 2.2 (which was working well) with python 2.2.2 and pygtk 2.0 and it is crazy... I have a top level window with : vbox ---vbox -- a menubar ---vbox -- a notebook Each

Re: pickling a TreeStore? Re: [pygtk] Creating a sortable model derived from GenericTreeModel

2003-10-24 Thread James Henstridge
On 23/10/2003 3:00 AM, Eugene Koontz wrote: I'm in a similar situation that Don Allingham describes in his post Creating a sortable model derived from GenericTreeModel : I have a big TreeStore that takes a long time to load. My proposed solution is to have a compile-time step of pickling the

Re: [pygtk] TextView width depending on maximum number of character per line

2003-10-24 Thread James Henstridge
On 23/10/2003 8:37 AM, Dàvik wrote: Hi! I need a TextView that changes its width depending on the maximum number of characters per line that the user wants it to have. I need that the user be able to configure it to have between a number of characters per line and that it changes its width to

Re: [pygtk] Re: right clicking on a GtkTreeStore row

2003-09-30 Thread James Henstridge
On 29/09/2003 11:51 PM, Christian Reis wrote: On Mon, Sep 29, 2003 at 04:49:49PM +0100, Stephen Kennedy wrote: On Mon, 2003-09-29 at 16:01, Christian Reis wrote: On Thu, Sep 25, 2003 at 10:57:23AM +0100, Stephen Kennedy wrote: path, col, cellx, celly =

Re: [pygtk] Showing an inconsistent state with CellRendererToggle?

2003-09-25 Thread James Henstridge
On 25/09/2003 4:23 AM, David Moore wrote: Is it possible for a TreeModel to tell a CellRendererToggle that it is in an in between (inconsistent) state??? I have a TreeModel class derieved from GenericTreeModel. Each node in the tree can be in one of three states yes, no, or maybe. Can a

Re: [pygtk] Problems compiling current CVS head on Win32.

2003-09-24 Thread James Henstridge
On 23/09/2003 5:08 PM, Alif Wahid wrote: Hi folks, I've had some problems compiling the current CVS head of PyGtk-2.1.x on Win32. So I've submitted a patch on bugzilla to fix that. Basically there are some undefined symbols in the official Gtk+-2.2.4 binaries. So I've added empty function stubs

Re: [pygtk] Trouble building Python-Gnome 2.0 on Mac Os 10.2

2003-09-24 Thread James Henstridge
On 18/09/2003 5:28 PM, [EMAIL PROTECTED] wrote: I am trying to compile python-gnome 2.0 on Mac Os 10.2.6 to port the newest gramps and gcompris to mac Os X. I am using fink and I manage to create a package for pygtk 2.0 but I cannot compile python-gnome 2.0. I end up with the following error

Re: [pygtk] gtk.Window.get_position()

2003-09-19 Thread James Henstridge
On 19/09/03 16:37, [EMAIL PROTECTED] wrote: Hi to all, I've a Window with a TextView, and I want to display another window (a popup winow) near the cursor position of the TextView. So I've calculate the cursor position with the buffer_to_window_coords() method and then I try to use the method

Re: [pygtk] scaling fonts

2003-09-17 Thread James Henstridge
On 16/09/03 06:08, John Hunter wrote: I am trying to scale my pango fonts with a DPI parameter for my plotting library. I have two parameters, figsize (tuple in inches) and DPI (int) and my figure size is a tuple in pixels given by the product of these, ie, (figsize[0]*dpi, figsize[1]*dpi) When

Re: [pygtk] gtk+vtk again

2003-09-17 Thread James Henstridge
On 18/09/2003 3:45 AM, Tim Newsham wrote: [In a blast from the past, John Hunter said...] BTW Prabu, the Lueb patch also exposes the hwnd attribute for win32 systems, which I think is the analog of the xid attribute. Hence it should be possible to port the GtkVTKRenderWindow code to win32

Re: [pygtk] Creating a new Pango Context

2003-09-15 Thread James Henstridge
On 15/09/03 20:06, Nathan Hurst wrote: On Thu, 11 Sep 2003 12:15:32 +0800 James Henstridge [EMAIL PROTECTED] wrote: On 11/09/2003 11:38 AM, Nathan Hurst wrote: How can I create a new, or copy an existing, pango context? I am currently using the widget.get_pango_context() one, but I

Re: [pygtk] sys.excepthook and the gtk thread lock

2003-09-11 Thread James Henstridge
On 12/09/2003 8:42 AM, Tim Evans wrote: I have created a routine that displays exceptions in a gtk dialog box, which I place in sys.excepthook. I have run into a problem when using this routine with threading. The sys.excepthook function can be run from all sorts of places, sometimes the gtk

Re: [pygtk] Creating a new Pango Context

2003-09-10 Thread James Henstridge
On 11/09/2003 11:38 AM, Nathan Hurst wrote: How can I create a new, or copy an existing, pango context? I am currently using the widget.get_pango_context() one, but I can't work out how to make a new one. If I use the one attached to the widget I have to restore everything after every use.

Re: [pygtk] Install Problems

2003-09-09 Thread James Henstridge
On 09/09/03 20:05, Shaffer, Chris wrote: Help!!! I'm having problems installing the latest gnome-python and PyORBit on my mandrake 9.1 box. I have python2.3 installed from src, as well as the latest-greatest pygtk2 (from src). Both work fine (at least with my apps)... When I try and

Re: [pygtk] Install Problems

2003-09-09 Thread James Henstridge
On 09/09/03 21:59, Shaffer, Chris wrote: Okay, that worked on PyORBit, but here is the output from running './configure --prefix=/usr/local' in the gnome-python folder: checking for pygtk-2.0 = 2.0.0... Package pygtk-2.0 was not found in the pkg-config search path. Perhaps you

Re: [pygtk] Install Problems

2003-09-09 Thread James Henstridge
On 09/09/03 22:13, Shaffer, Chris wrote: As far as I know. My PyGTK apps work, and when I look in /usr/local/lib/python2.3/site-packages, I have a gtk-2.0 folder, as well as pygtk.py file... I installed PyGTK from the latest source on the PyGTK homepage... In that case, take the following bit

Re: [pygtk] CVS branches and plans for the future.

2003-09-07 Thread James Henstridge
On 07/09/03 14:27, John K Luebs wrote: Currently, pygtk seems to be supporting both Python 2.2 and 2.3. What does 2.3 have that 2.2 does not have that would warrant ditching support for 2.2? If it ain't broke... Well, there is one feature found in Python 2.3's C API that could be useful, and

Re: [pygtk] Missing about icon in menu

2003-09-06 Thread James Henstridge
On 06/09/03 03:05, Benjamin Liblit wrote: James Henstridge wrote: I just left a note in the bug report you filed about this. I can't find that report in GNOME bugzilla. Link? http://bugzilla.gnome.org/show_bug.cgi?id=121158 James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au

Re: [pygtk] CVS branches and plans for the future.

2003-09-06 Thread James Henstridge
On 06/09/03 14:58, Andrew P. Lentvorski, Jr. wrote: On Wed, 3 Sep 2003, Malcolm Tredinnick wrote: My only real request is to continue supporting Python 2.2. I was one of the people in favour of requiring 2.2 early on, so this risks sounding hypocritical, but the changes between 2.2 and 2.3

Re: [pygtk] Warnings issued by get_property

2003-09-04 Thread James Henstridge
On 4/09/2003 8:00 AM, Michael McLay wrote: I received an odd warning when testing the use of get_property. Accessing the 'child' property for a button returns the message: (:2640): Gtk-WARNING **: ../../gtk/gtkcontainer.c:874: invalid property id 3 for child of type `GParamObject' in

[pygtk] ANNOUNCE: PyORBit 2.0.0

2003-09-02 Thread James Henstridge
. Questions about PyORBit can be directed to the PyGTK list: http://www.daa.com.au/mailman/listinfo/pygtk Bug reports should be filed at the Gnome bug tracker: http://bugzilla.gnome.org/enter_bug.cgi?product=pyorbit James Henstridge. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james

[pygtk] ANNOUNCE: Gnome-Python 2.0.0

2003-09-02 Thread James Henstridge
about Gnome-Python can be directed to the PyGTK list: http://www.daa.com.au/mailman/listinfo/pygtk Bug reports should be filed at the Gnome bug tracker: http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-python James Henstridge. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au

[pygtk] CVS branches and plans for the future.

2003-09-02 Thread James Henstridge
I have just branched pygtk, pyorbit and gnome-python in CVS. If you want to get the 2.0 branches, you will need to switch your branches over to the branches: cd pygtk; cvs update -r pygtk-2-0 . cd pyorbit; cvs update -r pyorbit-2-0 . cd gnome-python; cvs update -r gnome-python-2-0 .

Re: [pygtk] Missing about icon in menu

2003-09-01 Thread James Henstridge
On 1/09/2003 3:07 PM, Colin Fox wrote: For some reason, when I create a Gnome project, and add a Gnome app window, the yellow star beside the About menu doesn't show up in my program. It shows up in the glade editor, though. All the other icons in the menus are fine. Just the about star is

Re: [pygtk] Can anyone do a status on OSX + PyGTK?

2003-08-29 Thread James Henstridge
On 29/08/2003 3:58 AM, Scott Prive wrote: Hi, I am using PyGTK2 on Windows and Linux. Has anyone built a package for OS/X? I understand from a few weeks ago's threads that there were issues building under OS/X, but they should/might be cleared up now. Is there perhaps an un-official or

Re: [pygtk] pygtk-FAQ entry 13.25 (sequence APIs for TreeStore andListStore)

2003-08-28 Thread James Henstridge
On 27/08/2003 7:47 PM, [EMAIL PROTECTED] wrote: Hi again, The sequence API as described in the pygtk FAQ entry 13.25 http://www.async.com.br/faq/pygtk/index.py?req=showfile=faq13.025.htp does not work, the TreeStore and ListStore objects do have a function __getitem__, but no __setitem__.

Re: [pygtk] Can't get key-press-events..

2003-08-28 Thread James Henstridge
On 27/08/2003 6:58 AM, alejandro david weil wrote: Hi. I'm using python-gtk21.99.17-3 on debian. The problem is that i can't get keypress events, and, i'm getting the button-press-events in right way. I'm tryng to get them, on a subclass of gtk.DrawingArea. The code is this:

Re: [pygtk] extra_ivars assersion failure

2003-08-28 Thread James Henstridge
On 28/08/2003 6:33 AM, Ben Liblit wrote: I'm having trouble subclassing a class from an extension module. When Python processes my subclass definition, and before any instances are created, it aborts with: python: Objects/typeobject.c:872: extra_ivars: Assertion `t_size = b_size'

Re: [pygtk] GnomeAppBar and Glade

2003-08-28 Thread James Henstridge
On 28/08/03 17:57, Lawrence Oluyede wrote: I'm reading a C-based tutorial to learn using Glade2, but I still have a problem. When I try to get the GnomeAppBar widget from the XML tree what the get_widget method returns is: gtk.HBox object (GnomeAppBar) at 0x40c12464 and when I try to use

[pygtk] ANNOUNCE: pygtk-1.99.18, pyorbit-1.99.7,gnome-python-1.99.18

2003-08-24 Thread James Henstridge
I've just uploaded new releases of pygtk, pyorbit and gnome-python. You can download them from ftp.gnome.org and its list of mirrors: http://ftp.gnome.org/pub/GNOME/sources/pygtk/1.99/ http://ftp.gnome.org/pub/GNOME/sources/pyorbit/1.99/

Re: [pygtk] Using Accessibility interface from PyORBit?

2003-08-22 Thread James Henstridge
On 22/08/03 21:00, Tessa Lau wrote: Is it possible that you are running into this problem? http://bugzilla.gnome.org/show_bug.cgi?id=118990 Upgrading to pyorbit from CVS does fix the segfault, but it doesn't fix the problem. I still get a CORBA.NO_IMPLEMENT exception when I try to call

Re: [pygtk] Using Accessibility interface from PyORBit?

2003-08-21 Thread James Henstridge
On 21/08/2003 9:20 PM, Tessa Lau wrote: I'm digging into this further. I upgraded to Python 2.3 and pyorbit 1.99.6-4, as packaged by Debian unstable. The test script I posted the other day now segfaults in registerGlobalEventListener. Here's the backtrace: #0 0x080785d0 in

Re: [pygtk] Treeview Icons

2003-08-14 Thread James Henstridge
On 11/08/2003 5:04 AM, Colin Fox wrote: On Sun, 2003-08-10 at 11:30, Doug Quale wrote: Here is a simple example using icons in a TreeView. Thanks! That's perfect. Just out of curiosity, how would I show different images for when the item is expanded and collapsed? According to the C

Re: [pygtk] Using Accessibility interface from PyORBit?

2003-08-14 Thread James Henstridge
On 13/08/03 04:52, Tessa Lau wrote: Hi all, I'm trying to use PyORBit to duplicate some of the functionality of AT-poke (the GNOME accessibility query tool). I haven't found any documentation on how to use CORBA, much less CORBA with Python. So far I've used orbit-idl-2 to process the

[pygtk] bugzilla reorganisation

2003-08-14 Thread James Henstridge
I have added pygtk and pyorbit products to bugzilla now, and had the associated bugs moved over (I got Luis to do this, so that it wouldn't send out loads of unwanted bugspam). The main reason for this was to allow better classification of pygtk bugs in the future. Also, a number of people

Re: [omniORB] Re: [pygtk] Conflicting omniORBpy and PyORBit

2003-08-14 Thread James Henstridge
On 3/08/2003 3:18 AM, Duncan Grisby wrote: On Friday 1 August, James Henstridge wrote: The only issue for packagers is how to deal with the top-level CORBA (and PortableServer, etc.) modules. One solution would be to install them only if they are not already there from a different ORB

Re: [pygtk] Using Accessibility interface from PyORBit?

2003-08-14 Thread James Henstridge
On 13/08/03 04:52, Tessa Lau wrote: Hi all, I'm trying to use PyORBit to duplicate some of the functionality of AT-poke (the GNOME accessibility query tool). I haven't found any documentation on how to use CORBA, much less CORBA with Python. So far I've used orbit-idl-2 to process the

Re: [pygtk] Conflicting omniORBpy and PyORBit

2003-08-01 Thread James Henstridge
On 1/08/2003 4:01 PM, ml wrote: Hi, I want to have both omniORBpy and PyORBit installed in parallel. The first, because I use it for my own applications, the latter, because some GNOME programs depend on python-gnome2 and therefore on PyORBit. Unfortunately, both packages include a file

Re: [omniORB] Re: [pygtk] Conflicting omniORBpy and PyORBit

2003-08-01 Thread James Henstridge
On 01/08/03 21:13, Duncan Grisby wrote: omniORB's CORBA module really lives in omniORB.CORBA, so you can do from omniORB import CORBA instead of just import CORBA. I believe Fnorb does the same thing, so it should be considered a de-facto standard. It would be good if pyorbit supported the same

[pygtk] ANNOUNCE: pygtk-1.99.17

2003-07-31 Thread James Henstridge
I've just uploaded a new release of pygtk. The corresponding gnome-python release isn't ready yet, but should be in a few days (I still need to review a few more of the bug reports). You can download it from one of: ftp://ftp.gtk.org/pub/gtk/python/v2.0/

[pygtk] ANNOUNCE: pyorbit-1.99.6

2003-07-31 Thread James Henstridge
I've uploaded a new release of pyorbit at: http://ftp.gnome.org/pub/GNOME/sources/pyorbit/1.99/ The changes in this release are: * clean up base class list when building client stubs. This is needed in order for the stubs to work with Python 2.3. * fix some possible segfaults if

Re: [pygtk] .defs and .override

2003-07-31 Thread James Henstridge
On 1/08/2003 1:17 AM, Jon Willeke wrote: I'd like to use the VTE terminal widget, but the Python bindings need a little work. I need to learn a little bit about how the .defs and .override files interact. I've read Ross Burton's article

Re: [pygtk] converting an Numeric array to a Pixbuf

2003-07-31 Thread James Henstridge
On 1/08/2003 4:46 AM, Anthony Joseph Seward wrote: On Wed, 2003-07-30 at 11:45, Christian Reis wrote: On Tue, Jul 29, 2003 at 09:27:45AM +1200, Tim Evans wrote: Anthony Joseph Seward wrote: I am trying to figure out a simple way of converting a Numeric array to a gtk.gdk.Pixbuf

Re: [pygtk] TypeError: destroy() takes no arguments (1 given)

2003-07-30 Thread James Henstridge
On 31/07/2003 1:27 AM, Dusausoy Bruno wrote: Hi, I'm quite new to pygtk and I have a problem. I've connected the clicked signal to a button and it should normally call exit_window.destroy() function. But Python gives me this error: TypeError: destroy() takes no arguments (1 given) The first

Re: [pygtk] PyGtk+glade2+gettext

2003-07-28 Thread James Henstridge
On 28/07/2003 8:48 PM, Alexandr V. Demeshko wrote: First of all sorry for my poor English. Could someone explain me how PyGtk, libglade and gettext should work together? When I call from Python glade.XML(mygladefile, domain=mydomain) wrapper code does not use domain, instead passes it into

Re: [pygtk] connect_while_alive() in pygtk2?

2003-07-28 Thread James Henstridge
On 29/07/2003 7:15 AM, John Ehresman wrote: I'm wondering if a connect_while_alive() method would be useful in pygtk 2? The connect_object() is often mentioned as a replacement method, but it doesn't invalidate the handler until the object is collected by Python's cyclic GC at some indeterminate

Re: [pygtk] gnome.ui in SuSE Linux 8.2

2003-07-24 Thread James Henstridge
Jon Willeke wrote: Sorry for not replying to the original message, but I only just subscribed. I was just looking into this, myself. I installed SuSE Linux 8.2 Personal, then installed a bunch of packages from mirror sites. I usually use Red Hat, so I'm a little out of my element. If you

Re: [pygtk] segfault in gtk.glade.XML

2003-07-24 Thread James Henstridge
Don Allingham wrote: I've been attempting to port pygtk-1.99.14 and gnome-python-1.99.14 to SuSE 8.2 because the packages SuSE shipped are rather broken (built without gnome.ui). I've been able to build the packages, but when I run my application, I get a segfault in the glade_xml_new call. At

Re: [pygtk] segfault in gtk.glade.XML

2003-07-24 Thread James Henstridge
Don Allingham wrote: On Thu, 2003-07-24 at 21:52, James Henstridge wrote: If there is no gnome.ui module, then it is not possible to initialise the libgnomeui library. libglade is not guaranteed to function if you do not initialise the libraries you use. I built the missing pyorbit

Re: [pygtk] Caching list view/-model ?

2003-07-22 Thread James Henstridge
Peter Schulte-Stracke wrote: Hi, I am in desparate need of a List/Tree widget that does *not* read the whole database / model, but only a portion of it, essentially what is displayed. This looks as an innocuous enough requirement, but I failed completely to get anything to work, or even to find

Re: [pygtk] busy-cursor? input_only gtk_window?

2003-07-17 Thread James Henstridge
george young wrote: [gtk-2.2.2, pygtk-1.99.16, python-2.3b2] I want to briefly change my app's cursor to a 'watch' or some such while it's thinking hard. I have a zillion widgets, so it seems like changing cursor for one of them is not likely to be right. From the FAQ, entry 5.6:

[pygtk] ANNOUNCE: pyorbit-1.99.5

2003-07-16 Thread James Henstridge
I have uploaded version 1.99.5 of PyORBit. I am doing this ahead of the pygtk and gnome-python releases so that there will be a tarball available that compiles with the ORBit tarballs found in the Gnome 2.3.x dev releases. Once ftp.gnome.org has synchronised, you will be able to download it from:

Re: [pygtk] libglade + gettext

2003-07-05 Thread James Henstridge
[EMAIL PROTECTED] wrote: Christian Reis wrote: On Fri, Jul 04, 2003 at 02:08:37PM +0100, [EMAIL PROTECTED] wrote: Also I'm wondering that since the gettext python module doesn't actually call any glibc functions, does this have any affect on libglade? I can't see where the textdomain() calls

Re: [pygtk] pygtk 1.99 on OS X

2003-07-01 Thread James Henstridge
[EMAIL PROTECTED] wrote: has anyone been able to get PyGTK 1.99 to work on OS X? I have tried to compile it from source and I get this error: make all-recursive Making all in codegen make[2]: Nothing to be done for `all'. Making all in gtk /bin/sh ../libtool --mode=link gcc -g -O2 -Wall

Re: [pygtk] catching a window resizew event in pygtk2

2003-07-01 Thread James Henstridge
Jean-Baptiste Cazier wrote: Sæl ! I am porting my code from gtk1 to GTk2, ie pygtk 0.6 to 1.99 (quite painful btw) I am stuck with the resizing manually of the window : everytime I resize the I want to update the drawing area it contains I used to connect to size_allocate signal in pygtk 0.6

Re: [pygtk] Re: pygtk thread support bug

2003-07-01 Thread James Henstridge
Elliot Lee wrote: On Wed, 25 Jun 2003, Elliot Lee wrote: The problem is that pygdk_block_threads assumes that an accompanying pygdk_unblock_threads has previously been called, when in fact it hasn't. This can happen in situations when a thread calls a non-thread-wrapped gtk function that

Re: [pygtk] pygtk 1.99 on OS X

2003-07-01 Thread James Henstridge
Jade Meskill wrote: On 6/30/03 10:29 PM, James Henstridge [EMAIL PROTECTED] wrote: --snip-- I think I have fixed this problem in CVS now. It would be helpful if you could test this on your machine and report back on whether it fixes the problem for you. Try editing the gtk

Re: [pygtk] Adding an interface to a python-derived class

2003-06-28 Thread James Henstridge
Austin Henry wrote: Ok, this could be a weird one (or maybe not, I haven't been reading this list long enough to know what's weird around here ;) I am trying to implement a custom TreeCellRenderer which displays text, and when edited brings up a combo box subclass that I've written in Python.

Re: [pygtk] Cannot create GladeXML object

2003-06-28 Thread James Henstridge
Haris Bogdanovic wrote: When I do gtk.glade.XML(filename.glade) I get the error Could not create GladeXML object. What is the problem here ? Is the file a valid glade file? If so, it should start with something like this: ?xml version=1.0 standalone=no? !--*- mode: xml -*-- !DOCTYPE

Re: [pygtk] pygtk or py + tk ?

2003-06-05 Thread James Henstridge
Jean-Baptiste Cazier wrote: Sæl ! I have been designing a couple of applications on my linux box based on python + gtk and they work just fine. But porting them to any Windows system is quite a pain because GTK is not straight forward to install on those platforms However, Tcl /Tk is very easy

Re: [pygtk] how to attach a gtk.Layout to a gtk.Scrollbar

2003-04-06 Thread James Henstridge
Lorenzo Gil Sánchez wrote: I read the pygtk2 tutorial[1] and have some problems with the Layout Container[2]. When i try to use a vertical scrollbar with my Layout container something weird happens: mylayout = gtk.Layout(None, None) myscrollbar - gtk.VScrollbar(None) adjust =

Re: [pygtk] bug in the spinbutton?

2003-04-03 Thread James Henstridge
Rob Brown-Bayliss wrote: pygtk.require('2.0') Is there a pygtk 2? I thought we were still doing the 1.99.x thing... It refers to the platform version. You would still use pygtk.require('2.0') when pygtk-2.2 is out, for instance. James. -- Email: [EMAIL PROTECTED] WWW:

Re: [pygtk] nasty ListStore(bool) bug?

2003-04-03 Thread James Henstridge
george young wrote: [pygtk-1.99.15, gtk+-2.2.1, python 2.3.a1, x86 linux] I have used ls = ListStore(str, str, str) with success, but ls = ListStore(bool, str, str) fails with a nasty, misleading could not get typecode from object in a *subsequent* statement! If I change bool to

Re: [pygtk] Python binding of Pango should accept 'None' as anargument.

2003-04-02 Thread James Henstridge
Alif Wahid wrote: Hi, I'm one of the developers of GtkGLExt library on sourceforge, and we're providing a python binding to GtkGLExt (an OpenGL capability extension of Gtk). In the process of writing test programs we've come across a minor discrepancy between the Python binding of Pango and its

Re: [pygtk] connect_after does not work for treeview

2003-03-27 Thread James Henstridge
Maik Hertha wrote: :: It sets the signal return value to the value returned by the last :: handler. It then decides whether to continue the emission if the return :: value is False. :: Most uses of stop_emit_by_name() can be converted to simply do return :: True now. You hardly ever need

Re: [pygtk] GnomeFileEntry and non-ascii characters

2003-03-27 Thread James Henstridge
Don Allingham wrote: I'm using a GnomeFileEntry in a glade built interface. Any time I select a file name with a non-ascii character in it (such as 'ä'), I get all kinds of errors, and the full string is not displayed. Some of the errors I get are: Gtk-CRITICAL **: file gtktextbuffer.c: line 476

Re: [pygtk] Comments on the tutorial

2003-03-26 Thread James Henstridge
Antoon Pardon wrote: Explain the difference between signals and events. As far I as a complete newbie understand the two are extremely similar to the point there is no reason to have both. Which makes it confusing to have them both without explanation about why having them both. Events are things

Re: [pygtk] connect_after does not work for treeview

2003-03-26 Thread James Henstridge
Christian Reis wrote: Can the class handler be run multiple times, then, if both _LAST and _FIRST are set, for instance? Yes, but they seldom do (I am not sure if any of the signals in GTK do so). What are signals with return types? Integer, boolean, etc. The type of the value returned by the

Re: [pygtk] Unsupported types

2003-03-26 Thread James Henstridge
Yuri Vilmanis wrote: I've been using py-gtk for a little while now, and I have noticed one major deficiency: GTK+ types and structs which do not have a type feild cannot be imported by the py-gtk autogeneration script, rendering quite a few functions unusable. Off the top of my head, examples

Re: [pygtk] connect_after does not work for treeview

2003-03-25 Thread James Henstridge
Christian Reis wrote: On Fri, Mar 21, 2003 at 10:31:13AM +0800, James Henstridge wrote: Stephen Kennedy wrote: Plain connect works fine, but the connect_after callback does not get called. Or am I doing something wrong? See attached example. For the standard widget event signals

Re: [pygtk] Should PyGtk be proposed for the Python 2.4 release?

2003-03-24 Thread James Henstridge
Michael McLay wrote: The Tkinter library in the standard Linux distribution is getting long in the tooth. It is in the standard distribution because it provides cross-platform portability and has a rich text widget. The rate of improvement in the Tk toolkit has slowed to a trickle and the

Re: [pygtk] VTK

2003-03-23 Thread James Henstridge
George A. Dowding wrote: Any help would be appreciated. I am trying to comple pygtk from cvs with patches to use VTK. My current problem relate to the more general issue of compiling pygtk from source. I tried following the directions from here

[pygtk] ANNOUNCE: pygtk-1.99.16, pyorbit-1.99.4 and gnome-python-1.99.16

2003-03-22 Thread James Henstridge
I have just uploaded a new set of pygtk, pyorbit and gnome-python releases. You can get them here: ftp://ftp.gtk.org/pub/gtk/python/v2.0/pygtk-1.99.16.tar.gz http://ftp.gnome.org/pub/GNOME/sources/pygtk/1.99/pygtk-1.99.16.tar.gz

Re: [pygtk] connect_after does not work for treeview

2003-03-21 Thread James Henstridge
Maik Hertha wrote: The difference to the 0.6.x code is, that I include the return statements in the functions with FALSE. If I do a signal_connect I get a deadlock situation with the dialog window which is called via Set_options_button.clicked(). Could it be a bug anyway ? The behaviour was

Re: [pygtk] connect_after does not work for treeview

2003-03-20 Thread James Henstridge
Stephen Kennedy wrote: Plain connect works fine, but the connect_after callback does not get called. Or am I doing something wrong? See attached example. No bug here. For the standard widget event signals, a custom accumulator is set. When going through the list of handlers to call for the

Re: [pygtk] Changing a SpinButton's maximum value

2003-03-20 Thread James Henstridge
Greg Ward wrote: Hi all -- I'm trying to create a SpinButton whose maximum value can be changed later. (Actually, the value of one SpinButton becomes the maximum of another, but that's not really relevant.) From reading the GTK+ tutorial, it looks as though this: from gtk import * w =

Re: [pygtk] Changing a SpinButton's maximum value

2003-03-20 Thread James Henstridge
Greg Ward wrote: On 21 March 2003, James Henstridge said: Of course, if you are writing new code, I strongly recommend using the newer versions of pygtk. GTK 1.2 is obsolete (there have already been two more stable series released since GTK 1.2: 2.0.x and 2.2.x). Never mind that, GTK

Re: [pygtk] Is there a guide how to program with pygtk?

2003-03-16 Thread James Henstridge
David M. Cook wrote: On Tue, Dec 21, 2004 at 10:29:17PM -0200, Michel wrote: Hi Guys! I want to program in pygtk but I didn't find a guide, I read the faq and some examples but I want a reference guide... See FAQ item 1.7. Tell me if the pygtk is very unlike tkinter... I used

Re: [pygtk] Specifying an alternate color for odd numbered rows inTreeview

2003-03-12 Thread James Henstridge
CRIBBSJ wrote: I searched the archives, docs, and faq, but did not find the answer to this. I am using treeview and liststore in an application. I have 'rules-hint' turned on so that I am getting every other row in a different color. The only problem is that the alternate color is a dull gray.

Re: [pygtk] gtk/pango string width problem: needs realize?

2003-03-12 Thread James Henstridge
george young wrote: [gtk+-2.2.1, pygtk-1.99.15, python 2.3a1] I want to have an Entry change it's width to exactly track the width of it's string contents. What I have *almost* works: after I click on the widget and change something, it's fine. But initially only part of the string is shown.

[pygtk] GtkTree{Model,Store} API additions in PyGTK.

2003-03-11 Thread James Henstridge
This email describes the API additions that have been made to the GtkTreeStore and GtkListStore classes in PyGTK in order to make them more friendly to Python programmers. It is cc'd to the GTK# mailing list at the request of one of the developers, but should mainly be useful to Python

Re: [pygtk] GObject reference handling

2003-03-06 Thread James Henstridge
James Henstridge wrote: If anyone on the list has experience with the Python cycle GC, I would appreciate it if you could read over my reasoning, and hopefully spot any obvious mistakes. If I can get this working, I would like to apply it for the next pygtk release. Okay. I found the problem

Re: [pygtk] TreeList check boxes

2003-03-06 Thread James Henstridge
Jay Graves wrote: I am trying to have a TreeList with check boxes in the TreeViewColumn If you don't know what I mean look at the gconf-editor and click around, you will see one. Right now I have: self.keyListModel = gtk.ListStore(gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_BOOLEAN)

Re: [pygtk] pyorbit-1.99.3/configure

2003-03-05 Thread James Henstridge
Bowie Owens wrote: Hi, I had some trouble with the configure script that comes with pyorbit on our Alpha at work. The problem is ./libtool --config reports export_dynamic_flag_spec=. This causes sed to exit with an error in the following line. PYORBIT_LIBS=`echo $PYORBIT_LIBS | sed -e

[pygtk] GObject reference handling

2003-03-05 Thread James Henstridge
I have recently been looking into the problem of disapearing member variables on GObject wrappers: http://bugzilla.gnome.org/show_bug.cgi?id=92955 I have a fairly good idea of why this happens: the cycle GC system thinks that the only references held on the wrapper are part of cycles, as it

Re: [pygtk] fatal problem with import gnome.ui

2003-03-05 Thread James Henstridge
Rob Brown-Bayliss wrote: Hello, I recently installed redhat 8 (fresh install - not upgrade) and then installed the gtk and gnome bindings (1.99.15 and pyorbin 1.99.3) Now when I run an app that previously worked with the 7.2 install of rh I get: Fatal Python error: could not import bonobo.ui

Re: [pygtk] tree/list widget question

2003-02-25 Thread James Henstridge
[EMAIL PROTECTED] wrote: I have a few problems with the list/tree widgets. Before I forget, here is the version info python Python 2.2.2 (#1, Jan 15 2003, 01:45:57) [GCC 3.2.1 20021207 (Red Hat Linux 8.0 3.2.1-2)] on linux2 import gtk print gtk.gtk_version (2, 2, 0) My first

Re: [pygtk] Strange change in event behavior in PyGTK2

2003-02-23 Thread James Henstridge
Bernhard Herzog wrote: While porting Sketch to PyGTK2 I came across a strange change in the behavior of event objects in PyGTK2. The sample program below connects to the button press, motion and release events and stores the event object of the button_press event in an instance variable. In the

Re: [pygtk] Strange change in event behavior in PyGTK2

2003-02-23 Thread James Henstridge
Christian Reis wrote: Would it be correct, according to Python semantics, to pre-copy of the object then? And if so, what are the drawbacks of implementing things that way? The drawback is that a number of GTK APIs simply don't work if you copy the boxed arguments. We used to copy boxed

Re: [pygtk] select_cursor_row

2003-02-18 Thread James Henstridge
Anthony Tekatch wrote: GTK used to have a CList widget with a select_row signal that was sent when a row was click upon. GTK2 only has a TreeView select_cursor_row signal which I cannot get to do anything. I have had to use the cursor_changed signal which emits two signal on the first click

Re: [pygtk] Python and orbit server

2003-02-16 Thread James Henstridge
Xavier Ordoquy wrote: Hi, I would like to know if there is an example of client/server using orbit and in full python. I'm trying to get bonobo server working but I'm failing in generating python from orbit-idl. Any pointer about it ? Currently you need to generate a typelib. There is an

Re: [pygtk] GtkSourceView wrapped

2003-02-08 Thread James Henstridge
Ahmad Baitalmal wrote: Christian, first of all, I appreciate your friendly attitude. Sometimes I just give up on working on a project just because I don't want to deal with the rude comments I get back. On Wed, 2003-01-22 at 02:46, Christian Reis wrote: Hey Ahmad, nice work. I'll let Johan

Re: [pygtk] PIL - PyGTK

2003-02-05 Thread James Henstridge
Andreas Kostyrka wrote: Hi! Is there any easy and fast way to convert from PIL image objects to a pixbuf? Not that I know of. Note that the CVS version of pygtk might help. If you have numpy, you can now get a reference to a numpy multidimensional array representing the pixel data in

Re: [pygtk] gtk.gdk.Image from a gtk.Image

2003-02-04 Thread James Henstridge
Pablo Endres wrote: How do I obtain a gtk.gdk.Image?? I'm trying to paint an image on a Drawing Area with DA.draw_image I can't use a gtk.Image. Any ideas on another way of painting it or to obtain this object? I checked the FAQ and the tutorial. Int the first there is nothing usefull and

Re: [pygtk] Freezing a treeview

2003-02-04 Thread James Henstridge
Jesse Pavel wrote: Hello, I'm using a TreeView to display a list backed by a ListStore, and make many changes to the store at one time: how do I freeze and thaw the view to speed up these actions? I've seen the freeze_notify/thaw_notify methods in GObject, and the

Re: [pygtk] Changing fonts in pygtk 1.9.x

2003-02-04 Thread James Henstridge
Pablo Endres wrote: I'm trying to change the font size in pygtk-1.9.xWin32 because the default is absolutly to big, but it is not described in the FAQ or tutorial. I tryed changinf the gtkrc file.. but it doesn't do a thing. Create a .gtkrc file (in your $HOME directory, or maybe the

  1   2   3   4   5   6   7   >