Re: [pygtk] PyGTK and visual python integration

2009-12-14 Thread Michele Mattioni
On Sun, Dec 13, 2009 at 8:09 AM, Angel Guzman Maeso shaka...@gmail.comwrote:

 2009/12/7 Michele Mattioni matti...@gmail.com

 Hello PyGTK list,

 I'm trying to use Visual Python [1] with PyGTK.

 My goal is to run the PyGTK app from an ipython console with the
 interactive loop, to launch the visual python and to be able to process the
 input coming from the console.

 I was able to do it on ubuntu jaunty, but for some reasons this is not the
 case anymore in karmic.

 The version I was using before of Ipython 0.9.1, what is shipped with
 karmic is 0.10.
 The PyGTK in jaunty is 2.14.1-1ubuntu1 and in karmic is 2.16.0-0ubuntu1

 With the 0.9.1 ipython version and the 2.14 PyGTK I was able to achieve
 this behaviour starting the console with the -pylab options, and I was using
 GTKAgg as my backend.

 In my program it was possible to start a visual window clicking on a gtk
 button. I attach a simple case code to show the problem.

 What has changed ?

 Is Ipython, PyGTK or both?

 [1] http://vpython.org/
 [2] http://ipython.scipy.org

 Regards,
 Michele.

 ___
 pygtk mailing list   pygtk@daa.com.au
 http://www.daa.com.au/mailman/listinfo/pygtk
 Read the PyGTK FAQ: http://faq.pygtk.org/


 For me, this line:
 import visual
 Generate a segmentation fault (I use Ubuntu Lucid alpha 1) and I did
 before:
 sudo apt-get install python-visual
 Maybe you should report a bug for visual python on Ubuntu package.



This bus seems to be caused by the boost library with a weird doc export.

the bug is this one:

https://bugs.launchpad.net/ubuntu/+source/python-visual/+bug/457688

There is any possibilities to have a visual widget on pygtk or somebody
manage to create one?
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Re: [pygtk] TreeStores and rows-reordered signal

2009-12-14 Thread Neil Muller
On 12/14/09, Alessandro Dentella san...@e-den.it wrote:
 Hi,

   I'm probably misinterpreting what 'rows-reordered' means, but I thought that
   should be a signal emitted by a TreeStore when rows are reordered by DD
   operations. Am I wrong?

rows-reordered is sent by actions such as sorting the tree - it
doesn't cater for items changing depth in the tree. D  D operations
result in row-deleted and row-inserted signals being sent.


-- 
Neil Muller
drnlmul...@gmail.com

I've got a gmail account. Why haven't I become cool?
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


Re: [pygtk] Writing python bindings, getting pygobject_new_full assertion failed error. Need assistance.

2009-12-14 Thread John Stowers
On Sun, 2009-12-13 at 11:17 -0500, Adam Plumb wrote:
 Hallelujah!  After days of agony and frustration I finally figured
 this out.
 
 I'm using the pygobject h2def.py script to generate my .defs file from
 the thunarx header files, and for all my object definitions (i.e.
 ThunarxMenuProvider, etc), it was using the define-object call.  But
 apparently, it needs to use the define-interface call, because once I
 changed it to define-interface, everything worked perfectly.  I only
 noticed this after looking at the nautilus-python's generated
 nautilus.c file, which was calling pyg_register_interface() rather
 than the pygobject_register_class() function all my objects were
 using.  I then looked at the nautilus defs file and it was using the
 define-interface call rather than the define-object call.  Changing
 object to interface fixed it for me.
 
 Is this a bug in h2def.py?  Can someone explain it to me?

You should not trust the output of h2def.py completely.

Every binding I have ever made has required some small hand modification
of the defs file generated by h2def.py.

John

___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


Re: [pygtk] TreeStores and rows-reordered signal

2009-12-14 Thread Alessandro Dentella
On Mon, Dec 14, 2009 at 02:28:25PM +0200, Neil Muller wrote:
 On 12/14/09, Alessandro Dentella san...@e-den.it wrote:
  Hi,
 
I'm probably misinterpreting what 'rows-reordered' means, but I thought 
  that
should be a signal emitted by a TreeStore when rows are reordered by DD
operations. Am I wrong?
 
 rows-reordered is sent by actions such as sorting the tree - it
 doesn't cater for items changing depth in the tree. D  D operations
 result in row-deleted and row-inserted signals being sent.

Thanks Neil, 

I was mistaken by the fact that 'set_reoderable' is the way you set
DD on the TreeView... I find it misleading.

sandro

-- 
Sandro Dentella  *:-)
http://sqlkit.argolinux.orgSQLkit home page - PyGTK/python/sqlalchemy
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/