[pygtk] ANNOUNCE: gnome-python-1.99.13.tar.gz

2002-08-25 Thread James Henstridge
The new gnome-python tarball is now up at: http://ftp.gnome.org/pub/GNOME/2.0.1/sources/gnome-python/gnome-python-1.99.13.tar.gz If you are upgrading pygtk, you should also upgrade this one (otherwise you may experience some memory leaks when instantiating gnome widgets). The improved

Re: [pygtk] ANNOUNCE: pygtk-1.99.13

2002-08-26 Thread James Henstridge
Jon Nelson wrote: Replying to myself: importing gtk *twice* does the trick. What's going on there? After the first failed import, there is a gtk module registered in sys.modules. The second import appears to succeed, but is not correct. On Mon, 26 Aug 2002 09:05:42 -0500 Jon Nelson [EMAIL

Re: [pygtk] ANNOUNCE: pygtk-1.99.13

2002-08-26 Thread James Henstridge
Joe Shaw wrote: On Sun, 2002-08-25 at 11:52, James Henstridge wrote: Looks like I missed it. Will have to go in the next release. Please go ahead and commit. Bummer. Okay, committed it. In the future, would you like patches sent to the list, put in bugzilla, or both? Bugzilla

Re: [pygtk] Configure error in latest pygtk-2.0 CVS builds

2002-08-29 Thread James Henstridge
Art Haas wrote: Hi. I'm building pygtk-2.0 from CVS, and am now getting an error when the configuration is setting up the Makefiles ... [ ... configure output ... ] configure: creating ./config.status config.status: creating Makefile config.status: creating pygtk-2.0.pc config.status: creating

Re: [pygtk] faking events

2002-08-29 Thread James Henstridge
Rob Brown-Bayliss wrote: Hi. I am having a problem with the gnome canvas redrawing. All works fine until I decide to show or hide some widgets on the canvas, then it seems that the canvas is not redrawing correctly until I mouse over the objects. Sounds like a canvas bug. Federico has a

Re: [pygtk] faking events

2002-08-29 Thread James Henstridge
Rob Brown-Bayliss wrote: On Fri, 2002-08-30 at 16:47, James Henstridge wrote: Well, calling queue_draw() on the widgets might do what you want. Moving the mouse over the widget essentially just changes the state and queues a redraw. It didn't make a difference. The problem seems

Re: [pygtk] ../libtool[1280]: yes: not found.

2002-08-30 Thread James Henstridge
Gansser, Martin wrote: Hi, I tried to compile gnome-python-1.4.4 on hpux 11.00, but get the following error messages: gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/python2.2 -I/opt/gnome/include/gnome-1.0 -DNEE D_GNOMESUPPORT_H -I/opt/gnome/lib/gnome-libs/include

Re: [pygtk] getting started with pygtk2

2002-08-30 Thread James Henstridge
Michael Stenner wrote: I'm interested in switching to pygtk2 (from pygtk 0.x). I'm writing a new program so it's not a porting issue. I'm working on Red Hat 7.3 machines which have python 1.5.2 / pygtk 0.6.9 / gtk 1.2.10 python 2.2 / pygtk 1.99.8 / gtk 2.0.2 I'd really just prefer to pick

Re: [pygtk] pygtk parallel install

2002-08-30 Thread James Henstridge
Torsten Landschoff wrote: Hi James, Just built Debian packages for pygtk 0.6.11 and 1.99.13. On Sun, Aug 18, 2002 at 09:37:16PM +0800, James Henstridge wrote: I have just checked in changes to pygtk and gnome-python (both 1.2 and 2.0 branches) to make parallel install easier. Here

Re: [pygtk] configure event libglade?

2002-08-30 Thread James Henstridge
[EMAIL PROTECTED] wrote: Hi. I'm having a spot of trouble catching a configure event with libglade. Sometimes I get multiple configures right in a row, and other times I don't get any configures. The code which doesn't get me any configure events is at http://russnelson.com/tgrmap.py

Re: [pygtk] ../libtool[1280]: yes: not found.

2002-09-01 Thread James Henstridge
Gansser, Martin wrote: What arguments did you pass to gnome-python's configure script? sorry for my first mail. thats my build script: #!/bin/csh -f # setenv CPPFLAGS -I/opt/gnome/include/libcapplet1 # gmake distclean ./configure --prefix=/opt/gnome \

Re: [pygtk] Probably silly button_press_event question

