Re: [pygtk] seg fault when using show_all()

1998-12-22 Thread James Henstridge
I just tried your code with my checkout of gtk, and it worked fine. I guess it is a bug in your copy of GTK. Try getting a newer one. James Henstridge. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Mon, 21 Dec 1998, David M. Cook wrote: I'm getting a seg fault when

Re: [pygtk] New to the list and list archives

1999-01-10 Thread James Henstridge
at in gnome-python are: pygnome/generate/zvt.defs pygnome/zvtmodule.c pygnome/gnome/zvt.py James Henstridge. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Thu, 7 Jan 1999, J.W. Bizzaro wrote: Sam Tannous wrote: All, I think we need to keep a list of real

[pygtk] test of mailing list after sendmail upgrade

1999-01-20 Thread James Henstridge
ignore this message -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Re: [pygtk] can't compile

1999-02-02 Thread James Henstridge
. When it is ready, I will tag it (probably with GNOME_PYTHON_0_99) and make new tarballs. James Henstridge. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Tue, 2 Feb 1999, Jim Joseph wrote: I am trying to compile pygnome with gnome-libs .99.5 and I am getting the following

[pygtk] New snapshot of pygtk

1999-02-02 Thread James Henstridge
with this snapshot, I will release it as pygtk-0.5.10. Note that if you are building it out of CVS, you may want to apply my automake-1.4 patches to get the Makefile.in's to build correctly. They are in gnome-python/am-changes on the server. James Henstridge. -- Email: [EMAIL PROTECTED] WWW

Re: [pygtk] Types in pygtk

1999-02-17 Thread James Henstridge
). Apparantly it does such conversions and also string - font conversions. I may also look at implementing the nullok tag for arguments in the .defs files (which would fix the tooltips problem you bring up). James Henstridge. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On 18

Re: [pygtk] self.name vs. self['name'] in subclasses

1999-02-18 Thread James Henstridge
method when this happens. James Henstridge. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Thu, 18 Feb 1999, Aaron Optimizer Digulla wrote: Quoting James Henstridge [EMAIL PROTECTED]: Just as an idea, what would people think about using the __getattr__ and __setattr__

[pygtk] New snapshot of pygtk

1999-02-18 Thread James Henstridge
the final 0.5.11 once I propagate some of these useful features to the GNOME portion. The new release is available at ftp://ftp.daa.com.au/pub/james/pygtk-SNAP-19990219.tar.gz Ah well, I'm off to the free Custard concert down at UWA now. James Henstridge. -- Email: [EMAIL PROTECTED] WWW: http

Re: [pygtk] new snapshot of pygtk and gnome-python

1999-02-23 Thread James Henstridge
Probably just have to revert to the old way. Convert getattr(self, i) to "self.get_data(i)" and setattr(self, i, a) to "self.set_data(i, a)" James Henstridge. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Tue, 23 Feb 1999, Sam Tannous wrote: So

Re: [pygtk] 1:1 mapping between C and Python objects

1999-02-23 Thread James Henstridge
of stuff to pygtk. Also, currently people can use the lower level _gtk module to write GTK programs (and I know some people do use it -- they see it as a good way of prototyping interfaces that can then be translated to C very quickly). I wouldn't want this ability to be lost in any changes. James

[pygtk] Announce: gnome-python-0.100 and pygtk-0.5.11

1999-02-24 Thread James Henstridge
for all the other GC attributes). There are a few small bug fixes in gnome-python (_zvt module was not loading correctly). The releases are available at ftp://ftp.daa.com.au/pub/james/python/ James Henstridge. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ To unsubscribe: echo

Re: [pygtk] I can't make work set_active

1999-02-25 Thread James Henstridge
, at the time when you call set_active(), had you added any pages to the property box? My guess is that the segfault was caused because there wasn't an `active page'. James Henstridge. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Thu, 25 Feb 1999 [EMAIL PROTECTED] wrote

Re: [pygtk] gnome-python in 1.0 pre

1999-02-25 Thread James Henstridge
Yeah I know ... I put it there. Anyhow, you aren't supposed to be looking in that directory right now :) The copy in /pub/GNOME/sources/latest is the same, except for the version number. James Henstridge. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Thu, 25 Feb 1999

