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

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

Re: [pygtk] anti aliased fonts win32

2003-11-19 Thread James Henstridge
On 19/11/2003 10:12 AM, John Hunter wrote: Is it possible? I tried setting GDK_USE_XFT w/o effect. I'm using Cedric's pygtk-2.0.0 and GTK runtime 2.2.4.1. GTK and Pango do not use Xft on Windows, so that flag doesn't have any meaning. If you have font smoothing turned on in Windows, it sho

Re: [pygtk] pyORBit and threading

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

Re: [pygtk] PyGtk/C extension - segfault

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

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

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

Re: [pygtk] My menubar disappear with mysql

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Re: [pygtk] gtk+vtk again

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

Re: [pygtk] scaling fonts

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

Re: [pygtk] gnome canvas w2c and friends

2003-09-16 Thread James Henstridge
On 17/09/2003 12:07 PM, Hugo Hallqvist wrote: Hello list, I have tried to figure out how to call the w2c and c2w functions of gnome.canvas.Canvas(). In the C-api reference it is declared as: gnome_canvas_w2c(double wx, double wy, int *cx, int *cy) If I try to call canvas_variable.w2c(wx, wy, c

Re: [pygtk] gnomedatedit.get_time() returns tuple with one day off

2003-09-15 Thread James Henstridge
On 16/09/2003 1:04 PM, Guido Schimmels wrote: Hi, Now that I found out how to use the gnomedateedit widget, I have encountered a bug. The get_time() method always returns a tuple with one day off: For today (2003-09-16) I get: (2003, 9, 15, 22, 0, 0, 0, 258, 0) Judging from the headers of yo

Re: [pygtk] Creating a new Pango Context

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

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

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

Re: [pygtk] Creating a new Pango Context

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

Re: [pygtk] Warnings issued by get_property

2003-09-09 Thread James Henstridge
On 9/09/2003 6:52 AM, Michael McLay wrote: On Monday 08 September 2003 06:55 pm, Christian Reis wrote: On Fri, Sep 05, 2003 at 11:57:22AM +0800, James Henstridge wrote: On 4/09/2003 8:00 AM, Michael McLay wrote: I received an odd warning when testing the use of get_property

Re: [pygtk] Install Problems

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

Re: [pygtk] Install Problems

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

Re: [pygtk] Install Problems

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

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

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

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

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

Re: [pygtk] Missing about icon in menu

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

Re: [pygtk] Warnings issued by get_property

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

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

2003-09-03 Thread James Henstridge
On 3/09/2003 9:50 AM, Malcolm Tredinnick wrote: Firstly, sincere congratulations on making the 2.0.0 releases. It is wonderful to see all your hard work over the years pay off so far. :) Thanks! [stuff about pygtk future] Agreed. [stuff about pyorbit] Yes and yes. What do you think about

[pygtk] CVS branches and plans for the future.

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

[pygtk] ANNOUNCE: Gnome-Python 2.0.0

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

[pygtk] ANNOUNCE: PyORBit 2.0.0

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

[pygtk] ANNOUNCE: PyGTK 2.0.0

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

Re: [pygtk] Missing about icon in menu

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

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

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

Re: [pygtk] GnomeAppBar and Glade

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

Re: [pygtk] extra_ivars assersion failure

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

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

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

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

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

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

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

Re: [pygtk] Using Accessibility interface from PyORBit?

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

Re: [pygtk] Using Accessibility interface from PyORBit?

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

Re: [pygtk] help with non-embedded Bonobo server

2003-08-20 Thread James Henstridge
On 21/08/2003 6:04 AM, Ben Liblit wrote: I am trying to create a simple CORBA service in Python. I'd like to use Bonobo where appropriate to simplify activation. The service has a standalone PyGTK GUI, but is not intended for embedding via bonobo.ui.Component.

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

