Re: [pygtk] Re: ANNOUNCE: pygtk 0.6.9 and gnome-python 1.4.2

2002-01-05 Thread James Henstridge
James Henstridge wrote: Berthold Höllmann wrote: James Henstridge [EMAIL PROTECTED] writes: New releases of pygtk and gnome-python on the stable branch are now available: Hello, I have problems with the new stable gnome-python. I'm running Python 2.2 final and get segmentation faults

[pygtk] pygtk with pymalloc

2002-01-06 Thread James Henstridge
Just so everyone is aware, stable pygtk will segfault with Python 2.2 if you turn on pymalloc support when compiling python. A build of python without PyMalloc will work fine with pygtk. The next release of pygtk (0.6.10 -- will probably be out in a bit, after seeing if any other obvious

[pygtk] threading support in development pygtk

2002-01-08 Thread James Henstridge
I have added back threading support to pygtk again (mainly based on Sopwith's patch, but with some changes to account for gtk api changes). In order to write a threaded pygtk program, you must configure pygtk with the --enable-thread argument (if everything is working correctly, then this

Re: [pygtk] threading support in development pygtk

2002-01-08 Thread James Henstridge
Michael Gilfix wrote: Just curious what this means... Have things changed and I missed something? Definitely seems the way to go in 0.6.8.. The stable branch of pygtk already does threading in a similar fashion to what has been described earlier in this thread. The main difference is that

Re: [pygtk] threading support in development pygtk

2002-01-10 Thread James Henstridge
Michael Gilfix wrote: So there's no need to worry anymore? Widgets can be accessed from any thread? To the same extent as they could in 0.6.x -- you need to use threads_enter/leave calls. GTK still requires this for Very cool. Is there backwards compat with 0.6.8 though? 0.6.8 is so

Re: [pygtk] ColorSelection demo

2002-01-16 Thread James Henstridge
Michele Campeotto wrote: Here is another demo to be added to examples/pygtk-demo. I'll be translating more stuff from C's gtk-demo to Python... can I continue to post them here (some review to the code would be nice, if it is going to be included in the official tarball)? I have

Re: [pygtk] Help pygtk for py21

2002-01-23 Thread James Henstridge
michele cremasco wrote: Hallo I need the binary package of PyGTK/libglade compiled for Python21 / RedHat 7.2 and also for Python21/win32. Somebody can help me? You may as well compile it yourself. Just make sure you have the python2-devel RPM installed on your system, along with the -devel

Re: [pygtk] Porting PyGTK on Win32

2002-01-24 Thread James Henstridge
Cédric Gustin wrote: Hi Mike, Cedric, does your port have threading support? If so, it'd be a life saver... No, threading is not supported. After much testing, I realized that this not a python related problem but that threading cannot be safely used with gtk+ for win32 library even

Re: [pygtk] GtkWidgets in a GtkListStore

2002-01-24 Thread James Henstridge
Edgar Denny wrote: I can't figure out if its possible to add a GtkWidget to a GtkListStore and render it. Is it possible, and if so how? It is not possible to put a GtkWidget into a treestore/liststore. It is possible to overlay a entry on top of the tree view (there is a demo in gtk-demo

[pygtk] Re: Bug report: pygtk configure file and python version string

2002-01-26 Thread James Henstridge
Thierry Dulieu wrote: Hi, I have just downloaded pygtk-0.6.9 and found a small bug in the configure file: I'm currently using python 2.1.1+ and the version number is not correctly parsed, because of the ending '+' in the version string. Pygtk 0.6.9 is using the standard AM_PATH_PYTHON

Re: [pygtk] [Fwd: pygtk code generator: setter patch]

2002-01-29 Thread James Henstridge
Gustavo J A M Carneiro wrote: -Forwarded Message- From: Gustavo J A M Carneiro [EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: pygtk code generator: setter patch Date: 19 Jan 2002 18:24:54 + The code generator generates only a getter function for GObject

Re: [pygtk] GCC with -ansi option

2002-02-03 Thread James Henstridge
Arjan J. Molenaar wrote: Hi, I'm having some trouble compiling PyGTK from CVS. I get errors like these: /gnome/head/INSTALL/include/glib-2.0/glib/gmessages.h:108: warning: invalid character in macro parameter name The remedy seems to be removing the '-ansi' flag from the CFLAGS

Re: [pygtk] Patch: GtkTreeModel and refenecing objects

2002-02-03 Thread James Henstridge
Arjan J. Molenaar wrote: Hi, I've created a patch that adds a 'leak_references' property to the GenericTreeModel. Turning this feature off (default is on, the old behaviour) will always decrement the refcount on PyObjects. This will prevent memory/refcnt leaks from happening. The Model should

Re: [pygtk] gtk.TextIter

2002-02-03 Thread James Henstridge
Pier Carteri wrote: Hi to all, I'm learning the new gtk2 and in particular the multiline text widgets (TextBuffer TextView Co.) My idea is to see if I can use theese widgets in my app. The app is basically and editor for Python and since now I've used the Scintilla widget that's very cool! So

[pygtk] gtk 2.0 release not too far away.

2002-02-13 Thread James Henstridge
According to Owen's post on gtk-devel-list, the 2.0 release of gtk+ (and associated libraries) is not too far off: http://mail.gnome.org/archives/gtk-devel-list/2002-February/msg00220.html We will most likely not have a pygtk 2.0 release ready by then (although the bindings will still be as

Re: [pygtk] Setting stock items

2002-02-15 Thread James Henstridge
Edgar Denny wrote: I can't figure out how to set stock items in pygtk-1.99.7. I'm attaching a small test code, but it crashes with the error: Traceback (most recent call last): File ./test.py, line 37, in ? if __name__ == __main__: main() File ./test.py, line 34, in main app =

Re: [pygtk] gtk.MessageDialog label

2002-02-18 Thread James Henstridge
Michele Campeotto wrote: I want to use markup in a gtk.MessageDialog label and the best I can come up with is: dialog.vbox.children()[0].children()[1].set_use_markup(gtk.TRUE) There are a couple of fields marked private that I could expose that would allow you to shorten this to:

Re: [pygtk] about the installer from red hat

2002-02-19 Thread James Henstridge
vincy wrote: i would like to add one more language selection in the first page. but i find that all become wrong code in the display. then i find that i dont have the font needed, so i added the font. then those sentences that are stated in the *.mo file will just leave blank. while those

Re: [pygtk] DeprecationWarning: GtkEntry.set_editable()

2002-02-21 Thread James Henstridge
Edgar Denny wrote: When testing code with pygtk-1.99.7 I get lots of messages of the form: ./recipe_win_ui.py:182: DeprecationWarning: self.category_combo.entry.set_editable( gtk.FALSE) Fair enough, the gtk+-1.3 API docs say that gtk_entry_set_editable() is deprecated. However, it says

Re: [pygtk] ctrl c/SIGINT question

2002-03-04 Thread James Henstridge
Lior Kesos wrote: Tried to catch a ctrl-c by - signal.signal(signal.SIGINT, mn.onQuit()) where mn is an instance of class MoveNode: def onQuit (self, *args) : gtk_main_quit () It isn't working and all the documentation I've been reading got me mixed up. Does

Re: [pygtk] ctrl c/SIGINT question

2002-03-04 Thread James Henstridge
Damien Elmes wrote: Sure you can. But the C-c has to be directed at your app, not the terminal it's running in. I run GTK in my own main loop, calling mainiteration(), which also solves this problem. Doing so will most likely slow your app down incredibly (or at least increase its CPU usage

Re: [pygtk] EXPLAIN: _wrap_get_selection_data__get_data

2002-03-14 Thread James Henstridge
Peter Kese wrote: Hi all! I am porting pygtk to windows and have made quite some progress in one afternoon. There is however something that MS Visual C won't compile and even I don't know what that *thing* was supposed to be. Can anyone explain the code and help me make it compilable. Here it

Re: [pygtk] Questions about scrollbars and trees

2002-03-14 Thread James Henstridge
Jon Nelson wrote: I have no choice. I can't use the GtkCTree in this instance at all, and I have tied to Python 1.5.2, gtk 1.2.[6,8] and pygtk 0.6.8 (can't run anything newer because they require either newer version of gtk or python than I can provide). The GtkCTree doesn't support arbitrary

Re: [pygtk] Questions about scrollbars and trees

2002-03-16 Thread James Henstridge
Jon Nelson wrote: On Fri, 15 Mar 2002 14:10:44 +0800 James Henstridge [EMAIL PROTECTED] wrote: Jon Nelson wrote: I have no choice. I can't use the GtkCTree in this instance at all, and I have tied to Python 1.5.2, gtk 1.2.[6,8] and pygtk 0.6.8 (can't run anything newer because they require

Re: [pygtk] Questions about scrollbars and trees

2002-03-18 Thread James Henstridge
Jon Nelson wrote: On Sun, 17 Mar 2002 11:26:29 +0800 James Henstridge [EMAIL PROTECTED] wrote: .. This would produce the following tree: +-node1 | +-node4 | | +-node5 | +-node3 +-node2 .. Cool. I have pretty much everything working with a GtkCTree, now. Thanks! I have a few

Re: [pygtk] Setting the Colors in a ZVTerm

2002-03-19 Thread James Henstridge
Eric Gillespie wrote: This is the second time i've had to deal with this broken interface, this time broken in a different way. See http://www.daa.com.au/pipermail/pygtk/2000-October/000425.html for the first time. What i ended up doing to work around that bug was this: from gnome.zvt import

Re: [pygtk] GtkTextTags and cursor position

2002-03-19 Thread James Henstridge
Pier wrote: Hi, I've a gtkTextBuffer with many tags applied, and I want to know if the cursor is into a region where for example a tag named default is applied: how can I do? As with the Tk text widget, the insertion point is a special mark named insert. You can get a reference to this mark

Re: [pygtk] Adding data to a TreeModel/TreeView

2002-03-20 Thread James Henstridge
Michele Campeotto wrote: Hello, I have a custom TreeModel and a TreeView. I want to add data after they have been created. What should I do beside adding data to my model to make the view notice the change? You need to emit one of the GtkTreeModel signals. If you are inserting rows, you

[pygtk] code generator changes

2002-03-22 Thread James Henstridge
I just checked in some changes to the pygtk code generator to make it a little cleaner and make it easier to extend (it is also about 500 lines shorter than it was before). If anyone has any problems with it, please report them in bugzilla. I have done a fair bit of testing (comparing the

[pygtk] spam filter

2002-03-25 Thread James Henstridge
I have hacked support for doing SpamAssassin checks into the mailman mail pipeline on my system. This is mainly an attempt to reduce the moderation load for this mailing list (which often exceeds 10 messages a day -- more than the real messages on the list). Any message getting a score over

Re: [pygtk] Libglade for Gtk2

2002-03-25 Thread James Henstridge
Ralph Walden wrote: Where can I find the distribution for libglade that works with Gtk2? ftp://ftp.gnome.org/pub/GNOME/earthquake/sources/libglade/ Note that there is a small bug in the signal_autoconnect() wrapper in all devel pygtk releases including 1.99.8, where it is decrefing a

Re: [pygtk] Building on cygwin

2002-03-27 Thread James Henstridge
Brian E Gallew wrote: Then [EMAIL PROTECTED] spoke up and said: First of all, are you talking about porting pygtk on cygwin using XFree (http://cygwin.com/xfree/) or the win32 port of gtk+ (as available from http://www.gimp.org/win32/) ? If you plan to use XFree, things should be xfree.

Re: [pygtk] Building on cygwin

2002-03-27 Thread James Henstridge
Cedric Gustin wrote: P.S. : libtool (which is used by the pygtk distribution) SHOULD be able to create the dll by itself but it requires the AC_LIBTOOL_WIN32_DLL macro to be called in configure.in. This is not the case in pygtk-0.6.9 - only a static library is created. That is interesting

Re: [pygtk] Issue with LC_ALL and layout of an gtk application.

2002-04-05 Thread James Henstridge
VALLIET Manu wrote: Hi there. I'm a bit newbie in gtk and python, but I have a strange issue there. I just wanted to play with the layout of my widgets (let's say a progress bar and a button). So I used some gtkalignment: # queue button buttonbox = GtkHBox()

Re: [pygtk] C access to objects

2002-04-12 Thread James Henstridge
James Cassidy wrote: Hi, I'm new to this list, and I'd first just like to say I appreciate all the work the authors have done on the PyGTK bindings, which I use on a regular bases for rapid development. I just have one question: I've reached the point where I'd like to be

[pygtk] ANNOUNCE: pygtk-1.99.9

2002-04-23 Thread James Henstridge
I have just uploaded pygtk-1.99.9. It should be available from: ftp://ftp.gtk.org/pub/gtk/python/v2.0/pygtk-1.99.9.tar.gz ftp://ftp.gnome.org/pub/GNOME/earthquake/sources/pygtk/pygtk-1.99.9.tar.gz A new gnome-python release to work accompany this pygtk release should be ready shortly.

Re: [pygtk] menu item separator

2002-04-24 Thread James Henstridge
Matthew Boedicker wrote: Hello, I'm trying to put horizontal separators in a menu. I tried appending a GtkHSeparator() to the menu, but it didn't work. Can't seem to find anything in the docs or examples. Can someone point me in the right direction? To get a separator, simply create an

Re: [pygtk] Prevent windows from being covered up?

2002-04-26 Thread James Henstridge
Lee Saferite wrote: Hello, How can you translate this bit of C code into Python PyGTK code? (I'm running the CVS version of PyGTK) gdk_property_change(panel-window-window, gdk_atom_intern(_NET_WM_STRUT, FALSE), gdk_atom_intern(CARDINAL, FALSE), 32,

Re: [pygtk] Why not GDK.py?

2002-04-28 Thread James Henstridge
ha shao wrote: I am wondering why the GDK.py, which exist in pygtk .6.x, is not included in pygtk 1.99? I think the constants in the file is still very much needed for gtk2.x. The constants are now in their respective modules (so gtk constants are in gtk, gdk constants are in gtk.gdk module).

Re: [pygtk] Setting Colours

2002-04-29 Thread James Henstridge
Steve McClure wrote: On Mon, 2002-04-29 at 15:46, Janos Blazi wrote: How can I set the colours of a widget in PyGtk? In C I could try GdkColor col; gdk_color_parse (red, col); gtk_widget_modify_bg(widget, GTK_STATE_NORMAL, col); I tried col=gtk.gdk.Color() but this does not seem to

Re: [pygtk] Trouble with GnomePixmapEntry 2

2002-04-29 Thread James Henstridge
Alexei Gilchrist wrote: Here is a simply test prog to show the problem: -- from gtk import * from gnome.ui import * w = GnomePixmapEntry() w.show() box = GnomePropertyBox() box.append_page(w,GtkLabel(image)) box.show() mainloop() Could someone else

Re: [pygtk] Memory usage question

2002-04-30 Thread James Henstridge
Graham Ashton wrote: Hi. I've been experimenting with libglade from Python, and have found that I can use up an awful amount of memory incredibly quickly by destroying and re-creating widgets. I've written a small script that demonstrates it. There is a small window with a label and a button

Re: [PyGtk] Name of the font I use

2002-04-30 Thread James Henstridge
Janos Blazi wrote: Is there a way to find out the name of the font I use (e.g. Nimbus Sans I)? I tried to call font_id but to no avail (and I am not even sure that tha would have been the right call). If you are using the 1.99.x snapshots, simply use the get_family() method of the font

Re: [pygtk] canvas 'window_to_world'

2002-05-04 Thread James Henstridge
Colin Fox wrote: On Sat, 2002-05-04 at 17:05, Matt Wilson wrote: Which version are you using? Oops, sorry about not mentioning it: Python 2.2 pygtk 0.6.6 gnome-python 1.0.53 Try upgrading to gnome-python-1.4.2 (which includes pygtk-0.6.9). James. -- Email: [EMAIL PROTECTED]

Re: [pygtk] PyGTK for Garnome

2002-05-05 Thread James Henstridge
Ross Burton wrote: Hi, At http://myweb.tiscali.co.uk/burtonini/computing you'll find a link to a tarball for Garnome which adds support for the Python bindings to GTK+/GNOME. They should work for others but have only been tested on a Debian Sid machine. Note that Python 2.2 is _required_ by

Re: [pygtk] Alignment question

2002-05-11 Thread James Henstridge
Gary Jaffe wrote: I am new to GTK but have done some programming in python. I am having difficulty getting widgets to be vertically aligned. I have a 2x2 GtkTable and would like the 2 'GtkLabel's on the left side of the table to have their rightmost portion of the text to be adjacent to the

Re: [pygtk] Alignment question

2002-05-12 Thread James Henstridge
Gary Jaffe wrote: Thanks, James. That does the trick. Life is good again :-) I couldn't find the set_alignment method when reading the docs for GtkLables in the GTK reference manual at http://developer.gnome.org/doc/API/2.0/gtk/index.html Is there a better place for me to read about the

Re: [pygtk] Patch to gnome-python...

2002-05-12 Thread James Henstridge
Colin Fox wrote: Hey everyone. How many people are responsible for keeping gnome-python and pygtk up to date? Is it just James, or are there others? I *really* need the window_to_canvas and canvas_to_window functions to be put into the library, as I'm using them in an app that I want to

[pygtk] ANNOUNCE: pygtk-1.99.10 and gnome-python-1.99.10

2002-05-13 Thread James Henstridge
I have just released new versions of pygtk and gnome-python targetted at the GTK/GNOME 2.0 platform. These packages contain python bindings for gtk and various other libraries. You will need python = 2.2 to build these packages. You can download pygtk from either of:

Re: [pygtk] pygtk2 DND

2002-05-14 Thread James Henstridge
Tom Morton wrote: Hi, Does anyone know how to get drag-n-drop working in pygtk2? I've looked at the C docs and the API doesn't appear to have changed much, but drag_data_received is never called. The DnD demo in the pygtk2 examples seems to be broken in the same way. This is probably related

[pygtk] regenerated documentation

2002-05-14 Thread James Henstridge
I regenerated the documentation found at: http://www.gnome.org/~james/pygtk-docs/ The script hasn't changed yet (so it still doesn't list functions, interfaces, boxed types or pointer types), but the defs files in pygtk are now up to date with the 2.0 API, and more of gtk has been

Re: [pygtk] canvas item callbacks

2002-05-15 Thread James Henstridge
Stephen Langer wrote: On Tue, May 14, 2002 at 07:22:52PM -0700, Mathew Yeates wrote: Hmmm, I've run across this also. It turned out that I needed to create a shared library. If the original file is foo.c, compile it to foo.o then create a shared object called foo.so with ld -shared foo.o -o

Re: [pygtk] canvas item callbacks

2002-05-15 Thread James Henstridge
Stephen Langer wrote: On Thu, May 16, 2002 at 12:30:42AM +0800, James Henstridge wrote: In one of the source files for your module you must not define NO_IMPORT_PYGTK (all others, you should define it). You would then need to copy the contents of the init_pygtk() macro to your code

Re: [pygtk] Re: FAQ Question: Snooping keystrokes

2002-05-15 Thread James Henstridge
John Finlay wrote: In theory, you could check which events a widget receives by default with get_events() - note that it is a bitmap and you would have to decode it according to the GTK.py _MASK constants. However, this seems to return 0 for any newly-realized widget. Why?

Re: [pygtk] Re: FAQ Question: Snooping keystrokes

2002-05-15 Thread James Henstridge
Christian Reis wrote: On Wed, May 15, 2002 at 09:37:06AM -0700, John Finlay wrote: In theory, you could check which events a widget receives by default with get_events() - note that it is a bitmap and you would have to decode it according to the GTK.py _MASK constants. However, this

Re: [pygtk] GtkText widget question

2002-05-21 Thread James Henstridge
Christian Reis wrote: On Tue, May 21, 2002 at 04:52:27PM -0400, Gary Jaffe wrote: I am trying to emulate that behavior with pygtk using the GtkText widget. Is this the best way to go about it? I display several lines of text in a monospaced font. When the user clicks on a line I plan to

Re: [pygtk] Copy to X clipboard

2002-05-28 Thread James Henstridge
Michael JasonSmith wrote: On Tue, 2002-05-28 at 16:56, Seth Kurtzberg wrote: My problem is slightly different; I'm copying from a pygtk application to a legacy application using the clipboard. With the code in the selection.py sample file, the middle button paste works but a paste from

Re: [pygtk] Detecting keystrokes

2002-05-28 Thread James Henstridge
Evan Hughes wrote: I'm writing a keyboard grabbing applet to help sufferers of RSI/chronic-pain/carpal-tunnel. The idea is that the applet limits use of the keyboard/mouse to a certain period of time before forcing the user to take a break. I'd like to be able to detect when the user stops

Re: [pygtk] Problem building pygtk-1.99.10

2002-05-31 Thread James Henstridge
Lionel Ulmer wrote: Hi all, I have problem building pygtk-1.99.10 on my box : gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/local/include/python2.2 -Wall -I/usr/local/include/ -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/atk-1.0

Re: [pygtk] Button Connections/I can see Dialogs

2002-06-03 Thread James Henstridge
John J Breen wrote: Hey, New to pygtk and have some questions. In the follwoing code my button connections (cancel button) do not work. It will say 2nd argument must be callable. Also the dialog made in the second function automatically opens (its part of a larger program). I only want

Re: [pygtk] Access to gtk snoop function

2002-06-04 Thread James Henstridge
Graham Ashton wrote: On Sun, 2002-06-02 at 06:50, Seth Kurtzberg wrote: Does anyone know whether the gtk function: gtk_key_snooper_install() is available from within pygtk? No, it's not. I don't know why. I asked a similar question myself a few weeks ago (check the archives

Re: [pygtk] Problem with ExposeEvent changes

2002-06-09 Thread James Henstridge
Matt Wilson wrote: I broke it. Will fix early next week. Matt On Thu, Jun 06, 2002 at 02:10:03PM -0500, Art Haas wrote: Hi. The latest pygtk2 has lost the 'area' field in expose events. Here's the warning that now pops up when I run a drawing example program I have ... And I

Re: [pygtk] Question about Pango

2002-06-12 Thread James Henstridge
Lionel Ulmer wrote: Hi all, I want to add some customisation to the fonts I use in my TextWidgets (I mostly want to have a nice fixed-width font). The only way I found for now was to do the following : font = pango.FontDescription('Courier 12') This gives me a nice fixed width font... But it

Re: [pygtk] GtkMenu.popup() problems

2002-06-12 Thread James Henstridge
Christian Reis wrote: On Tue, Jun 11, 2002 at 04:10:41PM -0400, Edgar Denny wrote: def pos_func(): return 20, 20 menu.popup( None, None, pos_func, 0, 0) Then I get a segfault. I'm not entirely if I need to pass any parameters to the pos_func(). In fact, I think that there may be a bug

Re: [pygtk] GdkImLib: Image(filename) seems to cache

2002-06-18 Thread James Henstridge
Thomas Guettler wrote: Hi! I use GdkImLib.Image(filename) to load and display jpeg files. The picture gets displayed on a window where the user can choose to rotate the image: img=GdkImLib.Image(filename) #(1)... rotate filename with shell script calling image-magic

Re: [pygtk] Standard Dialog: Yes, No, Cancel

2002-06-18 Thread James Henstridge
Thomas Guettler wrote: Hi! Is there a Method/Class for a standard dialog with the usual Yes, No, Cancel buttons? GtkMessageDialog is the preferred widget for this. James. -- Email: [EMAIL PROTECTED] | Linux.conf.au 2003 Call for Papers out WWW:

Re: [pygtk] pygtk ANd pygnome 2

2002-06-19 Thread James Henstridge
Malcolm Tredinnick wrote: On Wed, Jun 19, 2002 at 07:44:41AM +0200, Tom Cato Amundsen wrote: On Wed, 2002-06-19 at 05:03, Malcolm Tredinnick wrote: [...] Since I don't have orbit-python on this box, none of the libgnomeui wrappers were built (I don't know if the orbit-python guys

Re: [pygtk] Some comments

2002-06-21 Thread James Henstridge
Jonathan Blandford wrote: Jonathan Blandford [EMAIL PROTECTED] writes: Hi, I spent the weekend taking a look at the pygtk code while trying to write a widget from scratch. Some comments: K! I sent the wrong patch! You were prolly wondering what I was talking about. Here's

Re: [pygtk] new patch for __gobject_init__

2002-06-23 Thread James Henstridge
Jonathan Blandford wrote: Hi James, I added the ref/unref of the class. Okay to commit this? Looks good. Go ahead and commit. I checked in a modification so that boxed values aren't copied when calling a signal handler now. This means that if you have code that stores the value of a

Re: [pygtk] Trouble with menus and set_sensitive

2002-06-26 Thread James Henstridge
Christian Reis wrote: On Wed, Jun 26, 2002 at 12:43:06PM -0400, Gary Jaffe wrote: The above works fine. Then I tried something like editItem = itemFac.get_item(/File/_Save) but I got an 'AttributeError: get_item' on the first of these last 2 lines. Well, AttributeError menas that

Re: [pygtk] Problem using python2.2

2002-07-01 Thread James Henstridge
Roberto Cavada wrote: Hi all, this scribble.py example (in pygtk-1.99.10/examples/simple dir) does not work if I invoke the python2.2.[01] interpreter (see error report below.) The same example can be loaded if the python interpreter is version 2.1, but it does not work anyway: only an

Re: [pygtk] invalidating gui

2002-07-07 Thread James Henstridge
Collins wrote: On Sat, 6 Jul 2002 22:02:27 -0700 (PDT) icewind [EMAIL PROTECTED] wrote: I have a couple of threads updating the gui (adding lines to a CList, changing text in a textentry area, etc.) The problem is, the widget that was changed doesnt show its updates until some event occurs

Re: [pygtk] xbgtk - an xbase language binding for GTK+ (based onpygtk)

2002-07-09 Thread James Henstridge
Phil Krylov wrote: Hello. I'm posting this here because my project has some source files borrowed from pygtk, and I'd like to ask James Henstridge to check if I violated any copyrights... xbgtk is an XBase-like language object-oriented binding for GTK+ (http://www.gtk.org). At present

[pygtk] pygtk-1.99.11 and gnome-python-1.99.11

2002-07-10 Thread James Henstridge
I have just uploaded pygtk-1.99.11 and gnome-python-1.99.11, which include many bug fixes. PyGTK can be downloaded from one of the below locations: ftp://ftp.gtk.org/pub/gtk/python/v2.0/pygtk-1.99.11.tar.gz http://ftp.gnome.org/pub/GNOME/earthquake/sources/pygtk/pygtk-1.99.11.tar.gz

Re: [pygtk] pygtk2 for cygwin

2002-07-11 Thread James Henstridge
Cedric Gustin wrote: Hi Thomas, I use gcc-2.95.3 from the mingw distribution (http:///www.mingw.org) combined with cygwin for the bash shell and the autotools (autoconf, automake, libtools). I had to slightly patch the current cvs version of pygtk-1.99 to take into account some

[pygtk] list like behaviour for GtkListStore

2002-07-12 Thread James Henstridge
I added a quick modification to the GtkListStore wrapper so the following is now possible: import gtk store = gtk.ListStore(int, int, str, str) store.append() GtkTreeIter at 0x81a8b80 len(store) 1 store[0] gtk.gtk.ListStoreRow object at 0x81a8638

Re: [pygtk] Plugs and Sockets

2002-07-13 Thread James Henstridge
John J Breen wrote: Hey, I am having some trouble getting plugs and sockets to work correctly. I have visited http://www.gnome.org/~james/pygtk-docs/class-gtksocket.html to see the necessary calls I need to make but gtk.mysocket.get_id() does not seem to be working. It doesnt seem to be

Re: [pygtk] pygtk - gtkglext

2002-07-13 Thread James Henstridge
Ben Hines wrote: I assume this is because gtkgl 2.0 does not exist: (no gtkglarea for gtk2) checking for gtkgl-2.0 = 1.99.0... Package gtkgl-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gtkgl-2.0.pc' Perhaps pygtk2 could use the new

[pygtk] Re: list like behaviour for GtkListStore

2002-07-13 Thread James Henstridge
Jonathan Blandford wrote: James Henstridge [EMAIL PROTECTED] writes: I added a quick modification to the GtkListStore wrapper so the following is now possible: import gtk store = gtk.ListStore(int, int, str, str) nice. Can I do 'object' too? Yes. 'object' gets

Re: [pygtk] list like behaviour for GtkListStore

2002-07-13 Thread James Henstridge
Christian Reis wrote: On Sat, Jul 13, 2002 at 12:36:35PM +0800, James Henstridge wrote: I added a quick modification to the GtkListStore wrapper so the following is now possible: import gtk store = gtk.ListStore(int, int, str, str) store.append() GtkTreeIter

Re: [pygtk] List sort question

2002-07-15 Thread James Henstridge
Andrew Burr wrote: All, I am trying to make sort function for my GtkTreeView... ... store.set_sort_func(1, my_sort_func) ... def my_sort_func (store, a, b): model = ?? model.get(b, 0, bb, -1) model.get(b, 0, bb, -1) return strcasecmp(aa, bb) My question is how do

Re: [pygtk] SELECTION_CLIPBOARD in pygtk

2002-07-15 Thread James Henstridge
Christian Reis wrote: Hi there, I'm fumbling with selections in pygtk-0.6 and I've noticed there is no GDK.SELECTION_CLIPBOARD constant - I remember James telling me we should use CLIPBOARD for cut/copy, but I can't seem to find it anyway. Where is it? import gtk

Re: [pygtk] Wrapping custom C GTK-2 objects using pygtk-cvs

2002-07-15 Thread James Henstridge
Nicholas Burlett wrote: I'm attempting to wrap up some custom gtk-2 objects using the cvs version of pygtk. I've tried a number of different ideas on how to go about doing this, but none have worked. I'm not actually sure that anything I've done is correct, so could someone point me in the right

Re: [pygtk] images in a treeview

2002-07-24 Thread James Henstridge
Rob Brown-Bayliss wrote: Hi, Can some one give me a quick demo if placing a pixmaps in a treeview, preferable different pixmaps on each line... The basic idea is that you add a column to your model of type gtk.gdk.Pixbuf, and put pixbuf objects in that column for all the rows in your tree

Re: [pygtk] Relocation error under Mandrake 8.2

2002-07-27 Thread James Henstridge
Don Allingham wrote: Well, I can recompile imlib. This isn't a problem for me. But my last release had over 1500 downloads from sourceforge. It is kind of hard to expect everyone to download source code and recompile GNOME libraries. Most people will discard a program if it doesn't work on the

Re: [pygtk] imlib

2002-07-27 Thread James Henstridge
[EMAIL PROTECTED] wrote: Hi, i am new to python and therefore new to pygtk. I use Gentoo Linux with the newest availabel packages. While trying to write something in python my first try makes me problems. I installed pygtk pygtk-1.99.10 i also have imlib and imlib2 installed. Unfortunately

Re: [pygtk] gtk theme switch

2002-07-29 Thread James Henstridge
Philippe Gendreau wrote: I'd really like to make that work... I settled for updating just the window theme (it's running full screen anyway). I could not find more information than what's in the pygtk tutorial (rc_parse('rc file')). I'd really appreciate it if someone could point me in the

Re: [pygtk] gkdimlib vs gdkpixbuf

2002-07-29 Thread James Henstridge
Stephen Langer wrote: On Sun, Jul 28, 2002 at 10:10:22AM +0800, James Henstridge wrote: What are you doing with GdkImlib that you can't do with the gdkpixbuf wrapper? Recent versions of gdk-pixbuf are correctly linked so that they don't have linking problems when not loaded

Re: [pygtk] treview headers

2002-08-01 Thread James Henstridge
Rob Brown-Bayliss wrote: On Fri, 2002-08-02 at 16:21, James Henstridge wrote: Haven't run into any of these problems myself. Is the treeview packed inside a gtk.ScrolledWindow? If not, try doing that. The tree view should handle scrolling correctly in that case. swin

Re: [pygtk] treview headers

2002-08-02 Thread James Henstridge
Rob Brown-Bayliss wrote: That is weird. Check the glade file to see if there is a GtkViewport between the TreeView and ScrolledWindow. If so, that could be the cause of the problem. If there is, then the GtkViewport will be handling the scrolling, and the TreeView won't handle things

Re: [pygtk] Re: pygtk-1.99.12 (1.2-safe version)

2002-08-02 Thread James Henstridge
Thomas Leonard wrote: For all those wondering why things are the way they are, please see bug #70178: http://bugzilla.gnome.org/show_bug.cgi?id=70178 James explains here why the official version cannot be allowed to coexist with the current stable release. However, if packagers want, I

[pygtk] pygtk parallel install

2002-08-18 Thread James Henstridge
I have just checked in changes to pygtk and gnome-python (both 1.2 and 2.0 branches) to make parallel install easier. Here is a small summary of how it works: 1. each major version of pygtk (1.2, 2.0, etc) installs under: $(prefix)/lib/python?.?/site-packages/gtk-x.y 2. each version of

[pygtk] pygtk docs updated

2002-08-19 Thread James Henstridge
I reran the documentation generation script for the 2.0 docs, and put the documentation up at: http://www.gnome.org/~james/pygtk-docs/ You can also download a tarball of the docs at: http://www.gnome.org/~james/pygtk-docs.tar.gz Included in the tarball is a devhelp toc/index file, so

Re: [pygtk] Typo?

2002-08-20 Thread James Henstridge
Rob Brown-Bayliss wrote: Hi, Is gtk.gdk.Window.set_ittle() a typo? Should it be set_title()? Thanks for the bug report. Fixed in CVS now. James. -- Email: [EMAIL PROTECTED] | Linux.conf.au http://linux.conf.au/ WWW: http://www.daa.com.au/~james/ | Jan 22-25

Re: [pygtk] No menu via ItemFactory

2002-08-20 Thread James Henstridge
Arjan Molenaar wrote: Hi all, I'm having some trouble displaying a menubar that is generated by an ItemFactory. Since my last update (this morning, first update since about two weeks), no menubar is displayed on top of my app. I checked the PyGtk demo app (item factory) and it doesn't show the

Re: [pygtk] keyboard use of tree widgets

2002-08-21 Thread James Henstridge
Rob Brown-Bayliss wrote: On Thu, 2002-08-22 at 14:03, Steve McClure wrote: Spacebar selects the item. right and left cursor keys expand and collapse a non leaf node. Not here it dos'nt. the right and left cursor keysmove right and left through the columns, no collapsing or

Re: [pygtk] keyboard use of tree widgets

2002-08-21 Thread James Henstridge
Rob Brown-Bayliss wrote: On Thu, 2002-08-22 at 14:03, Steve McClure wrote: Spacebar selects the item. right and left cursor keys expand and collapse a non leaf node. Not here it dos'nt. the right and left cursor keysmove right and left through the columns, no collapsing or

[pygtk] ANNOUNCE: pygtk-0.6.10 and gnome-python-1.4.3

2002-08-22 Thread James Henstridge
I have just released new versions of stable pygtk and gnome-python. Among other things, these versions allow parallel installation with the 2.0 versions of pygtk/gnome-python in the same prefix with the same Python version (it has always been possible to install in separate prefixes or with

[pygtk] ANNOUNCE: pygtk-1.99.13

2002-08-25 Thread James Henstridge
I have uploaded a new 1.99.x release of PyGTK at: ftp://ftp.gtk.org/pub/gtk/python/v2.0/pygtk-1.99.13.tar.gz This release is parallel installable with pygtk-0.6.11. There is also a number of reference leak fixes (which may affect you if you are using GtkItemFactory, as brought up on this

Re: [pygtk] ANNOUNCE: pygtk-1.99.13

2002-08-25 Thread James Henstridge
Joe Shaw wrote: On Sun, 2002-08-25 at 10:27, James Henstridge wrote: I have uploaded a new 1.99.x release of PyGTK at: ftp://ftp.gtk.org/pub/gtk/python/v2.0/pygtk-1.99.13.tar.gz Does this contain the gsize/gssize patch I sent a couple of days ago? URL is here: http

<    1   2   3   4   5   6   7   >