[pygtk] GTK+ 1.2 out !!!

1999-02-26 Thread James Henstridge
Just in case you wanted to know, gtk+ 1.2 is out not. I doubt that anything drastic changed in the last few days, so pygtk-0.5.11 should do the trick. James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Re: [pygtk] Pygtk themes.

1999-02-26 Thread James Henstridge
the build directory and typing ./libtool --version). If it is less than 1.2d that would be your problem. If you aren't using a i386 linux system, try copying the libtool, ltmain.sh and libtoolize scripts from a recent gtk+ to the imlib and gtk-engines packages and rebuilding. James Henstridge. -- Ema

Re: [pygtk] Pygtk themes.

1999-02-27 Thread James Henstridge
branch until gtk 1.3 has stabilised a bit). James Henstridge. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Sat, 27 Feb 1999, Michael Hudson wrote: On Sat, 27 Feb 1999, James Henstridge wrote: That is a truely wierd problem. May I ask what versions of glib, gtk

[pygtk] glib-1.3 and gtk+-1.3 branches (fwd)

1999-03-01 Thread James Henstridge
For those using CVS and wondering how to switch over to the stable 1.2 branches of glib and gtk+, here is the information I got off gnome-hackers. If you don't use CVS, ignore this message. James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ -- Forwarded message

Re: [pygtk] How to make distribution files for a pygnome program ??

1999-03-02 Thread James Henstridge
. It also helps with install/bytecompiling of python modules. If you have any further questions about it, send another message. James Henstridge. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Tue, 2 Mar 1999 [EMAIL PROTECTED] wrote: Hi, I'm getting ready to release

Re: [pygtk] How to use help

1999-03-02 Thread James Henstridge
for your program. James Henstridge. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Tue, 2 Mar 1999 [EMAIL PROTECTED] wrote: Does somebody has a simple of how to use help in gnome. I see all the function are in help.py but I can't figure out how to call them

[pygtk] BOUNCE pygtk@daa.com.au: Non-member submission from [Johann Spies jhspies@futurenet.co.za] (fwd)

