[I'm re-posting this from http://www.gnomedev.com/viewtopic.php?t=36]
Hi there. I'm trying to work out how to run a callback when my
application's main window is given top level focus. I'm using PyGTK,
but I think my question is really a general GTK+ one.
How are you supposed to do it? I can't
that I did looked into this, but I found that
in order to avoid memory leaks in long running processes that
created/destroyed a lot of widgets, I had to explicitly call destroy()
myself. I confess I'm not even sure if del calls it for you...
--
Graham Ashton
a positive
integer or nothing I think you'll need to look elsewhere.
You may be building a better UI if you add a checkbox to cover the
case where you don't want to specify an integer; i.e. ticking the box
de-sensitises the spin button and signifies None.
--
Graham Ashton
On Thu, 2004-08-26 at 15:30, Guillaume Desmottes wrote:
Hi!
I would like to use distutils to install a gconf schemas.
The distutils doc is very poor and I don't understand how to make that.
The 'manual' command is:
GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2
On Fri, 2004-08-27 at 21:48, Douglas Soares de Andrade wrote:
How to make a form init the execution maximized using libglade. I already did
the window and it is work perfectly.
The only thing left to do is make it start maximized.
Just call maximize() on the window before you enter the
On Wed, 2004-08-18 at 19:12, Gabriele Erba wrote:
Hi, I am new in Pygtk. I would like to know if is possible to use the
tray notification area with Pytgk. I try to search in the documentation
but with no result.
You need to wrap the stuff in libegg. Ross Burton has a good tutorial on
wrapping
On Thu, 2004-08-05 at 06:23, Sridhar R wrote:
Graham Ashton [EMAIL PROTECTED] wrote:
On Wed, 2004-08-04 at 01:40, Sridhar R wrote:
Graham Ashton [EMAIL PROTECTED] wrote:
If anybody wants a really simple implementation to this kind of wrapper
class feel free to rip off
this.
Ah, I see. I hadn't gathered that bit. I can see the attraction for the
automation, but it had never even occurred to me do it.
Thanks.
--
Graham Ashton
___
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read
On Wed, 2004-08-04 at 01:40, Sridhar R wrote:
Graham Ashton [EMAIL PROTECTED] wrote:
If anybody wants a really simple implementation to this kind of wrapper
class feel free to rip off the WidgetWrapper class hierarchy that I've
knocked up here (it's tiny):
http://cvs.sourceforge.net
On Wed, 2004-07-28 at 16:54, Doug Quale wrote:
Christian Robottom Reis [EMAIL PROTECTED] writes:
The issue I raised was fear of namespace conflicts that would be
introduced by this, but I think it's rather minor.
I don't actually have a strong opinion whether that change would be
good,
On Wed, 2004-07-21 at 13:41, Gustavo J. A. M. Carneiro wrote:
A Qua, 2004-07-21 às 11:07, Lorenzo Gil Sanchez escreveu:
El mié, 21-07-2004 a las 11:54, Graham Ashton escribió:
I'm using a rather old version of PyGTK though (2.0), and in my eternal
optimism thought it worth checking
checking whether or not it's possible to
implement the CellEditable interface in the latest versions of PyGTK.
Is Lorenzo's Window hack still the best way to do it?
Thanks,
Graham.
[1] http://www.mail-archive.com/[EMAIL PROTECTED]/msg06091.html
--
Graham Ashton
On Sun, 2004-03-07 at 19:02, Murray Cumming wrote:
On Fri, 2004-03-05 at 16:14, Christian Robottom Reis wrote:
Hey there,
We're providing a new PyGTK release candidate for testing:
http://www.gnome.org/~jdahlin/pygtk-2.2.0-RC1.tar.gz
That's great. Well done, and I hope this
at the moment.
--
Graham Ashton
___
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
play with it for long so have
no idea if it's nice to interact with.
--
Graham Ashton
___
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
On Mon, 2004-02-09 at 21:53, David M. Cook wrote:
On Mon, Feb 09, 2004 at 11:39:37AM +, Graham Ashton wrote:
I was wondering if it's possible to do row specific tooltips.
See http://bugzilla.gnome.org/show_bug.cgi?id=80980
Thanks for that. I'll see if I can do the nasty workaround
On Fri, 2004-01-30 at 15:26, Graham Ashton wrote:
Hi. I'm trying to put an arbitrary GTK widget inside a treeview cell,
and am having difficulty finding out how to do it.
Apologies for responding to my own message, but I found a way to achieve
the same result (multi-line text inside a cell
way).
Thanks.
--
Graham Ashton
___
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
On Mon, 2004-02-09 at 11:33, Graham Ashton wrote:
Apologies for responding to my own message, but I found a way to achieve
the same result...
Just to continue this monologue for a little longer, somebody requested
the code, so here it is...
--
Graham Ashton
class ChangeCellRenderer
, but have no
idea how to get that info back into the TreeView via the TreeViewColumn.
Do I need to set the user-data property on the GenericCellRenderer, or
something?
Thanks.
--
Graham Ashton
___
pygtk mailing list [EMAIL PROTECTED]
http
On Tue, 2003-11-18 at 20:59, Gustavo J. A. M. Carneiro wrote:
There's an example in the source dist (gnome-python/examples/nautilus),
or here:
http://cvs.gnome.org/bonsai/rview.cgi?cvsroot=/cvs/gnomedir=gnome-python/gnome-python/examples/nautilus
Thanks. It does look pretty
far:
http://developer.gnome.org/doc/whitepapers/nautilus/nautilus-internals.html
Thanks.
--
Graham Ashton
___
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
'
Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkObject'
Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkObject'
Segmentation fault
--
Graham Ashton
___
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
On Tue, 2002-09-10 at 17:58, Christian Reis wrote:
On Tue, Sep 10, 2002 at 05:39:11PM +0100, Graham Ashton wrote:
The only problem is that every time I press the Alt-arrow combination
the focus moves around between the various widgets in the interface
(i.e. just as it normally does
#WIDGET_STYLES
--
Graham Ashton
___
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
it if necessary; perhaps, though, it is already there and I
didn't find it?
I'd happily help you test it (it would be rather useful to me).
Is there any interest from the developers in patches for stuff like
this?
--
Graham Ashton [EMAIL PROTECTED
):
if not os.path.exists(filename):
raise IOError, No such file or directory: '%s' % filename
In general, if you can re-write your code to make the comment redundant,
it's usually a good idea.
Cheers.
--
Graham Ashton
___
pygtk mailing list [EMAIL PROTECTED]
http
On Wed, 2002-05-15 at 13:30, Christian Reis wrote:
On Tue, May 14, 2002 at 07:43:51PM +0100, Graham Ashton wrote:
I notice that to capture a key press you don't specify
GDK.KEY_PRESS_MASK, yet you can still connect the window to the
key_press_event. Why does this work?
The window
excellent PyGTK Tutorial (about
half way down the page):
http://www.moeraki.com/pygtktutorial/sec-eventhandling.html
--
Graham Ashton [EMAIL PROTECTED]
___
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ
While we're on the subject of key snooping, why doesn't PyGTK have a
binding to the GTK+ global key snooper, which would surely be a better
way to do all this? Is it just that nobody needed it?
--
Graham Ashton [EMAIL PROTECTED]
___
pygtk mailing list
(button_press_event, gtk.mainquit)
ebox.connect(key_press_event, gtk.mainquit)
ebox.realize()
window.add(ebox)
window.show_all()
gtk.mainloop()
I'm fairly new to this, am I doing anything wrong? I'm using PyGTK 0.6.8
on Python 2.2.
--
Graham Ashton
pygtk and libglade).
I will definitely be having a look at that at some point, but for the
moment I have to stick with the old versions as porting the rest of our
code base over to 2.0 would be a big job.
How solid are the 2.0 python bindings, in comparison to the older
versions?
--
Graham
with it to play around,
drop me a line and I'll post it. It's only short.
So my question is - am I doing something wrong (most likely), or is this
a leak? I'm using the latest stable pygnome (i.e. on GNOME 1.4), with
Python 2.2, all compiled from source.
Thanks.
--
Graham Ashton
On Mon, Feb 25, 2002 at 10:59:14AM +0100, Johan Dahlin wrote:
m?n 2002-02-25 klockan 03.26 skrev Graham Ashton:
If I want to arrange these thumbnails in a grid of image previews
(similar to the way Nautilus arranges preview images when in View as
Icons mode),
GnomeCanvas
, May 21 2001, 13:28:32)
[GCC 2.95.3 20010315 (Debian release)] on linux2
Type copyright, credits or license for more information.
import gnome
import gnome.ui
import gnome.applet
Traceback (most recent call last):
File stdin, line 1, in ?
ImportError: No module named applet
--
Graham Ashton
35 matches
Mail list logo