Re: [pygtk] cannot import gnome

2005-05-23 Thread Martijn Brouwer
Christian Robottom Reis wrote: On Fri, May 20, 2005 at 01:19:40PM +0200, Martijn Brouwer wrote: I have a Debian Sarge system with python 2.3 and python-gnome-2.6.1. Importing pygtk in the way described by the tutorial does not work: import pygtk pygtk.require("2.0") import gtk im

[pygtk] cannot import gnome

2005-05-20 Thread Martijn Brouwer
-device-manager works correctly, because it does not first import pygtk. Is this a feature change that should be reflected into the code of the applications, or is this a bug? Bye, Martijn Brouwer ___ pygtk mailing list pygtk@daa.com.au http://ww

Re: [pygtk] How to use "show" signal

2004-11-24 Thread Martijn Brouwer
has no content other than window1. > > > On Wed, 24 Nov 2004 08:38:32 +0100, Martijn Brouwer > <[EMAIL PROTECTED]> wrote: > > Yes, I did. > > > > Martijn > > > > > > > > > > On Tue, 2004-11-23 at 17:28 -0500, Chris

Re: [pygtk] How to use "show" signal

2004-11-24 Thread Martijn Brouwer
has no content other than window1. > > > On Wed, 24 Nov 2004 08:38:32 +0100, Martijn Brouwer > <[EMAIL PROTECTED]> wrote: > > Yes, I did. > > > > Martijn > > > > > > > > > > On Tue, 2004-11-23 at 17:28 -0500, Chris

Re: [pygtk] How to use "show" signal

2004-11-23 Thread Martijn Brouwer
Yes, I did. Martijn On Tue, 2004-11-23 at 17:28 -0500, Chris Lambacher wrote: > Did you set window1 invisible in your glade file? > > > Thanks for your fast answer. Your suggestion works partially. I changed > > my test program to what is shown below. > > import gtk > > import gtk.glade > > im

Re: [pygtk] How to use "show" signal

2004-11-23 Thread Martijn Brouwer
On Tue, 2004-11-23 at 21:20 +, Gustavo J. A. M. Carneiro wrote: > On Tue, 2004-11-23 at 20:51 +0100, Martijn Brouwer wrote: > You are connecting the signal _after_ it being emitted. Try setting > the 'visibile' property of window to false, in glade. Then, in the &

[pygtk] How to use "show" signal

2004-11-23 Thread Martijn Brouwer
ld function is not called. Where is my mistake? Thanks in advance for helping, Martijn Brouwer ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

[pygtk] using a "quit dialog"

2004-11-20 Thread Martijn Brouwer
lthough not in the correct status. When I then press cancel in the quit dialog, the main window does not react, except that I can quit it. But when I do so, gtk.main_quit() is not called. I hope somebody on the list can point me to the solution of my problem and explain me the behaviour I described.

[pygtk] periodically perform an action

2004-10-12 Thread Martijn Brouwer
do this in a gtk interface. I guess, the gtk.mainloop has to take care for calling my function. How do I achieve this. Bye, Martijn Brouwer ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ

Re: [pygtk] python gtk/gnome editor

2003-07-18 Thread Martijn Brouwer
have already fixed back to the way I want them. > > > > -Original Message- > > From: Martijn Brouwer [mailto:[EMAIL PROTECTED] > > I spent about 1 minute trying to figure out why you were flaming Martijn > after such a polite request. ;) > > Take car

[pygtk] python gtk/gnome editor

2003-07-17 Thread Martijn Brouwer
Hi, For a program I am writing I need a text editor that is written in Python and has a gtk2 or gnome2 interface. I searched freshmeat but found nothing. I contacted the author of Moleskine quit some time ago and he said he would come up with at gtk2 version, but the developement seems quite dea

[pygtk] gdk geometry for a gtk.Window.set_geometry_hints()

