Hi,
We are experiencing a strange bug in our application, which result
sometimes in a segfault, and sometimes in a freeze of the application.
it's related to accel groups.
In our application (quite big, and I haven't tried to make a small test
case, but if someone is interested I can point
Hey
The following code is getting me a segfault (found by mistake on my
part, meant to compare with another attribute):
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pygtk
pygtk.require('2.0')
import gtk
class myImage(gtk.Image):
def __init__(self):
return
image = myImage()
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Well -- you are not initializing gtk.Image. So it's your very own
mistake. I don't see a pygtk issue here.
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
On Sat, Oct 17, 2009 at 17:12, René 'Necoro' Neumann li...@necoro.eu wrote:
Well -- you are not initializing gtk.Image. So it's your very own
mistake. I don't see a pygtk issue here.
This is Python, any crash is a bug.
Regards,
Tomeu
___
pygtk
Il giorno sab, 17/10/2009 alle 17.30 +0100, Tomeu Vizoso ha scritto:
On Sat, Oct 17, 2009 at 17:12, René 'Necoro' Neumann li...@necoro.eu wrote:
Well -- you are not initializing gtk.Image. So it's your very own
mistake. I don't see a pygtk issue here.
This is Python, any crash is a bug.
Pietro Battiston wrote:
Il giorno sab, 17/10/2009 alle 17.30 +0100, Tomeu Vizoso ha scritto:
On Sat, Oct 17, 2009 at 17:12, René 'Necoro' Neumann li...@necoro.eu
wrote:
Well -- you are not initializing gtk.Image. So it's your very own
mistake. I don't see a pygtk issue here.
Il giorno sab, 17/10/2009 alle 20.49 +0300, Paul Pogonyshev ha scritto:
Pietro Battiston wrote:
Il giorno sab, 17/10/2009 alle 17.30 +0100, Tomeu Vizoso ha scritto:
On Sat, Oct 17, 2009 at 17:12, René 'Necoro' Neumann li...@necoro.eu
wrote:
Well -- you are not initializing
Pietro Battiston wrote:
What I mean is: where is it written that every crash is a bug, if Pygtk
developers themselves are not so clear on that (and I'm possibly too
ignorant)?
I am a PyGTK developer (not active currently), Matthias Classen is
not. He is a developer of GTK+ itself. I think it
Pietro Battiston wrote:
Il giorno sab, 17/10/2009 alle 20.49 +0300, Paul Pogonyshev ha scritto:
Pietro Battiston wrote:
Il giorno sab, 17/10/2009 alle 17.30 +0100, Tomeu Vizoso ha scritto:
On Sat, Oct 17, 2009 at 17:12, René 'Necoro' Neumann li...@necoro.eu
wrote:
Hi,
2008/8/29 Herwig Hochleitner [EMAIL PROTECTED]:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello!
My Custom DrawingArea keeps segfaulting me on being destroyed.
I traced it down to the following minimal example:
[PYTHON]
import gtk
import gobject
import gnome.ui
class
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello!
My Custom DrawingArea keeps segfaulting me on being destroyed.
I traced it down to the following minimal example:
[PYTHON]
import gtk
import gobject
import gnome.ui
class CustomDrawingArea(gtk.DrawingArea):
__gsignals__ =
Hi again,
maybe someone can help me if I narrow the problem? I've found out that
this segfault only occurs if one of my own extension modules that also
link against gtk is loaded before the gtk import statement. Moreover it
is unrelated to pyunit or distutils. What could be the problem?
Hi,
I've programmed a custom distutils command to run my unit tests. The
important part looks like this:
def __runTests(self):
'''
Runs all unit tests found in the folder 'test'.
'''
print --- start run tests
# append the build path to the pythonpath
Running Ubunu Gutsy; pycairo 1.4.0, pygtk 2.10.6
I'm using show_layout_line to display paragraphs, and it works just fine
if I do just one paragraph. However, if I do two paragraphs, I get a
segfault. I've tried different backends and they all show the same
behaviour, so I suspect it's in the
I guess the segfaults when calling gtk.glade.set_custom_handler() are
due to some internal mismatch (perhaps because python and gtk where
compiled with different compilers?). But the above should work (as
that is the recommended way as far as I could see). And I bet that
_some_ people have
Hi!
I'm trying to create a windows installer for a small app that uses
python + pygtk + gtk with the 'py2exe + innosetup' method. For that I
first have to get the app working with hand-installed python + pygtk +
gtk, of course (so that I can run py2exe and copy the necessary dll-s).
I installed
I have some extension code that uses a gtk.gdk.Pixmap object
(GdkPixmap) passed from the python layer
I'm using pycxx and args[0].ptr() is the PyObject pointer to the
pixmap object.
PyGObject *py_drawable = (PyGObject *)(args[0].ptr());
GdkDrawable *drawable =
Hello,
trying this program:
#!/usr/bin/env python
import gtk
from xml.dom import minidom
import exceptions
gtk.icon_theme_get_default()
try:
doc = minidom.parse(doesntmatter)
print doc
except exceptions.IOError,s:
pass
with python 2.4 and pygtk 2.4.1 (and
Hmm, on my machine it doesn't segfault.
I'm using libxml2 2.5.10, though.
Danny Milosavljevic on April 20, 2005 wrote:
Hello,
trying this program:
#!/usr/bin/env python
import gtk
from xml.dom import minidom
import exceptions
gtk.icon_theme_get_default()
try:
Hi,
Am Mittwoch, den 20.04.2005, 07:24 +0200 schrieb Danny Milosavljevic:
Hello,
trying this program:
#!/usr/bin/env python
import gtk
from xml.dom import minidom
import exceptions
gtk.icon_theme_get_default()
try:
doc = minidom.parse(doesntmatter)
print doc
I am having trouble with gtk segfaulting when I resize a TreeViewColumn
under certain conditions. Attached is a sample demonstrating this
behavior.
If you launch the sample, and try to resize the TreeViewColumns when
nothing in the TreeView is selected, it segfaluts. However, if you
first
On Thu, 2004-08-26 at 14:05, Jon Ellis wrote:
I am having trouble with gtk segfaulting when I resize a TreeViewColumn
under certain conditions. Attached is a sample demonstrating this
behavior.
Hi Jon,
this looks like bug #147913
http://bugzilla.gnome.org/show_bug.cgi?id=147913.
cheers,
On Sun, Jul 18, 2004 at 08:16:45PM -0300, Guilherme Salgado wrote:
Everything seems to work fine, unless you try to resize a
TreeViewColumn.
It's officially a bug, because Johan immediately said he didn't know how
to fix it wink.
Can you file a report, CC: us and attach your testcase? It could
Hello!
I'm writing an app wich have two TreeViews on the same window, and the
content of the second TreeView is based on the selected row of the first
one. There can be many (1000+) items on each TreeView, and as I'm
fetching the data displayed from a postgres database, I'm using the
Have you tried reproducing it on other Unstable boxes?
I've now reproduced it on another unstable box (powerpc
Do you have a minimal (20-line) testcase so others can run
and verify if the problem exists?
To reproduce the problem, I tried creating a version of the basictreeview example from
Thanks. Fixed in CVS.
A Sáb, 2004-07-03 às 23:36, Thomas Mills Hinkle escreveu:
Have you tried reproducing it on other Unstable boxes?
I've now reproduced it on another unstable box (powerpc
Do you have a minimal (20-line) testcase so others can run
and verify if the problem
On Fri, Jul 02, 2004 at 12:31:53AM -0400, Thomas Mills Hinkle wrote:
I have a funny feeling that this, like the other segfaults I experienced
when rearranging treeViews, will not be reproducible on other
machines -- but if it's standard on a debian unstable system, perhaps
someone else has run
I've been attempting to port pygtk-1.99.14 and gnome-python-1.99.14 to
SuSE 8.2 because the packages SuSE shipped are rather broken (built
without gnome.ui). I've been able to build the packages, but when I run
my application, I get a segfault in the glade_xml_new call.
At this point, I'm kind of
On Thu, Jul 24, 2003 at 08:51:42PM -0600, Don Allingham wrote:
I've been attempting to port pygtk-1.99.14 and gnome-python-1.99.14 to
SuSE 8.2 because the packages SuSE shipped are rather broken (built
without gnome.ui). I've been able to build the packages, but when I run
my application, I
Yes, gnome.ui is imported before glade is. The program works properly on
most linux distributions. The program has been properly init'ed, and
the glade file is a glade2 file.
The program works properly under 1.99.14 under RedHat and other
distributions. I can even duplicate with a very small
Don Allingham wrote:
I've been attempting to port pygtk-1.99.14 and gnome-python-1.99.14 to
SuSE 8.2 because the packages SuSE shipped are rather broken (built
without gnome.ui). I've been able to build the packages, but when I run
my application, I get a segfault in the glade_xml_new call.
At
Don Allingham wrote:
On Thu, 2003-07-24 at 21:52, James Henstridge wrote:
If there is no gnome.ui module, then it is not possible to initialise
the libgnomeui library. libglade is not guaranteed to function if you
do not initialise the libraries you use.
I built the missing pyorbit
Hi. I was wondering if anybody could confirm that I'm using the correct
technique to get a widget's parent container (and not necessarily it's
direct container).
My attempt (using get_ancestor()) segfaults if the widget isn't in a
container of the correct type. See below.
Admittedly, I'm
Graham Ashton wrote:
Hi. I was wondering if anybody could confirm that I'm using the correct
technique to get a widget's parent container (and not necessarily it's
direct container).
My attempt (using get_ancestor()) segfaults if the widget isn't in a
container of the correct type. See below.
Colin Walters [EMAIL PROTECTED] writes:
Paul Brannan [EMAIL PROTECTED] writes:
With this program:
[...]
I have no idea what's causing self=0x0, but I suspect that's why the
program is segfaulting.
Works fine for me using python-gnome 1.4.1.
Oops, spoke too soon, it doesn't work for
With this program:
from gtk import *
def button_press(widget, event):
if event.button == 3:
menu = GtkMenu()
menu.append(GtkMenuItem('foo'))
menu.append(GtkMenuItem('bar'))
menu.popup(widget, None, None, event.button, event.time)
window =
Paul,
Pass in None instead of widget as the first arg to menu.popup. Also need to
have the menu displayed. Changes below.
John
from gtk import *
def button_press(widget, event):
if event.button == 3:
menu = GtkMenu()
menu.append(GtkMenuItem('foo'))
37 matches
Mail list logo