2003-08-14 Thread James Henstridge
On 15/08/03 02:05, Christian Reis wrote: In the above reasoning, I am assuming that applications will just run with "any available ORB". I think this is a fairly safe assumption, since apps may: James, don't you really mean "I am assuming that applications *won't* run with `any available O

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

2003-08-14 Thread James Henstridge
On 15/08/03 02:01, Christian Reis wrote: On Thu, Aug 14, 2003 at 08:57:09AM -0400, Jon Willeke wrote: If you want to keep the convenience of a top-level CORBA module, perhaps you could adapt PyGTK's version selection code: use a .pth file to set the default ORB. A program that knows it needs a

Re: [pygtk] Using Accessibility interface from PyORBit?

2003-08-14 Thread James Henstridge
On 15/08/03 05:05, Tessa Lau wrote: For folks following in my footsteps, I've unearthed a few references that describe how to use Python to talk to the Accessibility interfaces. (But read on for a question on marshalling callbacks.) I'm on travel this week and have had only occasional net access

Re: [pygtk] Using Accessibility interface from PyORBit?

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

Re: [pygtk] Using Accessibility interface from PyORBit?

2003-08-14 Thread James Henstridge
On 13/08/2003 12:04 PM, Tessa Lau wrote: James, Thanks for the reply. Do you have sample code that shows how to call these functions? By grepping around in /usr/lib/python2.2/site-packages I found a bonobo package, but I can't figure out how to import it. Ditto for repo_ids --- what's that, an

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

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

Re: [pygtk] Using Accessibility interface from PyORBit?

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

[pygtk] bugzilla reorganisation

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

Re: [pygtk] Treeview Icons

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

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

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

Re: [pygtk] Conflicting omniORBpy and PyORBit

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

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

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

Re: [pygtk] .defs and .override

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

[pygtk] ANNOUNCE: pyorbit-1.99.6

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

[pygtk] ANNOUNCE: pygtk-1.99.17

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

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

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

Re: [pygtk] connect_while_alive() in pygtk2?

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

Re: [pygtk] PyGtk+glade2+gettext

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

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

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

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

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

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

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

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

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

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

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

[pygtk] ANNOUNCE: pyorbit-1.99.5

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

Re: [pygtk] libglade + gettext

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

Re: [pygtk] pygtk 1.99 on OS X

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

Re: [pygtk] Re: pygtk thread support bug

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

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

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

Re: [pygtk] pygtk 1.99 on OS X

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

Re: [pygtk] Cannot create GladeXML object

2003-06-28 Thread James Henstridge
Haris Bogdanovic wrote: When I do gtk.glade.XML("filename.glade") I get the error Could not create GladeXML object. What is the problem here ? Is the file a valid glade file? If so, it should start with something like this: http://glade.gnome.org/glade-2.0.dtd";> ... If the DTD has been

Re: [pygtk] How do I programmatically detect thread support??

2003-06-28 Thread James Henstridge
Alif Wahid wrote: Hi folks, Is there a way to programmatically detect if an arbitrary version of PyGtk was compiled with the '--enable-threading' flag to have thread support enabled. A bit like the pygtk.require('2.0') method that checks for the right version. So I'm looking for a method that doe

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

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

Re: [pygtk] pygtk or py + tk ?

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

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

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

Re: [pygtk] bug in the spinbutton?

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

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

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

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

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

Re: [pygtk] GnomeFileEntry and non-ascii characters

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

Re: [pygtk] connect_after does not work for treeview

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

Re: [pygtk] Unsupported types

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

Re: [pygtk] connect_after does not work for treeview

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

Re: [pygtk] Comments on the tutorial

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

Re: [pygtk] connect_after does not work for treeview

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

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

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

Re: [pygtk] VTK

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

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

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

Re: [pygtk] connect_after does not work for treeview

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

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

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

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

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

Re: [pygtk] connect_after does not work for treeview

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

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

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

Re: [pygtk] Any way to retrieve the title of a dialog?

2003-03-15 Thread James Henstridge
Christian Reis wrote: On Wed, Mar 12, 2003 at 06:55:18PM -0500, Steve McClure wrote: I need to augment titles, at runtime, of dialogs created with Glade. I don't see anything in the API to do a get_title, but there is a GtkWindow.title attribute in the GTK docs. I can't even get to GtkWindow

[pygtk] testing

2003-03-14 Thread James Henstridge
(see if mailman upgrade went okay) -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

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

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

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

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

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

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

Re: [pygtk] TreeList check boxes

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

  1   2   3   4   5   6   7   8   9   10   >