2003-06-12 Thread Martijn Brouwer
Hi, I need a GdkGeometry struct for use in a gtk.Window.set_geometry_hints() command, but I cannot find how to create such an object. I imported gtk and then gtk.gdk, but dir(gtk.gdk) did not show me anything relevant. Martijn -- Physics is a approximate description of a part of the physical

[pygtk] gdk geometry for a gtk.Window.set_geometry_hints()

2003-06-10 Thread Martijn Brouwer
Hi, I need a GdkGeometry struct for use in a gtk.Window.set_geometry_hints() command, but I cannot find how to create such an object. I imported gtk and then gtk.gdk, but dir(gtk.gdk) did not show me anything relevant. Martijn -- Physics is a approximate description of a part of the physical

[pygtk] position in scrolled window

2003-02-15 Thread Martijn Brouwer
Hi, I have added a scrolled window to my application. I want it to display always the lowest part of the widget inside it (a gtk.textview). How can I achieve this? Bye, Martijn ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/l

Re: [pygtk] is this C code?

2003-02-10 Thread Martijn Brouwer
On Sun, 9 Feb 2003 22:55:11 +0100 Martijn Brouwer <[EMAIL PROTECTED]> wrote: > I read this code example in the faq about caputering key strokes. > I do not understand the meaning of *args. It looks like a c pointer ;-) I guess it >is something else, but I could not find anythin

[pygtk] is this C code?

2003-02-09 Thread Martijn Brouwer
I read this code example in the faq about caputering key strokes. I do not understand the meaning of *args. It looks like a c pointer ;-) I guess it is something else, but I could not find anything in the python docs. Bye, Martijn def on_key_press(widget, event, *args): key = event.keyval

[pygtk] debugging pygtk

2003-01-17 Thread Martijn Brouwer
Hi John, I is a good idea to contact eachother by i.c.q. about this problem? Is faster than mailing once or twice a day... Martijn ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.as

Re: [pygtk] [cvs] compilation of atk.c fails

2003-01-17 Thread Martijn Brouwer
On 16 Jan 2003 11:47:20 -0200 Johan Dahlin <[EMAIL PROTECTED]> wrote: > > > Strange. > > > I seems that the code generator was interrupted when generating atk.c > > > Try to remove atk.c (it's generated) and the build/ directory (it's used > > > by distutils) > > > > > > If it still doesn't work,

Re: [pygtk] [cvs] compilation of atk.c fails

2003-01-16 Thread Martijn Brouwer
On 16 Jan 2003 20:47:34 -0200 Johan Dahlin <[EMAIL PROTECTED]> wrote: > > > > It might be due to a bogus import statement of some kind. > > > > > > Could you try to add a debug output and print out bmod just before that. > > > And modify setup.py to print out the argument send to the codegenerat

Re: [pygtk] [cvs] compilation of atk.c fails

2003-01-16 Thread Martijn Brouwer
On 16 Jan 2003 11:47:20 -0200 Johan Dahlin <[EMAIL PROTECTED]> wrote: > Looking on the output of atk.c it looks like the error is in the > following part of the code, codegen/codegen.py line 665 > > # This is working well > bymod = {} > for module, pyname, cname in imports: > bymod.setdefa

Re: [pygtk] [cvs] compilation of atk.c fails

2003-01-13 Thread Martijn Brouwer
On 13 Jan 2003 17:03:24 -0200 Johan Dahlin <[EMAIL PROTECTED]> wrote: > mån 2003-01-13 klockan 16.53 skrev Martijn Brouwer: > > When I compile pygtk using distuitls (./setup.py install >--prefix=/home/martijn/sys/) compilation of atk.c fails with: > > > > buildin

Re: [pygtk] [cvs] compilation of atk.c fails

2003-01-13 Thread Martijn Brouwer
On 13 Jan 2003 17:03:24 -0200 Johan Dahlin <[EMAIL PROTECTED]> wrote: > mån 2003-01-13 klockan 16.53 skrev Martijn Brouwer: > > When I compile pygtk using distuitls (./setup.py install >--prefix=/home/martijn/sys/) compilation of atk.c fails with: > > > > buildin