1999-03-03 Thread James Henstridge
A post from a non list member (or member posting from different account. James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ -- Forwarded message -- Date: Wed, 3 Mar 1999 17:10:00 +0800 (WST) From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: BOUNCE

Re: [pygtk] How to use help

1999-03-08 Thread James Henstridge
The argument to UIINFO_HELP is just a single word. So to add gnumeric's help to your help menu, you would use UIINFO_HELP. The gnome libraries will handle the actual file locations for you. James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Mon, 8 Mar 1999 [EMAIL

Re: [pygtk] Using threads with glibc2, pygtk and gtk+ 1.2

1999-03-09 Thread James Henstridge
AFAIK, in gtk+-1.2, all that is needed for threading is to link with libgthread, and use gdk_threads_enter() and gdk_threads_leave() to mark code that calls GUI functions. So it would be necessary to export these two functions to python. As well as this, it would be necessary to tell the

[pygtk] Near to release of new gnome-python/pygtk

1999-03-12 Thread James Henstridge
I am close to releasing the new version of gnome-python and pygtk. Here is a list of what has changed: * gtkmodule.c: added optional support for not catching exceptions in callbacks. This way it should be a lot easier to debug a pygtk program with pdb. *

Re: [pygtk] [ANNOUNCE9 PySol 2.10 with very alpha gnome-support

1999-03-12 Thread James Henstridge
antialiased or normal canvas? Maybe you could try each one and see which gives better performance. James Henstridge. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Thu, 11 Mar 1999, Markus F.X.J. Oberhumer wrote: People might be interested that the latest source code version of my

Re: [pygtk] Near to release of new gnome-python/pygtk

1999-03-12 Thread James Henstridge
sformation 6-tuple is (w,x,y,z,0,0). I think that is enough maths for a bit. The affine module should be enough for most people. James Henstridge. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Fri, 12 Mar 1999, David M. Cook wrote: On Fri, Mar 12, 1999 at 05:48:21PM

Re: [pygtk] RadioMenuItem question

1999-03-18 Thread James Henstridge
For radio menu items, it is best to keep a reference to each (or use the GtkItemFactory.get_widget), and look at the active attribute. Basically the radio_menu_item_group is a singly linked list. I have not exposed this for creation of radio items because I am not sure what happens if you give

Re: [pygtk] Multithreading

1999-04-08 Thread James Henstridge
d when you want to call GTK routines from another thread (ie. not from a signal handler or other callback), call threads_enter() before and threads_leave() after. If no one sees any bugs in this code, I will release it soon. James Henstridge. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com

Re: [pygtk] drawing stuff using pygtk

1999-04-15 Thread James Henstridge
. For this your program would require gnome-libs and gnome-python though. James Henstridge. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Thu, 15 Apr 1999, Fuming Wang wrote: Thanks James! I was able to get GdkColor like you descibed except the method I was trying to use

Re: [pygtk] new snapshot of pygtk

1999-04-21 Thread James Henstridge
This is a bit difficult, as there doesn't seem to be anywhere to pass in a user_data argument, that is used in pygtk to keep a reference to the python function. James Henstridge. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Wed, 21 Apr 1999, David M. Cook wrote

Re: [pygtk] how to get widget size?

1999-04-21 Thread James Henstridge
You would need to access the allocation member of the GtkWidget class, which is currently not wrapped. Expect to see it in pygtk-0.6.0 James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Wed, 21 Apr 1999, Rick Ree wrote: This may be a dumb question, but how can you

Re: [pygtk] new snapshot of pygtk

1999-04-21 Thread James Henstridge
(and that is before you add the extra function to the library :) James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Wed, 21 Apr 1999, David M. Cook wrote: On Thu, Apr 22, 1999 at 10:37:53AM +0800, James Henstridge wrote: This is a bit difficult, as there doesn't seem to be anywhere

Re: [pygtk] new snapshot of gnome-python (new features!)

1999-04-22 Thread James Henstridge
snapshot I released, you could just use that. James Henstridge. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Thu, 22 Apr 1999 [EMAIL PROTECTED] wrote: Hello, have just tried a CVS-checkout of gnome-python. I get errors rigth when i run autgen.sh. This is my first try

[pygtk] ANNOUNCE: new release of pygtk-0.6.0 and gnome-python-1.0.2

1999-04-24 Thread James Henstridge
at ftp://ftp.daa.com.au/pub/james/python/ Also, gnome-python is mirrored on ftp.gnome.org, and pygtk will soon be on ftp.gtk.org. They will both be on ftp.python.org soon. James Henstridge -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ To unsubscribe: echo "unsubscribe&qu

[pygtk] BOUNCE pygtk@daa.com.au: Non-member submission from [Janne Lof jlof@mail.student.oulu.fi] (fwd)

1999-04-28 Thread James Henstridge
This list post bounced. Remember that you have to use the same address to post as the address which mail is sent to (this was to fix the spam problems on the list -- I still get one or two spams bouncing a fortnight). As for a GL area wrapper, I remember someone talking about doing a wrapper a

Re: [pygtk] coredump in pygtk

1999-05-11 Thread James Henstridge
The problem is something to do with dynamic linking. I am sure of that. When imlib can't load an image with one of the compiled in image libraries, it falls back on the imagemagick or netpbm. If imlib fails to dynamically load the image loading code for example, this is a case when it will fall

Re: [pygtk] Adding new functionality to pygtk

1999-05-12 Thread James Henstridge
pygtk has not used swig for a while. I now use some .defs files like those used to generate the guile and perl bindings. If you want to see an example of wrapping up an addon widget for use with pygtk, I suggest you look at the wrapper for the zvt library in gnome-python. Note that

Re: [pygtk] coredump in pygtk

1999-05-13 Thread James Henstridge
pygnome programs when using pixmap themes has disappeared. I suppose the question is, why did (presumably Guido) decide that loading with the RTLD_GLOBAL flag was a bad idea? Bill James Henstridge wrote: I was just wondering about this problem. I personally use python 1.5.1 (I haven't

Re: [pygtk] parameters and events

1999-05-17 Thread James Henstridge
If the normal signature for the signal is: func(canvas_item, event) then if you connect the signal with: item.connect("event", func, some_extra_arg) the handler will be called with the signature func(canvas_item, event, some_extra_arg) You can add as many extra arguments as you want.

Re: [pygtk] undefined symbol: g_thread_init

1999-05-23 Thread James Henstridge
'm running the stock python installed with Red Hat 5.2 (python-devel is newer though). thanks for the help... Miles James Henstridge wrote: Could you post the output of "gtk-config --libs gthread" and the output of "python -c 'import thread'"? This would be helpf

Re: [pygtk] undefined symbol: g_thread_init

1999-05-24 Thread James Henstridge
Could you post the output of "gtk-config --libs gthread" and the output of "python -c 'import thread'"? This would be helpful in diagnosing the problem. James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Sat, 22 May 1999, mmc wrote: Hi - I'm attempting to

Re: [pygtk] gnome canvas seg fault

1999-05-24 Thread James Henstridge
Usually the procedure is to create the smallest example that causes this problem, and submit it to bugs.gnome.org. If you don't know the C bindings for GTK/GNOME very well, I can translate a python example to C that can be atached to the bug report. It is probably not a good idea to send a

Re: [pygtk] gnome canvas seg fault

1999-05-24 Thread James Henstridge
line); + /* If there are arrowheads, check the distance to them */ if (line-first_arrow) { I will apply this patch to the CVS tree, and it will go into gnome-libs-1.0.10. James Henstridge. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Mon, 24 May 1999, J.W. Biz

Re: [pygtk] gnome canvas widget bug?

1999-05-24 Thread James Henstridge
It looks like the widgets that don't display correctly are the NOWINDOW ones. That is, they don't have their own X window, and instead draw onto their parent's window. To get around this problem, try putting the NOWINDOW widgets inside GtkEventBox widgets, which basically gives the no window

[pygtk] Re: BOUNCE pygtk@daa.com.au: Non-member submission from [Torsten Landschoff t.landschoff@gmx.net]

1999-05-25 Thread James Henstridge
Just a reminder, you can only post to the list with the mail address you subscribed with (because of the spam problem we were having). After my exams, I may look into setting up a [EMAIL PROTECTED] similar to what redhat has to allow people to register extra email addresses without letting

Re: [pygtk] Re: BOUNCE pygtk@daa.com.au: Non-member submission from [Torsten Landschoff t.landschoff@gmx.net]

1999-05-25 Thread James Henstridge
In python versions 1.5.2, it would load extension modules with the RTLD_GLOBAL flag, so all the symbols resolve nicely. This also has the side effect that two extension modules may step on each other's symbols, so it was changed in 1.5.2. (note that modifying python to use this flag gets

[pygtk] BOUNCE pygtk@daa.com.au: Non-member submission from [Alexei Gilchrist a.gilchrist@cs.waikato.ac.nz] (fwd)

1999-06-01 Thread James Henstridge
Here is a list post that bounced. Just remember that you need to post with the address you subscribed as. James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ -- Forwarded message -- Date: Wed, 2 Jun 1999 07:15:46 +0800 (WST) From: [EMAIL PROTECTED] To:

Re: [pygtk] affine transform

1999-06-01 Thread James Henstridge
translation going for rect's and the like but not rotation or shearing effects Or have I completely missed the point? Many thanks Alexei James Henstridge wrote: Here is a list post that bounced. Just remember that you need to post with the address you subscribed as.

Re: [pygtk] working with styles

1999-06-03 Thread James Henstridge
To copy a style, use the style's copy() method. THen using get_style() and set_style() you should be able to modify styles as much as you want. I don't have a python example of this, but there is an example of doing this in my gnorpm package (specifically the checksig.c file). James. -- Email:

Re: [pygtk] syntax coloring

1999-06-09 Thread James Henstridge
You get a GdkColormap object with the get_colormap() method of a widget. From there you can call the colourmap's alloc method in one of two ways: colormap.alloc('blue') colormap.alloc(0, 0, 0x) As for the GtkText widget, you have to delete some text and reinsert it to change its colour.

Re: [pygtk] Radio button box

1999-06-11 Thread James Henstridge
Take a look at the radio button example in testgtk.py. It should give you an idea how to do it. For the first button, you create it with GtkRadioButton(None, "label"), and the rest with GtkRadioButton(button1, "label") where button1 is one of the other buttons in the group. James. -- Email:

Re: [pygtk] Getting X Window / pixmap ID

1999-06-28 Thread James Henstridge
Currently I have not exposed any of the X related bits in GDK, so the answer is no. I may be able to add support though. What do you need the X window ID for? James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Mon, 28 Jun 1999, Mitch Chapman wrote: Sorry, I should

Re: [pygtk] Getting font info.

1999-06-30 Thread James Henstridge
There are a few ways of going about this. If the list is not very big, you can get gtk to automatically resize a column with the GtkCList.set_column_auto_resize(col) method. If you want to find the width of a particular piece of text and you have a reference to the font object

[pygtk] BOUNCE pygtk@daa.com.au: Non-member submission from [David Arnold arnold@dstc.edu.au] (fwd)

1999-06-30 Thread James Henstridge
This message bounced because it came from a non member address. If you want to post, you must post from the address you subscribed as. James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ -- Forwarded message -- Date: Wed, 30 Jun 1999 16:42:07 +0800 (WST)

[pygtk] Re: ORBit stuff

1999-06-30 Thread James Henstridge
AFAIK, there are no ORBit bindings for python yet (at least not in CVS). The pyIDL module in the GNOME CVS tree is simply a wrapper for the IDL library. I think it was going to be used for the C++ IDL compiler. If there are python ORBit bindings, I would love to know where they are as well.

Re: [pygtk] Getting font info.

1999-06-30 Thread James Henstridge
If you only want to do the sizing once, a more efficient way would be to add all the rows and call the GtkCList.columns_autosize() method which will resize all the columns to the optimal widths without causing them to resize every time a cell is changed. James. -- Email: [EMAIL PROTECTED] WWW:

Re: [pygtk] How do I display an image on a Gnome Canvas?

1999-07-02 Thread James Henstridge
You need to render() the image before displaying it. So after the "im = ..." line, add "im.render()", or im.render(width, height) if you want to change its size. James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Thu, 1 Jul 1999, Travis Oliphant wrote: I have just

Re: [pygtk] Putting a CList inside a ScrolledWindow

1999-07-04 Thread James Henstridge
You can use the GtkPaned.set_position() method to set the initial position of the handle. So if you want the clist to be 100 pixels wide, use "hpaned.set_position(100)" (assuming the clist is in the left pane). If you are talking avout vertical size of the hpaned widget, it is probably best to

Re: [pygtk] Problem with gtk.events_pending

1999-07-05 Thread James Henstridge
I have heard about this problem before, and am looking into it. It only seems to occur when thread support is enabled (note that no threads need be created for the problem to occur). I don't have a solution at present. James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/

Re: [pygtk] Putting a CList inside a ScrolledWindow

1999-07-05 Thread James Henstridge
Call the size_request() method on the clist, which will return the optimal height/width that the clist would use. This should give you the width of the clist. James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Mon, 5 Jul 1999, Harry Henry Gebel wrote: James

Re: [pygtk] create_bitmap_from_data

1999-07-10 Thread James Henstridge
That function is expecting a string instead of raw bits. You could simply pass the list through the following code: data = string.join(map(chr, data), '') As for cursors, you can only use 2 colour bitmaps -- X does not support using pixmaps for cursors. I don't think there is any way to get

[pygtk] BOUNCE pygtk@daa.com.au: Non-member submission from [Remi Delon remid@morpho.com] (fwd)

1999-07-12 Thread James Henstridge
Another bounced message. I can't say what the problem is without seeing the problem code though. James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ -- Forwarded message -- Date: Tue, 13 Jul 1999 11:00:01 +0800 (WST) From: [EMAIL PROTECTED] To: [EMAIL

[pygtk] Changes to pygtk

1999-07-15 Thread James Henstridge
While looking at adding some numpy support to pygtk, I took a look at their arrayobject.h header that is used by other extensions to add numpy support. It looked like a good idea, so I wrote a similar header pygtk.h for the _gtk module. You can view the header at:

Re: [pygtk] Adding images to the GNOME canvas

1999-07-16 Thread James Henstridge
I will fix this in the next release. James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Fri, 16 Jul 1999, Paul Clifford wrote: The GNOME canvas expects an object of GdkImlibImage (as returned by _gdkimlib.gdk_imlib_load_image) when adding an image and I'm currently

Re: [pygtk] Shaped icons with GnomeIconList

1999-07-16 Thread James Henstridge
This problem can be fixed by using python-1.5.1. It is cased because the dynamic libraries that are loaded by gdk_imlib to load images expect gdk_imlib's symbols to be visible in the main executable. This was no problem with python = 1.5.1, since extension modules were loaded with the

Re: [pygtk] New thread unlock code seems broken

1999-07-18 Thread James Henstridge
Yes that is a mistake. I have fixed it in CVS now. The gdk_threads_enter() functions should not be called from within the gtk mainloop anyway, so that code was broken. In other news, I have added a wrapper for gtkglarea to pygtk. There are a few examples in the examples/gl directory,

Re: [pygtk] New thread unlock code seems broken

1999-07-19 Thread James Henstridge
wrote: On Mon, Jul 19, 1999 at 02:08:02PM +0800, James Henstridge wrote: In other news, I have added a wrapper for gtkglarea to pygtk. There are a few examples in the examples/gl directory, including a translation of the mesa gears demo. To use it, you will also need the PyOpenGL package

Re: [pygtk] ANNOUNCE: Python/ORBit Bindings

1999-09-10 Thread James Henstridge
Those bindings look pretty good. It would be nice if you made them a bit easier to configure though. After fixing the paths, the testserver/testclient seemed to work quite well. It looks like it has lots of potential. Getting it to use the interface repository (which I hear is working in the

Re: [pygtk] Problem with GtkExtra and input_add

1999-09-18 Thread James Henstridge
I will send in a bug report to the GTK guys about this, so they can fix it. I would expect that the bug falls under the same category as the other threading related ones found earlier on the list. James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On 19 Sep 1999, Andreas

Re: [pygtk] GConf

1999-09-21 Thread James Henstridge
I don't know about how soon there will be bindings -- gconf is still quite new, and Havoc may end up changing the interfaces a bit as it develops. But it should be in gnome-python at some point. James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Tue, 21 Sep 1999, J.W.

Re: [pygtk] libglade unknown widget class warnings

1999-09-21 Thread James Henstridge
I was trying to work out what to do about the gnome extensions in libglade. I think it would be best if there is only one libglade module (so that we don't run into problems with binary packages). What I was thinking of doing was creating a simple _libgladegnome module as part of gnome-python

[pygtk] glade python code generator

1999-09-21 Thread James Henstridge
Bill Allen has been putting together a python code generator for glade which some of you may be interested in. It is available at: http://www.serve.com/ballen/glc/glc.html We are looking at including it with future versions of pygtk. It is not complete yet, but it should do simple

Re: [pygtk] GtkTreeItem boggle

1999-10-09 Thread James Henstridge
dependency. James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On 9 Oct 1999, Hrvoje Niksic wrote: James Henstridge [EMAIL PROTECTED] writes: Now in order to have the same python object refer to a particular gtk object all the time, the gtk object would need to hold

[pygtk] ctree example (was: BOUNCE pygtk@daa.com.au: Non-member submission from [Brian Kelley kelley@bioreason.com])

1999-10-12 Thread James Henstridge
This message just bounced because the the address was not in the mailing list. It may be interesting to some people who are looking for a ctree example. James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ -- Forwarded message -- From [EMAIL PROTECTED] Wed

Re: [pygtk] gdk_draw_*()

1999-10-15 Thread James Henstridge
Those functions are already implemented. The list of drawing functions implemented is: filter(lambda x: x[:5]=='draw_', dir(gtk)) ['draw_arc', 'draw_array', 'draw_gray_image', 'draw_line', 'draw_lines', 'draw_pixmap', 'draw_point', 'draw_points', 'draw_polygon', 'draw_rectangle',

Re: [pygtk] Greyscale images with imlib

1999-10-18 Thread James Henstridge
I don't know if it does grey scale images (it may convert them to 24 bit RGB internally if you load one from a file). The create_image_from_data() routine expects 24-bit RGB image data as well. If all you want to do is display greyscale data to the screen, you could use the gdkrgb code (which

Re: [pygtk] libglade and clist problem

1999-10-19 Thread James Henstridge
The select_row signal of the clist widget takes 4 arguments (like the error message says). The definition of the signal handler should be something like: def some_func(clist, row, column, event): ... James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Tue, 19

Re: [pygtk] Re: how to kill run_and_close()

1999-10-23 Thread James Henstridge
', delete_event) James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Fri, 22 Oct 1999, Jozsa Kristof wrote: On Fri, Oct 22, 1999 at 09:39:43AM +0800, James Henstridge wrote: The run_and_close() routine creates another mainloop to run the dialog. This mainloop

RE: [pygtk] Greyscale images with imlib

1999-10-23 Thread James Henstridge
function, the keyword for the column spacing is column_spacing, and not col_spacing) Remi. -Original Message- From: James Henstridge [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 21, 1999 6:36 PM To: [EMAIL PROTECTED] Subject: RE: [pygtk] Greyscale images with imlib

Re: [pygtk] Re: how to kill run_and_close()

1999-10-24 Thread James Henstridge
If you remove the line: win.connect("delete_event", mainquit) Does it make any difference? When the WM decoration is used to close the window, the default action will be taken (ie. destroy the widget), and the mainquit will be executed anyway. The call to create a GnomeAbout() widget and call

Re: [pygtk] New signal

1999-10-25 Thread James Henstridge
If you are inside the gtk main loop, timeouts should be getting serviced correctly. If you are not in the gtk main loop, then timeouts will not get serviced on time (they will be called next time you get into the main loop with a call to mainloop() or mainiteration()). I don't know about the

[pygtk] BOUNCE pygtk@daa.com.au: Non-member submission from [David Bustos david@alex.caltech.edu] (fwd)

1999-10-31 Thread James Henstridge
Remember that you can only post with the address you subscribed with. In answer to your question, can you do something like: def button_press(clist, event): if event.button == 3: # check for right mouse button res = clist.get_selection_info(event.x, event.y)

Re: [pygtk] Different colours for different buttons

1999-01-02 Thread James Henstridge
The buttons are most likely sharing the same style object. To get around this, use code like: # get a copy of the style object ... style = button.get_style().copy() style.whatever = somevalue button.set_style(style) Alternatively, use: button.set_name('button_name') And have an rc

Re: [pygtk] Glade and pygnome

1999-01-02 Thread James Henstridge
Someone did some work on a python code generator for glade. I posted a message about it to this list a while back. Here is the contents of that message: Bill Allen has been putting together a python code generator for glade which some of you may be interested in. It is available at:

Re: [pygtk] Why canvas-example.py doesnt work with in antialiased mode ?

1999-01-03 Thread James Henstridge
I am not sure about the problem with the canvas example program not working with aa canvas. As for rotation, it does not fully work in non aa mode. Specifically, it will rotate the position of the shape, but may not rotate the actual canvas item (try an image or text item). The aa canvas will

Re: [pygtk] _PyGtk_API/PyGtk_New

1999-11-07 Thread James Henstridge
If you are writing a wrapper for an extra widget library using the pygtk.h header file, you will need to call the init_pygtk() function (defined as a macro in the header file) in your module initialisation function. James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On

Re: [pygtk] applet's icon w/transparency

1999-11-09 Thread James Henstridge
Doing proper transparency is difficult. If you just want to draw a shaped pixmap onto a square tile, that is much easier. You would use something like: import gtk, GdkImlib im1 = GdkImlib.Image('greytile.png') pix, mask = im1.render() im2 = GdkImlib.Image('shapedimage.png') tmppix,

Re: [pygtk] applet's icon w/transparency

1999-11-09 Thread James Henstridge
A few corrections ... On Tue, 9 Nov 1999, James Henstridge wrote: Doing proper transparency is difficult. If you just want to draw a shaped pixmap onto a square tile, that is much easier. You would use something like: import gtk, GdkImlib im1 = GdkImlib.Image('greytile.png

Re: [pygtk] A whole mess of little questions/comments :)

1999-11-09 Thread James Henstridge
If you have a reference to the toplevel, you can just call its destroy() method. This will remove it from screen and destroy it. Any references to the widget you still have will still be valid, as GtkWidgets are reference counted objects. Of course, if you have connected a handler to the

Re: [pygtk] A question for Python Gurus

1999-11-12 Thread James Henstridge
zvt supports ANSI colour escape sequences. If you pass the escape sequences to the zvt widget, it will render them correctly. There should be lots of docs on this somewhere on the net. James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Fri, 12 Nov 1999, Hassan Aurag

Re: [pygtk] Threads with Gtk?

1999-11-16 Thread James Henstridge
You should be able to use python threading without problems. Just remember that you have to acquire the GTK thread lock with threads_enter(), and release it with threads_leave() afterwards, when you do any GTK calls. Note that you don't need to acquire the gtk thread lock from within signal

Re: [pygtk] Stupid focus question

1999-11-17 Thread James Henstridge
There is a GtkWidget.grab_focus() method to grab the focus for a widget. You may want to connect to the enter_notify_event to make the terminal grab focus when the cursor enters the terminal window. The other option is to remove focusability of some other widgets with

Re: [pygtk] Problem with recognizing class GnomeApp

1999-11-20 Thread James Henstridge
What order did you compile things in? If you want gnome support in the libglade wrapper found in gnome-python, you need to compile gnome-libs then libglade and then gnome-python (libglade only builds gnome support if gnome-libs is installed, and gnome-python will only build libglade-gnome

Re: [pygtk] PyGNOME problem / GnomeApp

1999-11-21 Thread James Henstridge
No. That version did not have the glade/gnome support module. It just means they didn't include the 1.0.50 in the distribution (maybe because it was released after their cutoff date). James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Sun, 21 Nov 1999, Michael

Re: [pygtk] drag 'n drop

1999-12-06 Thread James Henstridge
take a look at the dnd example. I think it is in examples/simple. There is also some dnd test code in examples/testgtk (if you have the gnome-python files, this will be in pygtk/examples/...) James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Mon, 6 Dec 1999 [EMAIL

Re: [pygtk] gnomeuimodule.c error?

1999-12-07 Thread James Henstridge
You must have an ancient version of gnome-libs :) Try installing gnome-libs-1.0.5x on your system. James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Tue, 7 Dec 1999, Javi [iso-8859-1] Román wrote: I can not compile:

Re: [pygtk] Pygtk: gtk_gl_area_swapbuffers/swap_buffers

1999-12-08 Thread James Henstridge
I wrote the gtkglarea wrapper based on what was in cvs back in july. It will compile against the version of gtkglarea in CVS, which has the swapbuffers function marked as deprecated, so I used swap_buffers. The gtkglarea guy has not released a new version since then, which is why the current

Re: [pygtk] How do I get the row count from a CList/CTree?

1999-12-15 Thread James Henstridge
You would use the GtkCTree.node_moveto function. You probably want something like: ctree.node_moveto(node, 0, 0.5, 0.0) The second argument is a column number, the third is the vertical row alignment, and the last is the column alignment (I used 0.0 to put the 0th column at the left of the

Re: [pygtk] PyGTK development status

2000-01-22 Thread James Henstridge
On Sat, 22 Jan 2000, Gerald Gutierrez wrote: Hi all. The last release of pygtk was from a while ago. Previous to that the releases were fairly frequent. Is this because pygtk is fairly complete now and there isn't much more to do, or have things just slowed down around here lately? We

Re: [pygtk] pyglade/libglade ignores default-width/default-height ?

2000-01-31 Thread James Henstridge
I suppose I should put in a message stating that the pyglade module is deprecated. It is probably better to use the libglade module, which uses libglade rather than being pure python. It handles the default_width and default_height attributes correctly. James. -- Email: [EMAIL PROTECTED] WWW:

Re: [pygtk] button and application

2000-02-10 Thread James Henstridge
How did you start the other application? If you are using os.system() then what you are seing is the correct behaviour -- the parent process suspends until the child dies. If you don't want this behaviour, you will need to do the fork/exec yourself. Something like this: pid = os.fork() if

  1   2   3   4   5   6   7   >