2002-09-02 Thread James Henstridge
Cameron Blackwood wrote: James Henstridge writes In message [EMAIL PROTECTED]: | | but I notice that the event.x and event.y that get passed to | my DO_mouse_click method are centered around what appears to | be the center of the mouse icon, NOT the hotspot. | | | I don't think

Re: [pygtk] ZvtTerm question

2002-09-04 Thread James Henstridge
Steve McClure wrote: I guess this might not strictly be a PyGnome (is there a mailing list for PyGnome) question but, is there anyway to set the hints so that I can limit the resize to character size blocks? I'm having a problem where some parts of the screen will become black after executing a

Re: [pygtk] Full Screen Window

2002-09-04 Thread James Henstridge
Rob Brown-Bayliss wrote: One of the ideas I tried was: window = GtkWindow(WINDOW_TOPLEVEL) window.set_policy(0,0,1) window.set_position(WIN_POS_CENTER) window.set_uposition(0,0) window.set_usize(screen_width(), screen_height()) This works fine without any wm (e. G. starting from the fail-safe

Re: [pygtk] /usr/local/include/regex.h:145: parse error before re_void

2002-09-04 Thread James Henstridge
Gansser, Martin wrote: the file regex.h from tcltk-8.3.4 caused this problem. Is there a workaround for this ? It is a bit difficult to tell what to do, as I don't know what is in the headers on your system. Do you have a different regex.h file on your system? Maybe try temporarily

Re: [pygtk] Need Help

2002-09-06 Thread James Henstridge
Martin Klaffenboeck wrote: Am Fr, 2002-09-06 um 21.30 schrieb Christian Reis: On Fri, Sep 06, 2002 at 09:03:30PM +0200, Martin Klaffenboeck wrote: I'm reading one tutorial after an other, but I'm not able to find all this things out... Dude, just pick up hello world from the

Re: [pygtk] Jump to a widget

2002-09-07 Thread James Henstridge
Martin Klaffenboeck wrote: Hello, How can I tell my programm that the cursor (for keyboard input) should jump to a specific GtkEntry widget? entry.grab_focus() James. -- Email: [EMAIL PROTECTED] | Linux.conf.au http://linux.conf.au/ WWW: http://www.daa.com.au/~james/ |

Re: [pygtk] libesd.la

2002-09-08 Thread James Henstridge
Anthony Tekatch wrote: I am using Redhat 7.2 with Ximian. I cannot easily remove esound since it is woven into many other packages. Just installing from the esound source did not solve any problems for me so instead I removed Gnome dependcies from my pygtk application (gonvert) and now I don't

Re: [pygtk] X server crashes, but what am I using up?

2002-09-08 Thread James Henstridge
[EMAIL PROTECTED] wrote: Christian Reis writes: On Sat, Sep 07, 2002 at 01:39:50AM -0400, [EMAIL PROTECTED] wrote: My pygtk application (mapview -- views terraserver maps) is crashing xfree86. Presumably this is because I'm using up some resource, but I don't know what it might be.

Re: [pygtk] Couple of pygtk questions

2002-09-08 Thread James Henstridge
Seth Kurtzberg wrote: I'm also very interested in this. I've been delaying a project to see if I can resolve the cross platform issues with pygtk. On Sunday 08 September 2002 16:19, Michael Gilfix wrote: So umm, not to re-iterate, but umm, does anyone know anything about this issue?

Re: [pygtk] Couple of pygtk questions

2002-09-08 Thread James Henstridge
Michael Gilfix wrote: Thanks for the reply James. It hit the nail. One last, but very important question for me: Does threading currently work on Windows? I'd like to do a port but the support wasn't there for the old GTK series. Does anyone have a pygtk build that uses threading?

Re: [pygtk] private signal

2002-09-09 Thread James Henstridge
Evgeny Chukreev wrote: Hello! [repost] I have tried to create private signal for my class. Now it looks like: -- - - - -- - - - - - - - - - - - - - - - -- import gtk, gobject class A (gtk.Window, gobject.GObject): eek! If you just want a gtk.Window subclass, don't also subclass from

Re: [pygtk] Determining string width in GNOME 2?

2002-09-09 Thread James Henstridge
Don Allingham wrote: In the past, I've been able to determine the width of a string before it is displayed by using the width() method of a GdkFont. With the change to Pango, this method no longer seems to apply. While I can get a GdkFont, and use the string_width method, it doesn't seem to

Re: [pygtk] private signal

2002-09-09 Thread James Henstridge
Evgeny Chukreev wrote: On Mon, 09 Sep 2002 15:00:01 +0800, James Henstridge [EMAIL PROTECTED] wrote: JH Try changing your code to look like the following: JH class A(gtk.Window): JH __gsignals__ = { 'no_undo': (gobject.SIGNAL_RUN_FIRST, None, ()) } JH def __init__(self): JH

[pygtk] gnome.init() problems fixed

2002-09-09 Thread James Henstridge
If you ran into the problem of libgnomeui not being correctly initialised when you call gnome.init(), that problem has now been solved. You will need to upgrade to libgnome-2.0.5 (in the 2.0.2 release candidate) in order to get the fix. Thanks go to Matt Wilson for tracking down the

Re: [pygtk] something broken in 1.99.13

2002-09-11 Thread James Henstridge
Evgeny Chukreev wrote: Hello! Look at the pygtk-demo.py @ appication main window. Menubar widget is absent. That looks like it is caused by the reference counting fixes done in that release -- the item factory is no longer leaked, which meant that it got destroyed when going out of scope.

Re: [pygtk] private signal

2002-09-11 Thread James Henstridge
Evgeny Chukreev wrote: On Mon, 09 Sep 2002 17:27:19 +0800, James Henstridge [EMAIL PROTECTED] wrote: JH Try changing your code to look like the following: JH class A(gtk.Window): JH __gsignals__ = { 'no_undo': (gobject.SIGNAL_RUN_FIRST, None, ()) } JH def __init__(self): JH

Re: [pygtk] GNOME2 equivalent of gnome.mime?

2002-09-17 Thread James Henstridge
Don Allingham wrote: Is there a GNOME 2 equivalent to the GNOME 1 gnome.mime package? I've used this in the past to get the icon that matches a particular mime type. There will be one in the gnome.vfs module, but I haven't wrapped it yet. James. -- Email: [EMAIL PROTECTED] |

[pygtk] Re: [PATCH] patch for pango.override

2002-09-17 Thread James Henstridge
Art Haas wrote: Hi. The following small patch fixes what looks like a cut-n-paste error. The pango_layout_get_pixel_extents() wrapper was calling the wrong function. The patch is against the current CVS source. Index: pango.override

Re: [pygtk] Segfault with get_ancestor()

2002-09-20 Thread James Henstridge
Graham Ashton wrote: Hi. I was wondering if anybody could confirm that I'm using the correct technique to get a widget's parent container (and not necessarily it's direct container). My attempt (using get_ancestor()) segfaults if the widget isn't in a container of the correct type. See below.

Re: [pygtk] how to use glade 1.1.1 with python ?

2002-09-21 Thread James Henstridge
bitlov wrote: Hi, When i build a gui with glade 0.6.4, I can load it in my python program with libglade. But with glade 1.1.1, I see that the xml glade file is incompatible with libglade and cannot be load with GladeXML(). So, is it possible to use a gui build with glade 1.1.1 in python? And

Re: [pygtk] how to use glade 1.1.1 with python ?

2002-09-22 Thread James Henstridge
bitlov wrote: Thanks for your help. In fact I was already using pygtk1.99 but i didn't know that i should use gtk.glade.XML and not liblade.GladeXML But I still cannot load Gnome widget, I get this : libglade-WARNING **: Could not load support for `gnome': /usr/lib/libgnome.so: undefined

[pygtk] pyorbit in CVS

2002-09-23 Thread James Henstridge
I have checked into CVS the starts of a new binding for ORBit2 that has a number of differences compared to the existing orbit-python module. Depending on how things develop, I might consider switching gnome-python to use this binding instead of orbit-python for the places where CORBA APIs

Re: [pygtk] pyorbit in CVS

2002-09-23 Thread James Henstridge
Arjan Molenaar wrote: Hi, What made you decide to start from scratch and build new ORBit bindings? Does this imply that the code will be more in line with the pygtk code? Well, the current orbit-python code is a little crufty in places (the IDL parsing code does some _very_ weird things ...).

Re: [pygtk] gtk2.0 gdk_pixbuf_animation_iter question

2002-09-27 Thread James Henstridge
torben hohn wrote: On 26 Sep 2002 22:03:54 +0200, florian wrote: On Don, 2002-09-26 at 09:28, torben hohn wrote: hi... I have a turning knob which is made from a gif animation. so i need to load all frames from the animation and put these into a list. i use

Re: [pygtk] Q: `default-icon'

2002-09-28 Thread James Henstridge
Robert Laing wrote: I get an error message (appname:804): GLib-GObject-WARNING **: gobject.c:913: object class `GnomeProgram' has no property named `default-icon' when I run code along the following lines: #!/usr/bin/env python import gnome.ui, gtk.glade program =

Re: [pygtk] libglade download

2002-09-30 Thread James Henstridge
Rajarshi Guha wrote: does naybody know an alternative site to download libglade from. The one I got from ftp.daa.com.au:/pub/james/gnome seems to be corrupted (gzip complains). All current versions of libglade are available from: http://ftp.gnome.org/pub/GNOME/sources/libglade/ For

Re: [pygtk] Bug in GTK (many versions)

2002-10-02 Thread James Henstridge
Jon Nelson wrote: There is a serious bug in GTK involving the CList. Near line 2804 of the current GTK gtkclist.c file, there is some (partially broken, commented out) code. I have fixed the code: if (clist-focus_row =0 (row = clist-focus_row || clist-focus_row = clist-rows))

Re: [pygtk] pygtk-1.2 and threading... QA

2002-10-05 Thread James Henstridge
Andrew W. Schmeder wrote: Hi. I am writing a pygtk-1.2 app. I have lots of interaction with GnomeCanvas and lots of threading. For example, it is common to have a thread running which moves, creates or destroys a widget on the canvas. In the process of doing this I encountered a number of

Re: [pygtk] GtkObject.emit problem

2002-10-09 Thread James Henstridge
Steve McClure wrote: I'm sure I'm doing something dumb but I'm trying to simulate a notebook page change if the notebook is already mapped and page X is already displayed. I'm doing this because I'm loading the contents of the page on the switch signal for that page and you don't get the signal

Re: [pygtk] Drawing in Drawing Area

2002-10-19 Thread James Henstridge
LDC - Pablo Endres Lozada wrote: I've tryed to draw in a Drawing Area but the only way that it works is suscribing the paint method to the expose-event. Is there anothere way to do this?? Can I paint at any time or must it be via signals? It is best to only draw in response to an

Re: [pygtk] GtkWindow bring to front

2002-10-22 Thread James Henstridge
LDC - Pablo Endres Lozada wrote: Thanks for all your answers guys you've been really helpfull!! Here come the question. Is there a way to bring a window to front? And question two: supose you define two windows with libglade and save them in the same file. if I start the app like this

[pygtk] Re: _obj=None vs. obj=None in gtk.py:GtkWidget?

2002-10-26 Thread James Henstridge
Christian Reis wrote: Hello there, Asking James because he might have a good clue. In pygtk0's gtk.py, we have: class GtkObject: [...] def destroy(self, _obj=None): _gtk.gtk_object_destroy(self._o) and then class GtkWidget: def destroy(self, obj=None):

Re: [pygtk] libglade, python and gnome widgets: segmentation fault

2002-10-30 Thread James Henstridge
Padraig Brady wrote: Juri wrote: Hi, I was going to ask about how to get Gnome widgets to work with libglade and python but apparently I solved the problem. I've seen other people complaining about the problem but no solution, so I decided to post this anyway; consider it a bug report. I

Re: [pygtk] line attributes

2002-10-30 Thread James Henstridge
John Hunter wrote: Does someone have some example code to show me how to use draw_line or draw_lines with line attributes, eg, GDK_LINE_DOUBLE_DASH, etc... All drawing operations in X take a GC (which stands for graphics context), which holds some settings used for doing the drawing. If you

Re: [pygtk] Wrapping gtksourceview [WORKS]

2002-10-30 Thread James Henstridge
Johan Dahlin wrote: * How/Who do I send my work to? James, again, is there something for gnome-python? There are two options here. The first is to add the binding to pygtk or gnome-python. The second is to distribute a stand alone package. The main benefit of including it in

Re: [pygtk] error messages

2002-11-01 Thread James Henstridge
Jay Graves wrote: Hello I have created a test app with pygtk and glade. When I run the app the window appears however there are many errors written to the terminal. Can anyone tell me what these mean, and how to get rid of them. Also, for bonus points, how come the app quits when I do a File |

Re: [pygtk] GtkTextIter

2002-11-03 Thread James Henstridge
Diego Anzoátegui wrote: Hello, When i read the pygtk-docs, says that create_tag take 2 arguments, but the python interpreter raise an error saying that create_tag takes exactly one argument. Another one: to insert text in TextBuffer i need a TextIter object, but i can't create it with the

Re: [pygtk] Crash in pygtk_generic_cell_renderer_get_size()

2002-11-03 Thread James Henstridge
Joe Shaw wrote: Hi, I came across a crash in pygtk_generic_cell_renderer_get_size(). It doesn't check to see if the arguments passed in are NULL before passing them to PyArg_ParseTuple(), which dereferences them and crashes. I've filed bug #97436 about it, and attached this patch to it. Joe

Re: [pygtk] error messages

2002-11-03 Thread James Henstridge
Jay Graves wrote: Your glade file makes use of GNOME widgets, but you have not initialised the GNOME libraries. You need to call gnome.init(progname, version) after importing the libs you want (gnome.ui, bonobo.ui, etc). Thank you very much for your help but I am still a bit confused.

Re: [pygtk] co-exist pygtk 0.6xx and pygtk2 1.99xx?

2002-11-03 Thread James Henstridge
Don Radick wrote: Hi folks - I'm struggling to setup my RedHat 8.0 system so I can compile an application that requires pygtk 0.6xx. After reading the relevant FAQ section many times, I still can't get it to work. Here's an excerpt from the FAQ: James has added to pygtk 0.6.11, pygtk2

Re: [pygtk] Compilation problems

2002-11-03 Thread James Henstridge
Graeme 'Grimace' Jefferis wrote: Hallo there, I've recently been installing GTK+-2 on my RedHat 7.2 system, from binary RPMs. I run ROX as my desktop environment of choice, and its applications tend to use pyGTK extensively; but I've run into difficulties compiling pyGTK 1.99.13. make halts

Re: [pygtk] Pygtk for gtk 1.2 and 2.0 clarification

2002-11-05 Thread James Henstridge
Tanya Brethour wrote: I'm been reading the FAQ fro pygtk (http://www.async.com.br/faq/pygtk/index.py?req=all#2.1) and trying to understand exactly what I am doing wrong. (keep in mind this is more difficult for me since I am new to python as well as gtk). First some background information. I am

Re: [pygtk] GtkImage, pixbuf woes under gtk2.x

2002-11-05 Thread James Henstridge
george young wrote: [gtk+-2.1.1, pygtk-1.99.13, python-2.2.1] Under gtk 1.x, I had been using something like: class Openclose(gtk.GtkToggleButton): ... minus_xpm_d = [11 11 2 1, . c #00, ... ###] self.minus = gtk.create_pixmap_from_xpm_d(topwin.get_window(), None,

Re: [pygtk] Dynamically creating columns in a ListStore

2002-11-06 Thread James Henstridge
Christian Reis wrote: On Wed, Nov 06, 2002 at 12:49:48AM -0800, David M. Cook wrote: On Tue, Nov 05, 2002 at 05:23:21PM +0800, James Henstridge wrote: store = gtk.ListStore(*[str]*cols) Whoa, slick, you can also use foo(**keys). I can get rid of all those awkward apply

Re: [pygtk] gtktreeviewcolumn.c critical error?

2002-11-07 Thread James Henstridge
Tanya Brethour wrote: I am writing a simple gui that has as TreeStore in it. I keep getting the follow error multiple times. It happens a few times when the gui first starts up and when I mouse over the columns. (expertfe.py:25899): Gtk-CRITICAL **: file gtktreeviewcolumn.c: line 2246

Re: [pygtk] feature request: binding for gtk_propagate_event?

2002-11-12 Thread James Henstridge
Brian Warner wrote: With gtk1/gnome1, binding the signals seems to happen when a widget-tree is added to the AppletWidget container. So, if you add Buttons to a GtkHBox, and then add that box to the AppletWidget, the button-events are processed by the panel. If you first add the GtkHBox, and

Re: [pygtk] setting font for gtk.Entry?

2002-11-12 Thread James Henstridge
george young wrote: [pygtk-1.99.13, gtk-2.1.1, python-2.2.1, linux] I am just trying to set the font for a gtk.Entry. I tried: import gtk top = gtk.Window(gtk.WINDOW_TOPLEVEL) top.show() e = gtk.Entry() sty = e.get_style().copy() sty.font = gtk.load_font('fixed') e.set_style(sty)

Re: Fw: Re: [pygtk] setting font for gtk.Entry?

2002-11-15 Thread James Henstridge
george young wrote: On Wed, Nov 13, 2002 at 03:54:13PM +0800, James Henstridge wrote: george young wrote: [pygtk-1.99.13, gtk-2.1.1, python-2.2.1, linux] I am just trying to set the font for a gtk.Entry. I tried: import gtk top = gtk.Window(gtk.WINDOW_TOPLEVEL) top.show() e

Re: [pygtk] how to ignore repeated events until the end

2002-11-18 Thread James Henstridge
John Hunter wrote: I have a problem that has cropped up in a couple of different circumstances. 1) I have a GtkDialog above my GtkWindow and I want to drag it off to the side of the main window to use some controls in the dialog. The draq across the window triggers a large number of

Re: [pygtk] GtkGLArea - how to disable/compile?

2002-11-18 Thread James Henstridge
Werner Hartnagel wrote: Hi, I'll try to compile the recent pygtk-0.6.11 with Mandrake9. configure tell me he found the importend libs but when I try to compile, the file libGL.la is still missing. I have only the following files in my /usr/X11R6/lib/ folder: ls /usr/X11R6/lib/libGL*

Re: [pygtk] pygtk Gnome2 errors

2002-11-18 Thread James Henstridge
Jay Graves wrote: Hello I wrote a while ago with this problem, but I didn't have my system configured properly. Now I believe I do, and the problem still exists. I am running Debian (Sid) with Python2.3 python2.3-gnome2 1.99.13 python2.3-glade2 1.99.13 python2.3-gtk2 1.99.13 I have a

[pygtk] idle_add, timeout_add and input_add

2002-11-18 Thread James Henstridge
I have checked in wrappers for the glib timeout, idle and IO event handling functions into pygtk, and removed the (deprecated) gtk equivalents. I have left in compatibility names, so no programs should break. This change gets rid of the last use of the strongly deprecated GtkArg and

Re: [pygtk] get_widget_prefix and filling widgets from database...

2002-11-19 Thread James Henstridge
Rene Olsthoorn wrote: (Sorry, my first mail contained HTML) Dear list-reader, I've several widgets which need to be filled with contents from the database. So, I want to link a table- and columnname with several widgets. The easiest way to do that seems to me a encoding in the widgetname. So a

[pygtk] bugzilla mail

2002-11-20 Thread James Henstridge
I have switched the default owner of new bugs submitted for pygtk/gnome-python to an alias, so if you want to receive bug mail on all pygtk bugs without having to manually add yourself to the CC list, you now can. Simply do the following: 1. log into bugzilla 2. go to the email settings

Re: [pygtk] TreeIter problem

2002-11-21 Thread James Henstridge
Rene Olsthoorn wrote: Dear list-reader, Using: pygtk 1.99.13(CVS of yesterday) The GTK C reference says a GTKTreeIter has 4 attributes: stamp, user_data, user_data2, user_date3 In Python however, the TreeIter object is not able to reach the attributes. So, I cannot tell what data is selected

Re: [pygtk] pygtk 0.6.9 installer for win32

2002-11-23 Thread James Henstridge
John Hunter wrote: John == John Hunter [EMAIL PROTECTED] writes: John I do have python installed in c:\py21 (PythonWare) and a John working gtk (I can run the gimp -- cool). OK, I just installed python22 from python.org but had the same problem. Then I noticed py2.1 in the

Re: [pygtk] Translating PyGTK programs

2002-11-23 Thread James Henstridge
Christian Reis wrote: On Sat, Nov 23, 2002 at 03:30:37PM +0100, Grzegorz Adam Hankiewicz wrote: Last time I checked the faq said something strange about not using gettext, using intl, then using again gettext :-? So I took an example from the pygtk directory and started hacking it until I

Re: [pygtk] g_utf8_validate failed

2002-11-24 Thread James Henstridge
Stephen Kennedy wrote: Loading non-utf8 or non 7 bit ascii into a textbuffer gives this error, and no text is displayed in the textview. How can I check if this has happened (the buffer still reports the correct length) and what should I do if it does happen? Ask the user for a fallback

Re: [pygtk] Is anybody working on PyGtkScintilla2 ?

2002-11-28 Thread James Henstridge
Christian Reis wrote: On Sun, Nov 24, 2002 at 06:16:56PM +0100, Marc Recht wrote: Scintilla 1.48 has been GTK2 enabled for a while now, and 1.49 now supports Unicode. Only the port of the wrapper GtkScintilla to GTK2 is needed and we are in business. Anybody already working on that ?

Re: [pygtk] pygtk 0.6.9 installer for win32

2002-12-01 Thread James Henstridge
[EMAIL PROTECTED] wrote: John Hunter [EMAIL PROTECTED] writes: But I get an error when I run my code that I am not sure what to do with. The code runs fine under linux. When I run it on win32, I get a popup error on the call to win.show(), which reads: GLib-ERROR**: gmem.c: 141:

Re: [pygtk] button with label takes a long time to launch

2002-12-01 Thread James Henstridge
John Hunter wrote: If I have a dialog with a button, and add a label to the button, the dialog box can take 30-60s to load. For example, with the helloworld.py example code in the tutorial: http://www.moeraki.com/pygtktutorial/pygtk2tutorial/examples/helloworld.py if I comment out the button

Re: [pygtk] problem installing latest CVS version

2002-12-23 Thread James Henstridge
Markus Jais wrote: hello I just checked out the latest pygtk version from CVS. there is no configure so I tried: ./autogen.sh You must have automake installed to compile PyGTK. Get ftp://ftp.cygnus.com/pub/home/tromey/automake-1.2d.tar.gz (or a newer version if it is available) but automake

[pygtk] Re: installed gtk+2.2 and now python bindings can't find gnome widgets

2002-12-24 Thread James Henstridge
Dave Reed wrote: to find the support modules provided by libgnomeui, libbonoboui, etc (probably /usr/lib/libglade/2.0). Thanks - that fixed it. I'm still a little confused as to why the files in gnome-python/pygnome did not get compiled. Can someone please list the commands for compiling

[pygtk] Re: installed gtk+2.2 and now python bindings can't find gnome widgets

2002-12-24 Thread James Henstridge
Dave Reed wrote: On Tuesday 24 December 2002 08:51, James Henstridge wrote: snip Thanks - that fixed it. I'm still a little confused as to why the files in gnome-python/pygnome did not get compiled. Can someone please list the commands for compiling from CVS. The stuff

Re: [pygtk] Re: Re: Focus ?

2002-12-26 Thread James Henstridge
mc collilieux wrote: that i do ! I write : dserie = GtkEntry() dserie.show() dserie.grab_focus() Very simple (?) but the cursor is not in the entry, i must click in it (or press TAB) for beginning type the data. If I press TAB, yes the cursor appear in the entry but not at the opening of the

[pygtk] ANNOUNCE: pygtk-1.99.14, pyorbit-1.99.3, gnome-python-1.99.14

2002-12-27 Thread James Henstridge
I have just released new versions of pygtk, pyorbit and gnome-python, which make up the Python bindings for the GNOME 2.0 platform. They can be grabbed from: http://ftp.gnome.org/pub/GNOME/sources/pygtk/1.99/ http://ftp.gnome.org/pub/GNOME/sources/pyorbit/1.99/

[pygtk] Re: GDK_2BUTTON_PRESS event type definition

2003-01-05 Thread James Henstridge
Florin Iucha wrote: Hello, I have a question about event definitions: I am trying to capture the double click event but I cannot find the symbolic name for it. I am using Debian and the unstable package python2.2-gnome2-1.99.13-3 . I have searched the web and mailing list archives. In old

Re: [pygtk] Python does not find PyGtk

2003-01-05 Thread James Henstridge
Martijn Brouwer wrote: I have two versions of python installed (2.1 and 2.2) on a linux system running debian testing. For 2.1 I have PyGtk installed using the packages from the distribution, which works fine. Now I want to write a program myself using PyGtk and Gnome-Python version 1.99.13.

Re: [pygtk] Python does not find PyGtk

2003-01-05 Thread James Henstridge
Martijn Brouwer wrote: That was what I understood from the faq too, however it seems that 1.99 requires importation of pygtk before gtk even when only one version of pygtk is installed. I have python 2.2 with gnome-python 1.99.13. On my system (debian testing) gnome-python 1.4 based on pygtk

Re: [pygtk] Threads in timeouts

2003-01-12 Thread James Henstridge
Jesse Pavel wrote: Hello, I've read that timeout functions registered with gtk.timeout_add() may be called from a separate thread; but is this true even if I don't initialize threading with gtk.threads_init()? My plan was to have an independent thread--that never makes GDK or GTK calls--store

Re: [pygtk] Question about alignment of cell renderers in TreeViewColumns

2003-01-12 Thread James Henstridge
Andrew S. Townley wrote: Hello, I checked the list archives about this, but I'm not having any luck with finding it. Basically, thanks to a post from James, I've got everything working *almost* the way I want. Here's what I'm doing: I want to have a simple list of items in the TreeView that

Re: [pygtk] pygtk 1.99.14 on Solaris 8

2003-01-12 Thread James Henstridge
Stephen Watson wrote: I have just compiled and installed pygtk 1.99.14 on Solaris 8, and it's broken. Running one of the examples I get: buster:~/src/pygtk-1.99.14/examples/simple python simple.py Traceback (most recent call last): File simple.py, line 7, in ? import gobject, gtk

Re: [pygtk] can't find gnome.ui module.

2003-01-13 Thread James Henstridge
matlactli ihuan ome acátl wrote: Hello there. I got a problem on a Slackware 8.1 box with dropline GNOME I use Python 2.2 with pygtk and python gnome. The problem is that i cant load the module gnome.ui in any manner i can figure. The problem is that uimodule.la does not exist in the system.

Re: [pygtk] TreeView and CellRenders

2003-01-14 Thread James Henstridge
Omar Kilani wrote: Hello, I was wondering if someone could advise on a way of doing conditional colouring of cells. Say I have: -|--| one | four | -|--| two | five | -|--| three| six | And I wanted to give each cell a different colour (based on its contents or cell

Re: [pygtk] TreeView and CellRenders

2003-01-14 Thread James Henstridge
Oistein Aanensen wrote: On Tue, 2003-01-14 at 09:44, James Henstridge wrote: Omar Kilani wrote: Hello, I was wondering if someone could advise on a way of doing conditional colouring of cells. Say I have: -|--| one | four | -|--| two | five | -|--| three| six

Re: [pygtk] Pixmap path with libglade

2003-01-14 Thread James Henstridge
Ricardo Caesar Lenzi wrote: Hello, I'm testing libglade to use with my application and I have a little doubt with Pixmaps. I have the following directory structure: -+ App root | +-+ glade | +- pixmaps All my pixmaps are in the 'pixmaps' diretory and all glade files are in the 'glade'

Re: [pygtk] GtkClipboard

2003-01-15 Thread James Henstridge
Johan Dahlin wrote: tis 2003-01-14 klockan 23.51 skrev John Finlay: These aren't implemented in PyGTK 1.99.x - what's the reason? Are they likely to be implemented in the future? A comment in gtk-types.defs seems to indicate GTK+ 2.2. I think it's mainly because missing GTK_TYPE_*

Re: [pygtk] set_sensitive gray-out too extreme for gtk.Entry

2003-01-15 Thread James Henstridge
george young wrote: [python-2.2.1, gtk-2.1.1 pygtk-1.99.14, linux] How can I change the grey background of an insensitive gtk.Entry? I tried: self.entry = gtk.Entry() map=self.entry.get_colormap() red=map.alloc('red') style=self.entry.get_style().copy()

Re: [pygtk] Use of gtk.threads_enter()

2003-01-28 Thread James Henstridge
Pablo Endres wrote: Hi Guys, I've been debugging an app and I think the problem comes from un inapropriate use of this insctruccion. I've checked around and found very little documentation about it. Can anyone point me out on the correct use of this instrction: when why should I use

Re: [pygtk] pygtk unicode fonts under linux and windows

2003-01-28 Thread James Henstridge
Pawel J. Maczewski wrote: Hi all, As I'm developing an application in polish language, I need to have all the texts in polish. Under Linux I used ISO-8859-2 coding foe central european characters, but they seem to look something strange under windows... So, I was thinking about coding the

Re: [pygtk] Cannot find get_state() in pygtk2

2003-01-31 Thread James Henstridge
Roberto Cavada wrote: I need to retrieve sensitive state of a widget. FAQ states I can use the get_state() method, but unfortunately I could not find any trace about that method, in my pygtk installation. import gtk w = gtk.Window() w.get_state() Traceback (most recent call last): File

Re: [pygtk] gtk.mainloop()

2003-01-31 Thread James Henstridge
Pablo Endres wrote: John Finlay wrote: You need to run gtk.threads_init() in the same thread that you run gtk.mainloop(). Thanks I set it just before the gtk.mainloop(), but now I get this error: C:\tmp\ssemamonWin32python gui.py Exception in thread Thread-1: Traceback (most recent

Re: [pygtk] Help with gdk.Pixbufs, styles and what not

2003-01-31 Thread James Henstridge
[EMAIL PROTECTED] wrote: I'm trying to write a sequencer (matrix) -widget, but I seem to be hitting a wall. I have implemented a matrix editor using 1 large Pixmap displayed in a gtk.DrawingArea as the grid, and then drawing notes on the gtk.DrawingArea.window. This approach, however, becomes

Re: [pygtk] Gtk envents?

2003-01-31 Thread James Henstridge
Javi Roman Espinar wrote: Dear all, I have a problem with the following program. When I push the button the program shows the dialog window but doesn't show the labels whithin the dialog. This labels are shown when the sleep(10) function ends. Why events_pending loop doesn't work? What can I

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

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] 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

<    1   2   3   4   5   6   7   >