Am Fre, den 30.04.2004 schrieb Steven Howe um 06:12:
> I have a dialog window that I would like to remove all decorations.
> By all I mean the left or 'window menu' and right decoration, minimize,
> maximize and 'close window'.
Hi Steven,
take a look at gtk.Window.set_decorated at [1].
dialog_wi
Am Fre, den 23.04.2004 schrieb Johan Dahlin um 21:41:
> > Why doesn't it exit if I hit Ctl-C? It just sits there. I have to hit
> > Ctl-Z then kill %1. My glib_version is (2, 2, 2). I'm running on Solaris 9
> > should that make a difference.
>
> For gtk.main a special timeout handler is instal
Hi Christian!
On Fri, 2004-03-26 at 22:05, Christian Robottom Reis wrote:
> On Fri, Mar 26, 2004 at 09:31:03PM +0100, Jan Weil wrote:
> > TBH this is one of the reasons I'm using the Ruby-GNOME2 bindings
> > nowadays.
> > I'm not sure if I should say this on pygtk
I remember a thread about this topic, start here:
http://www.daa.com.au/pipermail/pygtk/2003-August/005628.html
This is a workaround in Python I posted then:
http://www.daa.com.au/pipermail/pygtk/2003-August/005640.html
I haven't used it in real world, though.
TBH this is one of the reasons I'm
On Sun, 2004-01-18 at 06:46, Sridhar R wrote:
> Agreed. But what if you have to set properties for
> the top-level window. Your solution means one cannot
> design top-level windows in glade and that has to be
> done manually in the program, after which the `child`
> widget as to be gtk_widget_a
Am Sam, den 17.01.2004 schrieb Sridhar R um 13:31:
> I have one doubt regarding libglade. How is it
> creating the widgets from glade file. It seems like
> the widgets are created during creation of GladeXML
> object.
That's true.
> I am searching for a way to _apply_ glade file to
> existing w
Hi,
looking at the libgnomecanvas wrapper code I get the impression that it's currently
not possible to create custom canvas items by subclassing the existing ones in
python.
Is that correct?
I was trying to set up a simple composite item as a subclass of CanvasGroup (see
attachment).
Obviously
Hi Pier,
nice work! Thanks a lot!
Just some comments:
1) I had to add an
'import pygtk
pygtk.require('2.0')'
to make it work.
2) If I scroll back in history using 'up' I am not able to get back to
the empty prompt afterwards.
3) Maybe the standalone version could react on 'CTRL-d' by exiting?
Lorenzo Gil Sanchez schrieb:
Sorry, but I can't find the o.get_name and o.set_name methods in the
gtklabel.c file (or any other file). Could you please put an example or
give me some more detailed pointer?
These methods were meant as an abstract example for a property called
'name' (take GtkWidget
Hi Lorenzo,
I also struggled with subclassing Gobject recently and I posted my
experiences to this list to share them.
You can find my posting here:
http://www.daa.com.au/pipermail/pygtk/2003-August/005609.html
Hope this helps,
Jan
Lorenzo Gil Sanchez schrieb:
Hi,
I'm trying to understand how t
http://ftp.gnome.org/pub/GNOME/desktop/2.2/2.2.2/sources/gnome-icon-theme-1.0.6.tar.bz2
Erik Grinaker wrote:
> Can someone please tell me how I can get an icon from the current
> GNOME theme,
> specifically the default folder icon?
>
> I've been googling for a while, with no luck, and I can't seen
Christian Reis schrieb:
P.S. Would be that a big problem to create a search engine of list archive?
Believe me, find there anything isn't easy...
No, but most of the really useful answers are in the FAQ down there ;)
Or you can either use google with 'site:www.daa.com.au [pygtk] bla' or
even si
Jan Weil schrieb:
I don't like this idea either.
Especially because it's quite easy to emulate this behaviour in Python
(see example attached).
That's obviously not an option if you had to wrap every gtk widget by hand.
This one wouldn't let me sleep. But it's really
Iñaki García Etxebarria schrieb:
But IMO the main question is whether it is really advantageously to map
the properties to attributes.
I think so, it produces readable code, and many times is very natural.
And, to me at least, the design of the properties api in gobject is
thought with this kind o
Jan Weil schrieb:
But could someone please enlighten me, why am I supposed to implement
'do_set_property' and 'do_get_property'?
Once again the source was with me.
I collected my experiences as a newbie to Glib's type and object system
approaching it from the Python sit
Christian Reis kiko at async.com.br wrote:
Ah; Note that this is wrong here. You should not return None from
getattr, or all lookups on the object for non-existent attributes will
return None. This should be:
try:
return self.__dict__[key]
except KeyError:
raise AttributeErr
The (IMO) proper way to achieve this is to overwrite the original stock
item.
Use (untested):
gtk.stock_add(gtk.STOCK_SAVE_AS, "Rename", 0, "", "")
See
http://www.moeraki.com/pygtkreference/pygtk2reference/gtk-functions.html#function-gtk--stock-add
Jan
>
> I want to use the STOCK_SAVE_AS button
I don't like this idea either.
Especially because it's quite easy to emulate this behaviour in Python
(see example attached).
Jan
Jon Willeke schrieb:
This may not be a democracy, but I would vote against this change.
Merging namespaces like this is asking for trouble. If it is done at
all, it
Did you try this code?
I get (and this is what I expected):
[...]
File "./mygtk.py", line 21, in __getattr__
if self.__properties and key in self.__properties:
File "./mygtk.py", line 21, in __getattr__
if self.__properties and key in self.__properties:
File "./mygtk.py", line 21, i
Jan Weil schrieb:
If I create a subclass of gobject.GObject in Python, can I somehow
install my own set of properties?
Sorry for constantly decreasing the SNR of this list.
The source is with me and I eventually found the example for gobject
properties.
I'm even learning how to search a ma
If I understand this correctly, every GObject (class) has a set of
properties and whenever one of these properties is changed a 'notify'
signal is emitted.
So that in terms of MVC a view can connect to its model's 'notify' signal.
Is that right so far?
If I create a subclass of gobject.GObject i
I'm wondering whether it's possible to access the gtk.Tooltips group
used by glade.
So that I can add tooltips for widgets which are not part of the glade
tree and call tooltips.disable() for this group.
Regards,
Jan
___
pygtk mailing list [EMAIL P
OK, I wish I had joined this list a week ago.
I wouldn't have missed the 'GtkTree documentation' thread.
Helps a lot.
Thanks
"Jan Weil" schrieb am 31.07.03 13:58:38:
>
> If I have a list whose elements have among others an attribut which is a list again,
> c
Hi all,
If I have a list whose elements have among others an attribut which is a list again,
can I display this list by the help of a TreeView?
Let' s say I have a list of houses and each house keeps a list of its windows.
Can I display it this way:
house1
|
---> window1
---> window2
---
24 matches
Mail list logo