Most likely Mandrake's python was not using the RTLD_GLOBAL hack that
Red Hat Linux had. If libimlib-jpeg.so needs a symbol called
"_gdk_malloc_image", it needs to have a DT_NEEDED entry that says what
library to get it from. (i.e., it needs to include -lgdk on the link
line)
As you can see:
[
In GTK there are window widgets and no-window widgets. No-window
widgets don't have backgrounds. Labels are no-widow widgets, they
simply paint on the window of their parent widget. So, to change the
background behind a label you have to change the background of its
parent.
Cheers,
Matt
On S
On Thu, Jun 20, 2002 at 08:00:58PM -0300, Christian Reis wrote:
>
> Is there a reason for this rather inconsistent UI for control focus
> shifting?
It is consistent with the keyboard navigation documentation:
http://developer.gnome.org/projects/gap/keynav/
Cheers,
Matt
___
Try Ctrl+Tab.
Cheers,
Matt
On Thu, Jun 20, 2002 at 10:03:43PM +0200, Thomas Guettler wrote:
> Hi!
>
> Normaly you can change the focus of the controls with "tab". But in a
> GtkText control it does not work. Shift-Tab works, but it only gets
> backwards. Is there a magic shortcut?
This exists in GNOME (for GTK+ 1.2 and GNOME 1.4 platforms). GTK+ 2.0
also has stock dialog functionality.
Cheers,
Matt
On Tue, Jun 18, 2002 at 10:14:17PM +0200, Thomas Guettler wrote:
> On Tue, Jun 18, 2002 at 08:45:20PM +0200, Thomas Guettler wrote:
> > Hi!
> >
> > Is there a Method/Class f
===
RCS file: /cvs/gnome/gnome-python/pygtk/ChangeLog,v
retrieving revision 1.412
diff -u -r1.412 ChangeLog
--- ChangeLog 11 Jun 2002 19:14:38 - 1.412
+++ ChangeLog 14 Jun 2002 20:39:15 -
@@ -1,3 +1,9 @@
+2002-06-14 Matt Wilson <[EMAIL PROTECTED]>
+
+ * pyg
urn gtk.FALSE
>
> A CVS update today has pulled in the following changes which seem
> like the likely cause ...
>
> 2002-06-03 Matt Wilson <[EMAIL PROTECTED]>
>
> * gtk/gdk-types.defs (EventExpose): added to make the code
> generator write GdkEventExpose * for
On Sat, Jun 01, 2002 at 10:30:31PM -0600, Collins wrote:
> I have a dialog box that I want to open over the middle of my current
> window? How do I accomplish this?
>
> At present, gtk maps this window to the next available space on the
> screen, where it is not obvious that it is related to my
I've committed fixes to CVS:
2002-05-31 Matt Wilson <[EMAIL PROTECTED]>
* examples/pygtk-demo/demos/list_store.py (fixed_toggled): the
path argument must be a tuple. Ints are not automatically
converted to tuples any more.
* pygtype.c (pyg_value_
On Fri, May 10, 2002 at 06:17:19PM -0700, Colin Fox wrote:
> Hey everyone.
>
> How many people are responsible for keeping gnome-python and pygtk up to
> date? Is it just James, or are there others?
There are several of us, but mainly James and I take care of it.
We've not had much time to work
Which version are you using?
Cheers,
Matt
On Sat, May 04, 2002 at 04:49:32PM -0700, Colin Fox wrote:
> On Sat, 2002-05-04 at 16:43, Colin Fox wrote:
> >
> > There is apparently a gnome_canvas function called 'window_to_world'
> > that seems to be missing in pygnome. Am I missing something, or
in PyGTK+ 2.x:
label.set_property('text', text)
Cheers,
Matt
On Wed, May 01, 2002 at 03:31:18PM +0200, Erik Grinaker wrote:
>
> Also; I seem to be having some problems when the function is called the
> second time around; Python gives this error:
>
> File "main.py", line 142, in di
Applied to CVS, thanks for the patch.
Cheers,
Matt
On Thu, Apr 25, 2002 at 01:21:58PM -0500, Art Haas wrote:
> Hi.
>
> The ability to make spin buttons was lost in the
> latest release. This patch fixes that - the
> second parameter is "gdouble", not "gbutton",
> in accordance with the GTK he
On Mon, Apr 22, 2002 at 03:26:28PM +0100, David C Sterratt wrote:
> 1280 -rwxr-xr-x 1 root system 1310720 Apr 22 15:19 lib_gtkmodule.so*
Here's the problem - libtool is installing the dynamically loaded
modules with lib_ in the front. Probably a libtool bug...
Cheers,
Matt
In Python the insert method doesn't need the length argument - it is
optional. If omitted it will use the length of the string passed in
automatically.
Cheers,
Matt
On Mon, Mar 04, 2002 at 03:19:30PM +0100, Pier Carteri wrote:
> I'm sorry, probably I must count to 10 before sending a mail to
On Mon, Mar 04, 2002 at 02:50:57PM +0100, Pier Carteri wrote:
>
> editor(pid:1549): Gtk-CRITICAL **: file gtktextbuffer.c line 476
> (gtk_text_buffer_emit_insert): assertion 'g_utf8_validate (text, len,
> NULL)' failed
>
> The files are normal text file; where is the error?
They must have some
self.category_combo.set_property('editable', gtk.FALSE)
cheers,
Matt
On Thu, Feb 21, 2002 at 06:49:56PM -0500, Edgar Denny wrote:
> When testing code with pygtk-1.99.7 I get lots of messages of the
> form:
>
> ./recipe_win_ui.py:182: DeprecationWarning:
> self.category_combo.entry.set_edita
On Sat, Feb 16, 2002 at 11:07:26AM +0800, James Henstridge wrote:
>
> I believe the function takes a list of such tuples.
a sequence of them, so either a list or a tuple...
Matt
___
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/l
On Wed, Jan 16, 2002 at 07:07:52PM +0100, Michele Campeotto wrote:
>
> How do I do gtk_label_new_with_mnemonics()?
label = gtk.Label('_Change the above color')
label.set_property("use-underline", gtk.TRUE)
> Where are GtkDialogFlags defined? I can find them in gtk-types.defs,
> but I don't
'Twas already in CVS.
Cheers,
Matt
On Wed, Jan 16, 2002 at 12:22:45PM +0100, Michele Campeotto wrote:
> Hello,
> as a part of my migration to PyGtk2, I have translated the ItemFactory
> demo form C to Python.
> I get MANY segfaults when playing with radio menus, though. Is it my
> f
Will be fixed in cvs in a few minutes.
Matt
On Thu, Jan 03, 2002 at 09:31:10AM -0600, Skip Montanaro wrote:
>
> I've been away from the Gtk 1.3 release cycles for a month or two. Upon
> returning to it yesterday, I got this new warning:
>
> `GtkDialogFlags' is not an enum type
>
> Is thi
Either take the gtk lock in your idle handler or disable threads using
the snapshot of stable pygtk and using gtk._disable_threading() before
you call the mainloop for the first time.
Cheers,
Matt
On Wed, Dec 26, 2001 at 10:15:20AM -0700, Don Allingham wrote:
> I've tried adding a "autosave" ba
EEEP. Oops, that was me. Sorry about that guys.
Matt
On Fri, Dec 14, 2001 at 10:15:04AM -0500, Toby D. Reeves wrote:
> Hello,
>
> I discovered the same "feature" on Redhat 7.2 last week. It turns out that
> pygtk is compiled as part of the gnome-python package. PyGtk IS compiled
> with
Apply the attached patch and use None as the iter.
(fixed in CVS)
Cheers,
Matt
On Thu, Dec 06, 2001 at 09:53:55AM -0500, Robert Nikander wrote:
> On 2001.12.05 21:09 James Henstridge wrote:
>
> >iter = model.get_iter(1, 6)
> >
>
>
> Ah. I was confused about tuples/paths vs iterators.
The constructor for TreeStore is like this:
treestore = gtk.TreeStore(gobject.TYPE_STRING)
No need to pass in a number.
Cheers,
Matt
On Wed, Dec 05, 2001 at 12:42:45PM -0500, Robert Nikander wrote:
> Well I don't care too much about writing my own TreeModel. Is there
> another way to put a
The python implementation of a GtkTreeModel uses tuples as the iter.
Build up the path to the new node (which is also a tuple which lists
the nodes to get to the updated node), and pass it as both the path
and the iter.
Cheers,
Matt
On Wed, Dec 05, 2001 at 10:14:33AM -0500, Robert Nikander wrot
Get the authors to register it as a boxed type.
Cheers,
Matt
On Wed, Nov 28, 2001 at 02:23:31PM -0600, Skip Montanaro wrote:
>
> James> If you want to see an example of distributing a binding outside
> James> of the pygtk module, take a look at the gnome-python package. It
>
pygtk 1.99.x already has a glade module that uses libglade 2.
cheers,
matt
On Wed, Nov 28, 2001 at 09:07:26AM -0600, Ralph Walden wrote:
> Does it now are are there any plans for
> Glade/libglade to work with the new GTK2/pygtk API?
___
pygtk mailing
for example, when I wrapped atk:
add atkmodule.la to pyexec_LTLIBRARIES.
add:
atkmodule_la_LDFLAGS = -module -avoid-version -export-symbols-regex initatk
atkmodule_la_SOURCES = \
atkmodule.c \
atk.c
atkmodule_la_LIBADD = $(ATK_LIBS)
add:
atk.defs
atk.override
to EXTRA_DIST
The generic r
This is because /usr/lib/libimlib-xpm.so doesn't contain the proper
DT_NEEDED entries for other libraries it needs. Probably a problem
with libtool or the way Imlib uses it. import gtk first.
Matt
On Fri, Nov 23, 2001 at 07:52:36AM -0700, Don Allingham wrote:
> I've had several people
I've implemented this a bit differently (sans memory leak, etc) and
checked it in.
On Wed, Nov 07, 2001 at 05:41:11PM +0100, Skip Montanaro wrote:
>
> I hacked up some better support for GError** args today. Unfortunately, I'm
> piling up diffs between what's in CVS and what I have, so it's get
On Wed, Nov 14, 2001 at 11:29:18AM +0100, Skip Montanaro wrote:
> Are there any HTML rendering widgets that work with the Gtk 1.3/2.0 API?
> Any that have been wrapped into PyGtk yet?
gtkhtml2 uses pango for i18n text rendering, etc.
http://gtkhtml2.codefactory.se/. There are not Python bindings
The defs files aren't quite 100% autogenerated at this point. The
pygtk ones have various default values noted in them that can't be
extracted from the headers. I've checked in a .defs file that should
make things work for now, but I still need to make sure the defs file
is fixed up for the rest
There's quite a bit of work to make everything happy - I'll have it
fixed up by morning.
Matt
On Mon, Oct 22, 2001 at 02:03:34PM -0500, Skip Montanaro wrote:
>
> Thanks, I eventually figured out the coercion stuff. To work around the
> problem I figured I'd just can float conversion for now.
btw, if you want to know how this function works, see:
http://www.python.org/doc/2.2/api/number.html#l2h-229
On Mon, Oct 22, 2001 at 01:24:53PM -0500, Skip Montanaro wrote:
> Compiling gtk-types.c (v. 1.29) from the latest CVS gives several warnings
> and two errors:
This all has to do with numeric coercion. CVS GTK+ has just changed
the GdkAtom to be a pointer, not a long. Stick with a released 1.3.9
or wait till it gets fixed.
Cheers,
Matt
On Mon, Oct 22, 2001 at 01:24:53PM -0500, Skip Montanaro wrote:
> Compiling gtk-types.c (v. 1.29) from the latest C
OK, should be fixed now.
Cheers,
Matt
On Sun, Oct 21, 2001 at 12:41:59PM -0400, Matt Wilson wrote:
> Oh, you're right. Gimme a sec.
>
> Matt
>
> On Sun, Oct 21, 2001 at 06:40:52PM +0200, Murray Cumming wrote:
> > On Sun, 2001-10-21 at 18:03, Matt Wilson wrote:
>
Oh, you're right. Gimme a sec.
Matt
On Sun, Oct 21, 2001 at 06:40:52PM +0200, Murray Cumming wrote:
> On Sun, 2001-10-21 at 18:03, Matt Wilson wrote:
> > I fixed this in CVS last week. Can you try pulling latest from HEAD?
>
> It does
I fixed this in CVS last week. Can you try pulling latest from HEAD?
Cheers,
Matt
On Sun, Oct 21, 2001 at 10:16:33AM -0500, Mike DeSimone wrote:
> >On Sun, 2001-10-21 at 01:25, Sebastian Rittau wrote:
> >
> >h2def.py is in the pygtk cvs module, in the codegen directory. It scans
> >.h files an
Well, the tail end of all of the PyTypeObjects will have to be fixed.
It looks like you should be able to use tp_cache where we were using
tp_defined before, but I'm not sure.
Matt
On Fri, Oct 19, 2001 at 02:51:34PM -0500, Skip Montanaro wrote:
>
> >> Actually, I'm now using 2.2b1+...
>
>
On Fri, Oct 19, 2001 at 02:22:15PM -0500, Skip Montanaro wrote:
>
> Actually, I'm now using 2.2b1+... I update both Python and Gtk/PyGtk stuff
> frequently, at least a few times a week. I had no problems yesterday. I
> guess I'll take a look and see what the latest PyGtk checkins were.
They c
Are you using Python 2.2a4?
Matt
On Fri, Oct 19, 2001 at 02:01:06PM -0500, Skip Montanaro wrote:
>
> I'm trying to build PyGtk from CVS and get this compilation error:
>
> gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include/python2.2
>-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2
On Thu, Oct 11, 2001 at 10:11:08AM +0800, James Henstridge wrote:
>
> I don't know if overriding __del__ is supported for new style types yet.
>
> James.
Yea, according to Guido it isn't, and making it work is going to be
hard and screws up GC.
Matt
On Wed, Oct 10, 2001 at 01:00:11PM -0400, Matt Wilson wrote:
>
> Now, your case puzzles me. I think that there may be some problems
> with extended types and __del__? Does __del__ chain properly? Or do
> we need code to do that in our pygobject before we tear down the whole
> o
The style objects and helpers haven't been reimplemented yet and isn't
fully bound.
Cheers,
Matt
On Thu, Oct 11, 2001 at 02:21:25AM +0900, Tamito KAJIYAMA wrote:
> Hi,
>
> I have trouble with regard to PyGTK 1.99.3 (together with GTK+
> 1.3.9 and Python2.2a4). I know that the `Style' object i
On Wed, Oct 10, 2001 at 04:50:12PM +0200, Peter Kese wrote:
>
> Presumably when label is deleted, its __del__ method should get called.
> But it doesn't. When and how should I use unref(), sink() and other
> methods?
>
> How and when do PyGtk objects ever get deleted.
Here's the trick. This py
The problem here is that some functions have void return values and
throw up g_log, or functions still succeed when a g_log is issued.
There isn't a clean cross platform way to know which python wrapper
caused a warning at any given time. Lets say two threads are calling
into functions around the
On Tue, Oct 09, 2001 at 11:19:42AM +0800, James Henstridge wrote:
>
> Unfortunately, the GdkGC object in 1.99.x doesn't handle this shorthand
> for setting attributes like it did in 0.6.x -- this statement just sets an
> object attribute. The set_foreground() method should work instead.
If you
No, you're changing the style that the label is using when drawing
itself on its parent.
Matt
On Mon, Oct 08, 2001 at 03:48:46PM -0500, Skip Montanaro wrote:
>
> Matt> That means you want to modify the *label* inside the button:
>
> Thanks, that works as I had hoped, but I thought Label wi
That means you want to modify the *label* inside the button:
import gtk
def click(b, *args):
label = b.get_child()
b.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse("red"))
label.modify_fg(gtk.STATE_NORMAL, gtk.gdk.color_parse("green"))
def mainquit(*args):
gtk.main_quit()
def
On Mon, Oct 08, 2001 at 11:09:51AM -0500, Skip Montanaro wrote:
>
> gc = w.window.new_gc()
> color = gtk.gdk.color_parse("red")
> gc.set_foreground(color)
You'd be surprised, but it's actually the background that you want to
modify here.
w.modify_bg(gtk.STATE_NORMAL, color)
Cheers,
nome-python/pygtk/gobjectmodule.c,v
>
> Version 1.59 was just created today:
>
> revision 1.59
> date: 2001/10/03 15:46:24; author: msw; state: Exp; lines: +6 -3
> 2001-10-03 Matt Wilson <[EMAIL PROTECTED]>
>
> * gobjectmodule.c (pygobject_repr): tw
Yesterday I bound gtk.gdk.get_default_root_window(),
gtk.gdk.screen_width(), etc.
Matt
On Mon, Oct 01, 2001 at 03:34:18PM -0500, Skip Montanaro wrote:
>
> (I'm using the 2.0 API, but not yet the Gtk-less/Py2.2-compatible names.)
>
> Given a arbitrary realized widget I can get the root window d
I was just pulling from CVS HEAD...
Matt
On Sat, Sep 29, 2001 at 10:42:15PM +0200, Tom Cato Amundsen wrote:
> Can you make it available for us, or mail it directly to me, and
> I'll upload it somewhere?
>
___
pygtk mailing list [EMAIL PROTEC
Looks pretty good, but I have a couple of crashers.
pygtk_demo.py crashes after making a GtkTextTag. This is because
self->inst_dict wasn't set to NULL in pygobjet_new. If you agree this
is the fix, I'll commit it. After making this change the crash went
away.
The other crash is on shutdown i
On Thu, Sep 27, 2001 at 08:38:37PM +0400, Dmitry Smirnov wrote:
> I'm now try to use gtk-1.3.7 and pygtk-1.99 and I have a few questions:
>
> 1. How I can change color of line (rectangle and other) in GtkDrawingArea? I can't
>find any function which return GdkColor (or constructor of GdkColo
This raises a question - do we want to do gtk_widget_set_name by
default on extended classes?
Cheers,
Matt
On Fri, Sep 21, 2001 at 02:02:49PM -0400, Matt Wilson wrote:
> I believe the 'class' part of the rc style refers to the GtkObject
> name of the widget in question. Thus
I believe the 'class' part of the rc style refers to the GtkObject
name of the widget in question. Thus you have to call it a
GtkButton. Python class inheritance doesn't change the GtkObject name
of a widget.
Cheers,
Matt
On Fri, Sep 21, 2001 at 11:04:59AM -0500, Skip Montanaro wrote:
> The f
On Tue, Sep 18, 2001 at 02:08:05PM -0500, Skip Montanaro wrote:
>
> Can someone running Gtk+/PyGtk 2.0 look at this? It's bugging the hell out
> of me. I don't know if I'm doing something wrong or I've stumbled upon a
> Gtk+ or PyGtk wart of some sort.
It looks like some generic problem with t
Aah, never mind - it's button.set_property.
Sorry - still fumbling my way around...
Matt
On Mon, Sep 17, 2001 at 05:39:53PM -0400, Matt Wilson wrote:
> The following code shows a button with a label of "foo", not "bar".
> Is this supposed to work?
>
&g
The following code shows a button with a label of "foo", not "bar".
Is this supposed to work?
#!/usr/bin/python2
import gtk
win = gtk.Window()
button = gtk.Button("foo")
button.label = "bar"
win.add(button)
win.show_all()
gtk.mainloop()
Cheers,
Matt
_
It seems that the first defined constructor of a given type "wins" as
far as becoming the __init__ for that type. For classes like GtkImage
this is causing us only to be able to make new GtkImage objects from
pixmaps.
Should we do keyword args or magick checking to figure out which
constructor t
On Fri, Jun 08, 2001 at 02:31:20PM +1200, Rob Brown-Bayliss wrote:
>
> Is there any reason for not building by default? for example stability?
When I wrote the binding the API wasn't stable, and I haven't touched
it since. So, I guess the answer is "yes." ;)
Matt
_
The python bindings for gtkhtml are out of date. I will see if I can
get around to updating them soon...
Matt
On Sat, Oct 07, 2000 at 07:02:38PM +0200, joseantsa wrote:
> Hello:
> I can't compile gnome-python-1.0.53 (see bottom).
> I have installed:
> -> libtool-1.3.5
> -> gtkhtml-
IIRC, the delete key is a reserved accelerator -- it removes any
accelerator from the menu entry.
Matt
On Wed, Aug 30, 2000 at 08:54:12AM -0400, [EMAIL PROTECTED] wrote:
> Greetings,
>
> Is there a way to add the Delete key (as an accelerator) menu bar.
>
> I tried 'del', '', 'delete'
call the widget's "size_allocation()" method. This will only give you
good data after the allocation step has been done for the widget.
Matt
On Mon, Aug 28, 2000 at 03:42:11PM +0200, Martin Grimme wrote:
> Hello,
>
> I want to get the current size of a container widget (like GtkHBox or GtkLayo
Here:
from gtk import *
from threading import *
import time
class Worker(Thread):
def __init__ (self, widget):
Thread.__init__(self)
self.counter = 0
self.widget = widget
def run (self):
while 1:
threads_enter()
self.widget.set
On Sat, Aug 05, 2000 at 06:26:22PM +0200, Tom Cato Amundsen wrote:
> Forcing everybody to use gnome, is not that good either...
> Gnome is NICE, but sometimes you want to go with just gtk+.
GtkHTML isn't designed to force everyone to use GNOME. If there is a
problem, it's purely technical, not p
FORKED LIBRARIES ARE BAD. Don't promote the use of them. If you have
a problem with the GtkHTML requirement on gnome-print, send in a patch
-- DON'T FORK IT.
Jeez.
Matt
On Sat, Aug 05, 2000 at 09:48:04AM -0400, [EMAIL PROTECTED] wrote:
> On Sat, 05 Aug 2000 01:55:53 +0200, Tom Cato Amunds
I had some, they worked. I think that disc died, though.
Matt
On Tue, Aug 01, 2000 at 05:12:55PM -0400, [EMAIL PROTECTED] wrote:
>
> I made python/pygtk bindings for gdk-pixbuf. It's the first time
> I've worked with the Python C-API, so... it probably sucks badly, :)
> but should be
On Wed, Jun 28, 2000 at 05:06:27PM +0800, James Henstridge wrote:
>
> If you are using a Red Hat or Red Hat derived Linux distro, you should be
> able to get things to build by installing the python-devel package. There
> may be a copy of pygtk included with the distro already.
If it's Red Hat
Add:
mygthtext.set_events (KEY_RELEASE_MASK)
Matt
On Tue, Jun 20, 2000 at 11:38:50AM +0200, Bellamy Bruno wrote:
> Hi there...
>
> I'm trying to catch the key_release event in a GtkText, so I had to
> use a mygtktext.add_events(GDK.KEY_RELEASE_MASK).
> But it seems to work only after I
On Sat, Jun 17, 2000 at 10:19:55PM +, Hassan Aurag wrote:
>
> Hi,
>
> I am not sure about that, but no one here has complained about lack
> of gnome-python 1.2 that is compatible with gnome 1.2.
gnome-python is completely compatible with 1.2
> I am waiting impatiently for gnome-python
On Mon, Jun 05, 2000 at 03:54:40PM +0200, Hrvoje Niksic wrote:
>
> How do you know the PID's of the other instances?
Oh, in that case, use CORBA and a registraction system. :)
I'm only kidding.
Matt
___
pygtk mailing list [EMAIL PROTECTED]
http:
On Mon, Jun 05, 2000 at 03:17:02PM +0200, Luca Minuti wrote:
>
> My program must do this: if someone make some change to the data that the
> program
> manipulate other instance of the same program must update their own view.
Have your program set up a named pipe and add an input hander on that
f
Be sure you installed the pygnome-libglade package.
Matt
On Mon, Jun 05, 2000 at 12:42:38AM -0700, Mike Payson wrote:
> I haven't recieved a response to my previous question, so I thought a
> bit more info might help... After executing the libglade tutorial at
> http://www.baypiggies.org/10mint
I think the binding is out of date with respect to the ever-changing
gtkhtml API. I'll get to fixing it eventually.
Matt
On Fri, May 26, 2000 at 07:42:06PM +0200, Bicsak Attila wrote:
> On Thu, 25 May 2000, Hassan Aurag wrote:
> > You need to recompile the whole gnome-python package with --with
Actually, I take that back: it should work with threads as well.
Matt
-
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
On Thu, May 25, 2000 at 08:26:12AM -0400, Harry Henry Gebel wrote:
> If I set this environment variable in the program prior to importing gtk,
> gnome.ui, and libglade will it still work? My intention is to put mainloop
> in a try clause and put up a GnomeErrorDialog with a traceback, append the
>
One quick hack is to turn off Python's handling of SIGINT:
import signal
signal.signal(signal.SIGINT, signal.SIG_DFL)
This means that Ctrl+C will make the program die immediately (of
course, that means you can't hook it for a clean shutdown).
Matt
On Tue, May 02, 2000 at 11:41:32AM -0500, LF11
On Wed, Mar 22, 2000 at 10:03:01PM +0100, Michael Lauer wrote:
>
> Can you forsee if and to what amount these changes will break code which is
> written now ?
As long as you don't use the low level gtk bindings (the _gtk module),
the impact should be minimal.
Matt
To unsubscribe: echo "unsubscr
On Wed, Mar 22, 2000 at 01:43:06AM +0100, Michael Lauer wrote:
>
> Hmm - I thought that especially the hand crafted stuff
> do the most work in hiding the naturally not object oriented
> nature of the native GTK language - C.
Umm... nope. The object system in GTK+ wrapps quite well under
python.
The PyGTK bindings are not 100% hand crafted. A good deal of them are
generated automatically from a generic definition file. Work has
stared on a branch that will enable us to build even more of the
bindings automatically.
I've never found a tool that can do a complete wrapping 100%
automatica
On Mon, Mar 13, 2000 at 09:10:06AM +0100, Hrvoje Niksic wrote:
> % python a.py
> GnomeUI-Message: The antialiased canvas is buggy. Please do not use it unless you
>know what you are doing.
I know what I'm doing. ;)
It's not bad in simple cases. You have to get very complex before you
see majo
On Sun, Mar 12, 2000 at 11:36:22PM -0500, François Pinard wrote:
> Hi, people.
>
> The code below shows the case of a line needing anti-aliasing. Would someone
> knowledgeable tell me if/how I can, within `pygtk', produce an anti-aliased
> line, or else (:-), how I could handle an alpha channel
I actually talked to Tom about this last night - there should be
python support in 1.5, I think - and he said the current state was a
mix of the patches from you and from Andrew.
Matt
On Sat, Mar 11, 2000 at 01:57:56PM +0800, James Henstridge wrote:
> I submitted my patches to automake to Tom Tr
On Thu, Mar 09, 2000 at 03:04:03PM +0100, Andreas Voegele wrote:
> Probably LC_NUMERIC should be set to "C" in gtkmodule.c after calling
> gtk_set_locale():
This only hides the problem. I will investigate.
Matt
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
Fixed in gtk+-1.2.7.
Matt
On Thu, Mar 09, 2000 at 12:58:59PM +0100, Javi Roman wrote:
> Hi:
>
> In each widget notebook I get this error:
>
>
> Gtk-CRITICAL **: file gtkwidget.c: line 1584 (gtk_widget_map): assertion
> `GTK_WIDGET_VISIBLE (widget) == TRUE' failed.
>
>
> Why? How can I avoid
I don't see the problem in the latest release. What are you looking
at? 1.0.51?
Matt
On Sat, Feb 19, 2000 at 03:40:38PM +0100, Martin Preishuber wrote:
> Hi,
>
> Still not knowing how to get the height of the title column of
> the clist widget I'm playing around a lot and found 2 typos
> in gtk
On Fri, Feb 18, 2000 at 10:18:31AM +0100, Frederic Gobry wrote:
> On another topic, what is the status of gettext.py ? Does anybody use it on
> sparc Solaris, with po files generated on this architecture ? I sent a patch
> a long time ago to fix endianness-related problems, but it has not made its
On Wed, Feb 16, 2000 at 01:07:16PM -0500, Hassan Aurag wrote:
> Hi
>
> I have a question for the GtkHtml widget thing. What is the most stable version of
>gnome that has it?
GtkHtml isn't in a stable GNOME snapshot. It kinda sits off to the
side at the moment. It's part of the GNOME 1.2 dev
pyyglade is a deprecated xml parser/widget hierarchy creator. You
should use the libglade python module, which is a wrapper for
libglade, has more functionality, and is faster than pyglade.
Matt
On Wed, Feb 09, 2000 at 01:35:49AM -0800, Gerald Gutierrez wrote:
>
> At the risk of ostracizing my
text = GtkText()
text['can_focus'] = FALSE
Try that. I dunno if it'll work.
Matt
On Wed, Jan 26, 2000 at 11:51:23PM -0500, Stephan R.A. Deibel wrote:
> Hi,
>
> I have a GtkHBox with two GtkTexts in it and when I hit the focus is
> shifted between texts instead of inserting a tab character in
On Mon, Jan 24, 2000 at 11:56:30PM -0500, Kelly Lynn Martin wrote:
> I spent a while fighting with this because I don't have gtkhtml built
> on this system (I can't seem to get libwww to build, which gtkhtml
> requires). I ended up hacking configure.in to make it work right, and
> will submit the
On Mon, Jan 24, 2000 at 07:41:55PM -0500, Edward Muller wrote:
>
> Then why does this:
> -
> from gtk import *
>
> foo = GtkObject()
>
> foo.set_data('fubar','myvalue')
foo is an empty GtkObject wrapper! There isn't anything underneath.
It's an empty shell. You can't set data
On Mon, Jan 24, 2000 at 04:17:54PM +0100, wrobell wrote:
> Will you apply it for the next release of pygtk?
There's no way to tell - I've never seen it!
Matt
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
On Mon, Jan 24, 2000 at 12:15:14PM +0100, Andreas Degert wrote:
> wrobell <[EMAIL PROTECTED]> writes:
>
> [...]
> >
> > 3) Hashable GtkObject?
> Some time ago I sent a patch to this list, along with the suggestion that
> i could send patches to make other objects hashable too, but there was no
On Sun, Jan 23, 2000 at 07:15:46PM -0500, Edward Muller wrote:
> Any chance that the next release of PyGtk/Gnome will support the
> following:
>
> 1) Some type of set_data method
> (see
> http://developer.gnome.org/doc/API/gtk/gtkobject.html#GTK-OBJECT-SET-DATA)
GtkObject already has set_data an
You're trying to use pyglade. Use libglade - which is a python
wrapper for the libglade library. pyglade parses the XML glade
descriptions to construct the widget tree. It does not support GNOME
widgets and will constantly be out of date.
You're not missing a RPM - you'll need to build gnome-p
from the gnome-python source package:
gnome-python-1.0.50/pygnome/examples/clock-applet.py
Matt
On Sat, Jan 22, 2000 at 06:07:11PM -0800, Randolph Fritz wrote:
> Hi, folks!
>
> I'm trying to write "post-it" (tm:) note panel applet as a first
> project in PyGnome and I'm wondering if there's an
1 - 100 of 141 matches
Mail list logo