I just tried your code with my checkout of gtk, and it worked fine. I
guess it is a bug in your copy of GTK. Try getting a newer one.
James Henstridge.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Mon, 21 Dec 1998, David M. Cook wrote:
I'm getting a seg fault when
at in gnome-python are:
pygnome/generate/zvt.defs
pygnome/zvtmodule.c
pygnome/gnome/zvt.py
James Henstridge.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Thu, 7 Jan 1999, J.W. Bizzaro wrote:
Sam Tannous wrote:
All,
I think we need to keep a list of real
ignore this message
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
.
When it is ready, I will tag it (probably with GNOME_PYTHON_0_99) and make
new tarballs.
James Henstridge.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Tue, 2 Feb 1999, Jim Joseph wrote:
I am trying to compile pygnome with gnome-libs .99.5 and I am getting
the following
with this snapshot, I will release it as
pygtk-0.5.10. Note that if you are building it out of CVS, you may want
to apply my automake-1.4 patches to get the Makefile.in's to build
correctly. They are in gnome-python/am-changes on the server.
James Henstridge.
--
Email: [EMAIL PROTECTED]
WWW
). Apparantly it does such
conversions and also string - font conversions.
I may also look at implementing the nullok tag for arguments in the .defs
files (which would fix the tooltips problem you bring up).
James Henstridge.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On 18
method when this happens.
James Henstridge.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Thu, 18 Feb 1999, Aaron Optimizer Digulla wrote:
Quoting James Henstridge [EMAIL PROTECTED]:
Just as an idea, what would people think about using the __getattr__ and
__setattr__
the final 0.5.11 once I propagate some of these useful
features to the GNOME portion.
The new release is available at
ftp://ftp.daa.com.au/pub/james/pygtk-SNAP-19990219.tar.gz
Ah well, I'm off to the free Custard concert down at UWA now.
James Henstridge.
--
Email: [EMAIL PROTECTED]
WWW: http
Probably just have to revert to the old way.
Convert getattr(self, i) to "self.get_data(i)" and setattr(self, i, a) to
"self.set_data(i, a)"
James Henstridge.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Tue, 23 Feb 1999, Sam Tannous wrote:
So
of stuff to pygtk. Also,
currently people can use the lower level _gtk module to write GTK programs
(and I know some people do use it -- they see it as a good way of
prototyping interfaces that can then be translated to C very quickly). I
wouldn't want this ability to be lost in any changes.
James
for
all the other GC attributes).
There are a few small bug fixes in gnome-python (_zvt module was not
loading correctly).
The releases are available at ftp://ftp.daa.com.au/pub/james/python/
James Henstridge.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
To unsubscribe: echo
, at the time when you call set_active(), had you added
any pages to the property box? My guess is that the segfault was caused
because there wasn't an `active page'.
James Henstridge.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Thu, 25 Feb 1999 [EMAIL PROTECTED] wrote
Yeah I know ... I put it there. Anyhow, you aren't supposed to be looking
in that directory right now :) The copy in /pub/GNOME/sources/latest is
the same, except for the version number.
James Henstridge.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Thu, 25 Feb 1999
Just in case you wanted to know, gtk+ 1.2 is out not. I doubt that
anything drastic changed in the last few days, so pygtk-0.5.11 should do
the trick.
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
the build
directory and typing ./libtool --version). If it is less than 1.2d that
would be your problem.
If you aren't using a i386 linux system, try copying the libtool,
ltmain.sh and libtoolize scripts from a recent gtk+ to the imlib and
gtk-engines packages and rebuilding.
James Henstridge.
--
Ema
branch until gtk 1.3 has stabilised a bit).
James Henstridge.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Sat, 27 Feb 1999, Michael Hudson wrote:
On Sat, 27 Feb 1999, James Henstridge wrote:
That is a truely wierd problem. May I ask what versions of glib, gtk
For those using CVS and wondering how to switch over to the stable 1.2
branches of glib and gtk+, here is the information I got off
gnome-hackers.
If you don't use CVS, ignore this message.
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
-- Forwarded message
. It also helps with install/bytecompiling of python
modules.
If you have any further questions about it, send another message.
James Henstridge.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Tue, 2 Mar 1999 [EMAIL PROTECTED] wrote:
Hi, I'm getting ready to release
for your
program.
James Henstridge.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Tue, 2 Mar 1999 [EMAIL PROTECTED] wrote:
Does somebody has a simple of how to use help in gnome.
I see all the function are in help.py but I can't figure out how to call
them
A post from a non list member (or member posting from different account.
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
-- Forwarded message --
Date: Wed, 3 Mar 1999 17:10:00 +0800 (WST)
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: BOUNCE
The argument to UIINFO_HELP is just a single word. So to add gnumeric's
help to your help menu, you would use UIINFO_HELP. The gnome libraries
will handle the actual file locations for you.
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Mon, 8 Mar 1999 [EMAIL
AFAIK, in gtk+-1.2, all that is needed for threading is to link with
libgthread, and use gdk_threads_enter() and gdk_threads_leave() to mark
code that calls GUI functions. So it would be necessary to export these
two functions to python. As well as this, it would be necessary to
tell the
I am close to releasing the new version of gnome-python and pygtk.
Here is a list of what has changed:
* gtkmodule.c: added optional support for not catching exceptions
in
callbacks. This way it should be a lot easier to debug a pygtk
program with pdb.
*
antialiased or normal canvas? Maybe you could try each one and see which
gives better performance.
James Henstridge.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Thu, 11 Mar 1999, Markus F.X.J. Oberhumer wrote:
People might be interested that the latest source code version of my
sformation 6-tuple is (w,x,y,z,0,0).
I think that is enough maths for a bit. The affine module should be
enough for most people.
James Henstridge.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Fri, 12 Mar 1999, David M. Cook wrote:
On Fri, Mar 12, 1999 at 05:48:21PM
For radio menu items, it is best to keep a reference to each (or use the
GtkItemFactory.get_widget), and look at the active attribute. Basically
the radio_menu_item_group is a singly linked list. I have not exposed
this for creation of radio items because I am not sure what happens if you
give
d when you want to call GTK
routines from another thread (ie. not from a signal handler or other
callback), call threads_enter() before and threads_leave() after.
If no one sees any bugs in this code, I will release it soon.
James Henstridge.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com
. For this your program would require
gnome-libs and gnome-python though.
James Henstridge.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Thu, 15 Apr 1999, Fuming Wang wrote:
Thanks James! I was able to get GdkColor like you descibed except the
method I was trying to use
This is a bit difficult, as there doesn't seem to be anywhere to pass in a
user_data argument, that is used in pygtk to keep a reference to the
python function.
James Henstridge.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Wed, 21 Apr 1999, David M. Cook wrote
You would need to access the allocation member of the GtkWidget class,
which is currently not wrapped. Expect to see it in pygtk-0.6.0
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Wed, 21 Apr 1999, Rick Ree wrote:
This may be a dumb question, but how can you
(and that
is before you add the extra function to the library :)
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Wed, 21 Apr 1999, David M. Cook wrote:
On Thu, Apr 22, 1999 at 10:37:53AM +0800, James Henstridge wrote:
This is a bit difficult, as there doesn't seem to be anywhere
snapshot I released, you could just use that.
James Henstridge.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Thu, 22 Apr 1999 [EMAIL PROTECTED] wrote:
Hello, have just tried a CVS-checkout of gnome-python. I get errors
rigth when i run autgen.sh. This is my first try
at
ftp://ftp.daa.com.au/pub/james/python/
Also, gnome-python is mirrored on ftp.gnome.org, and pygtk will soon be on
ftp.gtk.org. They will both be on ftp.python.org soon.
James Henstridge
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
To unsubscribe: echo "unsubscribe&qu
This list post bounced. Remember that you have to use the same address to
post as the address which mail is sent to (this was to fix the spam
problems on the list -- I still get one or two spams bouncing a
fortnight).
As for a GL area wrapper, I remember someone talking about doing a wrapper
a
The problem is something to do with dynamic linking. I am sure of that.
When imlib can't load an image with one of the compiled in image
libraries, it falls back on the imagemagick or netpbm. If imlib fails to
dynamically load the image loading code for example, this is a case when
it will fall
pygtk has not used swig for a while. I now use some .defs files like
those used to generate the guile and perl bindings. If you want to see an
example of wrapping up an addon widget for use with pygtk, I suggest you
look at the wrapper for the zvt library in gnome-python. Note that
pygnome programs when using pixmap themes has disappeared.
I suppose the question is, why did (presumably Guido) decide that loading
with the RTLD_GLOBAL flag was a bad idea?
Bill
James Henstridge wrote:
I was just wondering about this problem. I personally use python 1.5.1 (I
haven't
If the normal signature for the signal is:
func(canvas_item, event)
then if you connect the signal with:
item.connect("event", func, some_extra_arg)
the handler will be called with the signature
func(canvas_item, event, some_extra_arg)
You can add as many extra arguments as you want.
'm running the stock python installed with Red Hat 5.2 (python-devel is
newer though).
thanks for the help...
Miles
James Henstridge wrote:
Could you post the output of "gtk-config --libs gthread" and the output of
"python -c 'import thread'"? This would be helpf
Could you post the output of "gtk-config --libs gthread" and the output of
"python -c 'import thread'"? This would be helpful in diagnosing the
problem.
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Sat, 22 May 1999, mmc wrote:
Hi -
I'm attempting to
Usually the procedure is to create the smallest example that causes this
problem, and submit it to bugs.gnome.org. If you don't know the C
bindings for GTK/GNOME very well, I can translate a python example to C
that can be atached to the bug report. It is probably not a good idea to
send a
line);
+
/* If there are arrowheads, check the distance to them */
if (line-first_arrow) {
I will apply this patch to the CVS tree, and it will go into
gnome-libs-1.0.10.
James Henstridge.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Mon, 24 May 1999, J.W. Biz
It looks like the widgets that don't display correctly are the NOWINDOW
ones. That is, they don't have their own X window, and instead draw onto
their parent's window.
To get around this problem, try putting the NOWINDOW widgets inside
GtkEventBox widgets, which basically gives the no window
Just a reminder, you can only post to the list with the mail address you
subscribed with (because of the spam problem we were having). After my
exams, I may look into setting up a [EMAIL PROTECTED] similar
to what redhat has to allow people to register extra email addresses
without letting
In python versions 1.5.2, it would load extension modules with the
RTLD_GLOBAL flag, so all the symbols resolve nicely. This also has the
side effect that two extension modules may step on each other's symbols,
so it was changed in 1.5.2. (note that modifying python to use this flag
gets
Here is a list post that bounced. Just remember that you need to post
with the address you subscribed as.
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
-- Forwarded message --
Date: Wed, 2 Jun 1999 07:15:46 +0800 (WST)
From: [EMAIL PROTECTED]
To:
translation going for
rect's and the like but not rotation or shearing effects
Or have I completely missed the point?
Many thanks
Alexei
James Henstridge wrote:
Here is a list post that bounced. Just remember that you need to post
with the address you subscribed as.
To copy a style, use the style's copy() method. THen using get_style()
and set_style() you should be able to modify styles as much as you want.
I don't have a python example of this, but there is an example of doing
this in my gnorpm package (specifically the checksig.c file).
James.
--
Email:
You get a GdkColormap object with the get_colormap() method of a widget.
From there you can call the colourmap's alloc method in one of two ways:
colormap.alloc('blue')
colormap.alloc(0, 0, 0x)
As for the GtkText widget, you have to delete some text and reinsert it to
change its colour.
Take a look at the radio button example in testgtk.py. It should give you
an idea how to do it. For the first button, you create it with
GtkRadioButton(None, "label"), and the rest with GtkRadioButton(button1,
"label") where button1 is one of the other buttons in the group.
James.
--
Email:
Currently I have not exposed any of the X related bits in GDK, so the
answer is no. I may be able to add support though. What do you need the
X window ID for?
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Mon, 28 Jun 1999, Mitch Chapman wrote:
Sorry, I should
There are a few ways of going about this. If the list is not very big,
you can get gtk to automatically resize a column with the
GtkCList.set_column_auto_resize(col) method. If you want to find the
width of a particular piece of text and you have a reference to the font
object
This message bounced because it came from a non member address. If you
want to post, you must post from the address you subscribed as.
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
-- Forwarded message --
Date: Wed, 30 Jun 1999 16:42:07 +0800 (WST)
AFAIK, there are no ORBit bindings for python yet (at least not in CVS).
The pyIDL module in the GNOME CVS tree is simply a wrapper for the IDL
library. I think it was going to be used for the C++ IDL compiler. If
there are python ORBit bindings, I would love to know where they are as
well.
If you only want to do the sizing once, a more efficient way would be to
add all the rows and call the GtkCList.columns_autosize() method which
will resize all the columns to the optimal widths without causing them to
resize every time a cell is changed.
James.
--
Email: [EMAIL PROTECTED]
WWW:
You need to render() the image before displaying it. So after the "im =
..." line, add "im.render()", or im.render(width, height) if you want to
change its size.
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Thu, 1 Jul 1999, Travis Oliphant wrote:
I have just
You can use the GtkPaned.set_position() method to set the initial position
of the handle. So if you want the clist to be 100 pixels wide, use
"hpaned.set_position(100)" (assuming the clist is in the left pane).
If you are talking avout vertical size of the hpaned widget, it is
probably best to
I have heard about this problem before, and am looking into it. It only
seems to occur when thread support is enabled (note that no threads need
be created for the problem to occur).
I don't have a solution at present.
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
Call the size_request() method on the clist, which will return the optimal
height/width that the clist would use. This should give you the width of
the clist.
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Mon, 5 Jul 1999, Harry Henry Gebel wrote:
James
That function is expecting a string instead of raw bits. You could simply
pass the list through the following code:
data = string.join(map(chr, data), '')
As for cursors, you can only use 2 colour bitmaps -- X does not support
using pixmaps for cursors. I don't think there is any way to get
Another bounced message.
I can't say what the problem is without seeing the problem code though.
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
-- Forwarded message --
Date: Tue, 13 Jul 1999 11:00:01 +0800 (WST)
From: [EMAIL PROTECTED]
To: [EMAIL
While looking at adding some numpy support to pygtk, I took a look at
their arrayobject.h header that is used by other extensions to add numpy
support. It looked like a good idea, so I wrote a similar header pygtk.h
for the _gtk module. You can view the header at:
I will fix this in the next release.
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Fri, 16 Jul 1999, Paul Clifford wrote:
The GNOME canvas expects an object of GdkImlibImage (as returned by
_gdkimlib.gdk_imlib_load_image) when adding an image and I'm currently
This problem can be fixed by using python-1.5.1. It is cased because the
dynamic libraries that are loaded by gdk_imlib to load images expect
gdk_imlib's symbols to be visible in the main executable. This was no
problem with python = 1.5.1, since extension modules were loaded with the
Yes that is a mistake. I have fixed it in CVS now. The
gdk_threads_enter() functions should not be called from within the gtk
mainloop anyway, so that code was broken.
In other news, I have added a wrapper for gtkglarea to pygtk. There are a
few examples in the examples/gl directory,
wrote:
On Mon, Jul 19, 1999 at 02:08:02PM +0800, James Henstridge wrote:
In other news, I have added a wrapper for gtkglarea to pygtk. There are a
few examples in the examples/gl directory, including a translation of the
mesa gears demo. To use it, you will also need the PyOpenGL package
Those bindings look pretty good. It would be nice if you made them a bit
easier to configure though. After fixing the paths, the
testserver/testclient seemed to work quite well.
It looks like it has lots of potential. Getting it to use the interface
repository (which I hear is working in the
I will send in a bug report to the GTK guys about this, so they can fix
it. I would expect that the bug falls under the same category as the
other threading related ones found earlier on the list.
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On 19 Sep 1999, Andreas
I don't know about how soon there will be bindings -- gconf is still quite
new, and Havoc may end up changing the interfaces a bit as it develops.
But it should be in gnome-python at some point.
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Tue, 21 Sep 1999, J.W.
I was trying to work out what to do about the gnome extensions in
libglade. I think it would be best if there is only one libglade module
(so that we don't run into problems with binary packages).
What I was thinking of doing was creating a simple _libgladegnome module
as part of gnome-python
Bill Allen has been putting together a python code generator for glade
which some of you may be interested in. It is available at:
http://www.serve.com/ballen/glc/glc.html
We are looking at including it with future versions of pygtk. It is not
complete yet, but it should do simple
dependency.
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On 9 Oct 1999, Hrvoje Niksic wrote:
James Henstridge [EMAIL PROTECTED] writes:
Now in order to have the same python object refer to a particular
gtk object all the time, the gtk object would need to hold
This message just bounced because the the address was not in the mailing
list. It may be interesting to some people who are looking for a ctree
example.
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
-- Forwarded message --
From [EMAIL PROTECTED] Wed
Those functions are already implemented. The list of drawing functions
implemented is:
filter(lambda x: x[:5]=='draw_', dir(gtk))
['draw_arc', 'draw_array', 'draw_gray_image', 'draw_line', 'draw_lines',
'draw_pixmap', 'draw_point', 'draw_points', 'draw_polygon',
'draw_rectangle',
I don't know if it does grey scale images (it may convert them to 24 bit
RGB internally if you load one from a file). The create_image_from_data()
routine expects 24-bit RGB image data as well. If all you want to do is
display greyscale data to the screen, you could use the gdkrgb code (which
The select_row signal of the clist widget takes 4 arguments (like the
error message says). The definition of the signal handler should be
something like:
def some_func(clist, row, column, event):
...
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Tue, 19
', delete_event)
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Fri, 22 Oct 1999, Jozsa Kristof wrote:
On Fri, Oct 22, 1999 at 09:39:43AM +0800, James Henstridge wrote:
The run_and_close() routine creates another mainloop to run the dialog.
This mainloop
function, the keyword for the column spacing is column_spacing, and not
col_spacing)
Remi.
-Original Message-
From: James Henstridge [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 21, 1999 6:36 PM
To: [EMAIL PROTECTED]
Subject: RE: [pygtk] Greyscale images with imlib
If you remove the line:
win.connect("delete_event", mainquit)
Does it make any difference? When the WM decoration is used to close the
window, the default action will be taken (ie. destroy the widget), and the
mainquit will be executed anyway.
The call to create a GnomeAbout() widget and call
If you are inside the gtk main loop, timeouts should be getting serviced
correctly. If you are not in the gtk main loop, then timeouts will not
get serviced on time (they will be called next time you get into the main
loop with a call to mainloop() or mainiteration()).
I don't know about the
Remember that you can only post with the address you subscribed with.
In answer to your question, can you do something like:
def button_press(clist, event):
if event.button == 3: # check for right mouse button
res = clist.get_selection_info(event.x, event.y)
The buttons are most likely sharing the same style object. To get around
this, use code like:
# get a copy of the style object ...
style = button.get_style().copy()
style.whatever = somevalue
button.set_style(style)
Alternatively, use:
button.set_name('button_name')
And have an rc
Someone did some work on a python code generator for glade. I posted a
message about it to this list a while back. Here is the contents of that
message:
Bill Allen has been putting together a python code generator for glade
which some of you may be interested in. It is available at:
I am not sure about the problem with the canvas example program not
working with aa canvas. As for rotation, it does not fully work in non aa
mode. Specifically, it will rotate the position of the shape, but may not
rotate the actual canvas item (try an image or text item). The aa canvas
will
If you are writing a wrapper for an extra widget library using the pygtk.h
header file, you will need to call the init_pygtk() function (defined as a
macro in the header file) in your module initialisation function.
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On
Doing proper transparency is difficult. If you just want to draw a shaped
pixmap onto a square tile, that is much easier. You would use something
like:
import gtk, GdkImlib
im1 = GdkImlib.Image('greytile.png')
pix, mask = im1.render()
im2 = GdkImlib.Image('shapedimage.png')
tmppix,
A few corrections ...
On Tue, 9 Nov 1999, James Henstridge wrote:
Doing proper transparency is difficult. If you just want to draw a shaped
pixmap onto a square tile, that is much easier. You would use something
like:
import gtk, GdkImlib
im1 = GdkImlib.Image('greytile.png
If you have a reference to the toplevel, you can just call its destroy()
method. This will remove it from screen and destroy it. Any references
to the widget you still have will still be valid, as GtkWidgets are
reference counted objects. Of course, if you have connected a handler to
the
zvt supports ANSI colour escape sequences. If you pass the escape
sequences to the zvt widget, it will render them correctly. There should
be lots of docs on this somewhere on the net.
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Fri, 12 Nov 1999, Hassan Aurag
You should be able to use python threading without problems. Just
remember that you have to acquire the GTK thread lock with
threads_enter(), and release it with threads_leave() afterwards, when you
do any GTK calls.
Note that you don't need to acquire the gtk thread lock from within signal
There is a GtkWidget.grab_focus() method to grab the focus for a widget.
You may want to connect to the enter_notify_event to make the terminal
grab focus when the cursor enters the terminal window. The other option
is to remove focusability of some other widgets with
What order did you compile things in? If you want gnome support in the
libglade wrapper found in gnome-python, you need to compile gnome-libs
then libglade and then gnome-python (libglade only builds gnome support
if gnome-libs is installed, and gnome-python will only build
libglade-gnome
No. That version did not have the glade/gnome support module. It just
means they didn't include the 1.0.50 in the distribution (maybe because
it was released after their cutoff date).
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Sun, 21 Nov 1999, Michael
take a look at the dnd example. I think it is in examples/simple. There
is also some dnd test code in examples/testgtk (if you have the
gnome-python files, this will be in pygtk/examples/...)
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Mon, 6 Dec 1999 [EMAIL
You must have an ancient version of gnome-libs :) Try installing
gnome-libs-1.0.5x on your system.
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Tue, 7 Dec 1999, Javi [iso-8859-1] Román wrote:
I can not compile:
I wrote the gtkglarea wrapper based on what was in cvs back in july. It
will compile against the version of gtkglarea in CVS, which has the
swapbuffers function marked as deprecated, so I used swap_buffers. The
gtkglarea guy has not released a new version since then, which is why the
current
You would use the GtkCTree.node_moveto function. You probably want
something like:
ctree.node_moveto(node, 0, 0.5, 0.0)
The second argument is a column number, the third is the vertical row
alignment, and the last is the column alignment (I used 0.0 to put the 0th
column at the left of the
On Sat, 22 Jan 2000, Gerald Gutierrez wrote:
Hi all.
The last release of pygtk was from a while ago. Previous to that the
releases were fairly frequent. Is this because pygtk is fairly complete
now and there isn't much more to do, or have things just slowed down
around here lately?
We
I suppose I should put in a message stating that the pyglade module is
deprecated. It is probably better to use the libglade module, which uses
libglade rather than being pure python. It handles the default_width and
default_height attributes correctly.
James.
--
Email: [EMAIL PROTECTED]
WWW:
How did you start the other application? If you are using os.system()
then what you are seing is the correct behaviour -- the parent process
suspends until the child dies. If you don't want this behaviour, you will
need to do the fork/exec yourself.
Something like this:
pid = os.fork()
if
1 - 100 of 695 matches
Mail list logo