[pygtk] [cvs] compilation of atk.c fails

2003-01-13 Thread Martijn Brouwer
When I compile pygtk using distuitls (./setup.py install --prefix=/home/martijn/sys/) compilation of atk.c fails with: building 'atk' extension skipping atkmodule.c (build/temp.linux-i686-2.2/atkmodule.o up-to-date) gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DVERSION="1.99.14" -DPYGTK_

[pygtk] How to configure Text Tags

2003-01-10 Thread Martijn Brouwer
I have problems creating a read-only tag in gtk.TextBuffer. I have the following information: 1) from the API documentation of gtk.TextView: gtk.TextView.set_editable def set_editable(setting) setting : whether it's editable Sets the default editability of the gtk.TextView. You can overrid

Re: [pygtk] Python does not find PyGtk

2003-01-06 Thread Martijn Brouwer
On Mon, 06 Jan 2003 10:54:12 +0800 James Henstridge <[EMAIL PROTECTED]> wrote: > 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.

Re: [pygtk] Embedding interactive programs

2003-01-02 Thread Martijn Brouwer
On Thu, 2 Jan 2003 15:41:49 -0500 Andrew Reid <[EMAIL PROTECTED]> wrote: > I have something which may be related -- we had a requirement > for a "command-line console" which could operate while our > application was in GUI mode, which we used mainly for debugging > the GUI. It subclasses the Py

Re: [pygtk] Embedding interactive programs

2003-01-02 Thread Martijn Brouwer
On Thu, 2 Jan 2003 16:14:50 -0200 Christian Reis <[EMAIL PROTECTED]> wrote: > > > On Thu, Jan 02, 2003 at 08:50:39AM +0100, Martijn Brouwer wrote: > > I would like to be able to communicate in two ways with an interactive program: > > What does `interactive program&#

Re: [pygtk] Python does not find PyGtk

2003-01-02 Thread Martijn Brouwer
On Thu, 2 Jan 2003 11:53:09 -0200 Christian Reis <[EMAIL PROTECTED]> wrote: > So, is import pygtk required or not for pygtk2? >From my experience: yes Martijn ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read

Re: [pygtk] Embedding interactive programs

2003-01-02 Thread Martijn Brouwer
On Thu, 2 Jan 2003 11:52:46 -0200 Christian Reis <[EMAIL PROTECTED]> wrote: > On Thu, Jan 02, 2003 at 08:50:39AM +0100, Martijn Brouwer wrote: > > Hi, > > I would like to write an gtk/gnome frondend to an interactive program. > > This can be easily done using the zvt

[pygtk] Embedding interactive programs

2003-01-01 Thread Martijn Brouwer
Hi, I would like to write an gtk/gnome frondend to an interactive program. This can be easily done using the zvt terminal widget. However I would like my application to be able to communicate with the interactive program without displaying this on the terminal. When the application is forked usi

Re: [pygtk] Python does not find PyGtk

2002-12-31 Thread Martijn Brouwer
nces where this is required? > > Thanks > > john > > Martijn Brouwer wrote: > > >On Sat, 28 Dec 2002 23:18:30 +0100 > >Tom Cato Amundsen <[EMAIL PROTECTED]> wrote: > > > > > > > >>>ImportError: No module named gtk &g

Re: [pygtk] Python does not find PyGtk

2002-12-29 Thread Martijn Brouwer
On Sat, 28 Dec 2002 23:18:30 +0100 Tom Cato Amundsen <[EMAIL PROTECTED]> wrote: > > ImportError: No module named gtk > > > I guess you forgot to > import pygtk > pygtk.require("2.0") > > before "import gtk" No I did not forget it, I just did not know I had to. :) Now I read something about it

[pygtk] Python does not find PyGtk

2002-12-28 Thread Martijn Brouwer
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. Both are now installed in