From shankargiri at gmail.com Fri Dec 2 08:52:34 2011 From: shankargiri at gmail.com (Shankar Giri Venkita Giri) Date: Fri, 2 Dec 2011 02:52:34 -0500 Subject: [Pygui] Problem with PyGUI on Ubuntu 11.10 (Greg Ewing) In-Reply-To: References: Message-ID: <6562A3CE-00DC-4432-A00C-61AB0BA2985D@gmail.com> Fixed the problem. Recompile gobject-introspection-1.30.0 from sources with debugging symbols enabled and install it. Do an ldconfig to update the library cache and voila?no segfaults and PyGUI starts working. On Nov 25, 2011, at 6:00 AM, pygui-request at python.org wrote: > Send Pygui mailing list submissions to > pygui at python.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.python.org/mailman/listinfo/pygui > or, via email, send a message with subject or body 'help' to > pygui-request at python.org > > You can reach the person managing the list at > pygui-owner at python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Pygui digest..." > > > Today's Topics: > > 1. Re: Problem with PyGUI on Ubuntu 11.10 (Greg Ewing) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 25 Nov 2011 10:40:01 +1300 > From: Greg Ewing > To: Bhargav Mangipudi > Cc: pygui at python.org > Subject: Re: [Pygui] Problem with PyGUI on Ubuntu 11.10 > Message-ID: <4ECEB9B1.9070308 at canterbury.ac.nz> > Content-Type: text/plain; charset=UTF-8; format=flowed > > Bhargav Mangipudi wrote: > >> /usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: >> g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' >> failed >> import gobject._gobject >> /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: >> specified class size for type `PyGtkGenericCellRenderer' is smaller than >> the parent type's `GtkCellRenderer' class size >> from gtk import _gtk >> /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: >> g_type_get_qdata: assertion `node != NULL' failed >> from gtk import _gtk >> [1] 3181 segmentation fault python grid_view.py > > I have no idea what's happening there. It looks like your gtk > or pygtk installation is messed up somehow. You could try asking > about this on the pygtk list. > > -- > Greg > > > ------------------------------ > > _______________________________________________ > Pygui mailing list > Pygui at python.org > http://mail.python.org/mailman/listinfo/pygui > > > End of Pygui Digest, Vol 18, Issue 3 > ************************************ From shankargiri at gmail.com Fri Dec 2 10:15:55 2011 From: shankargiri at gmail.com (Shankar Giri Venkita Giri) Date: Fri, 2 Dec 2011 04:15:55 -0500 Subject: [Pygui] Problem with PyGUI on Ubuntu 11.10 (Greg Ewing) In-Reply-To: <6562A3CE-00DC-4432-A00C-61AB0BA2985D@gmail.com> References: <6562A3CE-00DC-4432-A00C-61AB0BA2985D@gmail.com> Message-ID: <6F3AB682-2A0C-412F-A951-3735D6334865@gmail.com> On further experimentation, libgirepository-1.0.so.1.0.0 is the library that causes the segfault. I rebuilt this library without debugging symbols and even stripped it so that it closely matches the original file packaged with Ubuntu 11.10 in size (there is a slight difference though). And the examples worked without a hitch. Something in the original ubuntu binary is causing a segfault. Since the original binaries are stripped, there is no way to know which version of gcc was used to compile it. Maybe a compiler bug (original binaries may have been compiled by a different version compared to the gcc packaged). On Dec 2, 2011, at 2:52 AM, Shankar Giri Venkita Giri wrote: > Fixed the problem. Recompile gobject-introspection-1.30.0 from sources with debugging symbols enabled and install it. Do an ldconfig to update the library cache and voila?no segfaults and PyGUI starts working. > > > > On Nov 25, 2011, at 6:00 AM, pygui-request at python.org wrote: > >> Send Pygui mailing list submissions to >> pygui at python.org >> >> To subscribe or unsubscribe via the World Wide Web, visit >> http://mail.python.org/mailman/listinfo/pygui >> or, via email, send a message with subject or body 'help' to >> pygui-request at python.org >> >> You can reach the person managing the list at >> pygui-owner at python.org >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of Pygui digest..." >> >> >> Today's Topics: >> >> 1. Re: Problem with PyGUI on Ubuntu 11.10 (Greg Ewing) >> >> >> ---------------------------------------------------------------------- >> >> Message: 1 >> Date: Fri, 25 Nov 2011 10:40:01 +1300 >> From: Greg Ewing >> To: Bhargav Mangipudi >> Cc: pygui at python.org >> Subject: Re: [Pygui] Problem with PyGUI on Ubuntu 11.10 >> Message-ID: <4ECEB9B1.9070308 at canterbury.ac.nz> >> Content-Type: text/plain; charset=UTF-8; format=flowed >> >> Bhargav Mangipudi wrote: >> >>> /usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: >>> g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' >>> failed >>> import gobject._gobject >>> /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: >>> specified class size for type `PyGtkGenericCellRenderer' is smaller than >>> the parent type's `GtkCellRenderer' class size >>> from gtk import _gtk >>> /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: >>> g_type_get_qdata: assertion `node != NULL' failed >>> from gtk import _gtk >>> [1] 3181 segmentation fault python grid_view.py >> >> I have no idea what's happening there. It looks like your gtk >> or pygtk installation is messed up somehow. You could try asking >> about this on the pygtk list. >> >> -- >> Greg >> >> >> ------------------------------ >> >> _______________________________________________ >> Pygui mailing list >> Pygui at python.org >> http://mail.python.org/mailman/listinfo/pygui >> >> >> End of Pygui Digest, Vol 18, Issue 3 >> ************************************ > From electronixtar at gmail.com Mon Dec 26 02:15:24 2011 From: electronixtar at gmail.com (est) Date: Mon, 26 Dec 2011 09:15:24 +0800 Subject: [Pygui] Timer in PyGUI? Message-ID: Hi guys, I have limited GUI experience, so what do I need to do if I want to display something like 00:00:59 count down timer using PyGUI? Is it possible to write cross platform timer code? Thanks in advance! Regards est -------------- next part -------------- An HTML attachment was scrubbed... URL: From shankargiri at gmail.com Mon Dec 26 21:03:22 2011 From: shankargiri at gmail.com (Shankar Giri Venkita Giri) Date: Mon, 26 Dec 2011 15:03:22 -0500 Subject: [Pygui] Pygui Digest, Vol 19, Issue 2 In-Reply-To: References: Message-ID: <185CFB82-DCC0-46D4-8A76-0BFF275A0B4F@gmail.com> Use the Task class in PyGUI. It is documented here. http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/version/Doc/Task.html Shankar On Dec 26, 2011, at 6:00 AM, pygui-request at python.org wrote: > Send Pygui mailing list submissions to > pygui at python.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.python.org/mailman/listinfo/pygui > or, via email, send a message with subject or body 'help' to > pygui-request at python.org > > You can reach the person managing the list at > pygui-owner at python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Pygui digest..." > > > Today's Topics: > > 1. Timer in PyGUI? (est) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 26 Dec 2011 09:15:24 +0800 > From: est > To: pygui at python.org > Subject: [Pygui] Timer in PyGUI? > Message-ID: > > Content-Type: text/plain; charset="utf-8" > > Hi guys, > > I have limited GUI experience, so what do I need to do if I want to display > something like 00:00:59 count down timer using PyGUI? > > Is it possible to write cross platform timer code? > > Thanks in advance! > > Regards > est > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > > ------------------------------ > > _______________________________________________ > Pygui mailing list > Pygui at python.org > http://mail.python.org/mailman/listinfo/pygui > > > End of Pygui Digest, Vol 19, Issue 2 > ************************************