[pygtk] PyGTK/win32 site down?

2005-04-20 Thread Steve Castellotti




hey all-

 Looking to take a crack at getting the Gimp to compile with Python plug-in support under Windows.

 Major problem though, it seems the PyGTK for Win32 site is down:


http://www.pcpm.ucl.ac.be/~gustin/win32_ports/


 Anyone know of any mirrors or have local copies of the software? (hoping to compile with python 2.3 and gtk+ 2.4)

 Every link I chase down via Google points back to that site, and IRC came up empty.


Cheers!

Steve Castellotti


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


[pygtk] segfault with pygtk 2.4.1 and icon_theme_get_default

2005-04-20 Thread 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
except exceptions.IOError,s:
pass

with python 2.4 and pygtk 2.4.1 (and libxml2-2.6.16, if that matters)
will result in a segfault. Anyone confirm ?

cheers, 
  Danny

-- 
www.keyserver.net key id A334AEA6



signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] PyGTK/win32 site down?

2005-04-20 Thread Cedric Gustin
Steve Castellotti wrote:
 hey all-
 
 Looking to take a crack at getting the Gimp to compile with Python
 plug-in support under Windows.
 
 Major problem though, it seems the PyGTK for Win32 site is down:
 
 
 http://www.pcpm.ucl.ac.be/~gustin/win32_ports/

It should be back online now. Sorry about that.

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


Re: [pygtk] Problem using gobject.TYPE_BOOLEAN in a GObject wrapper

2005-04-20 Thread Johan Dahlin

Traceback (most recent call last):
 File stdin, line 1, in ?
 File boolact.py, line 31, in ?
   gobject.type_register(boolAction)
TypeError: function takes exactly 1 argument (0 given)
Art, can you please put this in bugzilla, otherwise it'll be forgotten?
Once in bugzilla it's automatically going to be on our TODO list and 
will be fixed/looked at some point.

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


RE: [pygtk] Control + Click in Tree view

2005-04-20 Thread Hussein Vastani
hooking it to button_press_event worked for me. Thanks :)

-h


= Original Message From Christian Robottom Reis [EMAIL PROTECTED] =
On Fri, Apr 15, 2005 at 02:34:15PM -0400, Hussein Vastani wrote:
 How do I know if a Cntrl + Click was pressed in a treeview?

Look at

http://www.async.com.br/faq/pygtk/index.py?req=showfile=faq05.005.htp

I _believe_ it's just a matter of hooking to button_press_event (instead
of key_press_event) -- the control mask should be set on the event,
regardless.

I think there is another option you can use by inspecting the gdk window
and then checking to see if control is pressed -- Gustavo, do you
remember how this is done?

Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 3361 2331

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


Re: [pygtk] Problem using gobject.TYPE_BOOLEAN in a GObject wrapper

2005-04-20 Thread Art Haas
On Wed, Apr 20, 2005 at 09:51:25AM -0300, Johan Dahlin wrote:
 
 Traceback (most recent call last):
  File stdin, line 1, in ?
  File boolact.py, line 31, in ?
gobject.type_register(boolAction)
 TypeError: function takes exactly 1 argument (0 given)
 
 Art, can you please put this in bugzilla, otherwise it'll be forgotten?
 Once in bugzilla it's automatically going to be on our TODO list and 
 will be fixed/looked at some point.

Done.

http://bugzilla.gnome.org/show_bug.cgi?id=301346

Art Haas
-- 
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.

-Thomas Jefferson to James Smith, 1822
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] segfault with pygtk 2.4.1 and icon_theme_get_default

2005-04-20 Thread Jesse Pavel


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:
  doc = minidom.parse(doesntmatter)
  print doc
  except exceptions.IOError,s:
  pass
  
  with python 2.4 and pygtk 2.4.1 (and libxml2-2.6.16, if that matters)
  will result in a segfault. Anyone confirm ?
  
  cheers, 
Danny
  
  -- 
  www.keyserver.net key id A334AEA6
  
  ___
  pygtk mailing list   pygtk@daa.com.au
  http://www.daa.com.au/mailman/listinfo/pygtk
  Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] segfault with pygtk 2.4.1 and icon_theme_get_default

2005-04-20 Thread Danny Milosavljevic
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
 except exceptions.IOError,s:
 pass
 
 with python 2.4 and pygtk 2.4.1 (and libxml2-2.6.16, if that matters)
 will result in a segfault. Anyone confirm ?

And with python 2.4, pygtk 2.6.1 and libxml2-2.6.16 too.

Unfortunately my gdb is broken beyond repair:

gdb run rr.py
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
Warning:
Cannot insert breakpoint -2.
Error accessing memory address 0x990: Eingabe-/Ausgabefehler.
gdb continue
Warning:
Cannot insert breakpoint -2.
Error accessing memory address 0x990: Eingabe-/Ausgabefehler.

Otherwhise I'd debug the cause.

cheers,
   Danny

-- 
www.keyserver.net key id A334AEA6



signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


[pygtk] Modal Windows

2005-04-20 Thread Paul Malherbe
Hello
Please can anyone help me?
In the following test script I am creating windows which are transient 
and modal. If I destroy the last window and try to grab_focus on a 
widget on the next window it does not happen. I am obviously missing 
something! Some help would be appreciated.

import pygtk
pygtk.require(2.0)
import gtk
class Test:
   def __init__(self):
   # Window One
   w1 = MkWin()
   w1.win.show_all()
   top = w1.win.get_toplevel()
   # Window Two with entry
   w2 = MkWin(trans=top)
   self.e2 = gtk.Entry()
   w2.win.add(self.e2)
   self.e2.set_flags(gtk.CAN_FOCUS)
   w2.win.show_all()
# Window Three with entry
   self.w3 = MkWin(trans=top)
   e3 = gtk.Entry()
   self.w3.win.add(e3)
   e3.connect(activate, self.doTest)
   e3.set_flags(gtk.CAN_FOCUS)
   # Focus on entry
   e3.grab_focus()
   self.w3.win.show_all()
   gtk.main()
   def doTest(self, wid):
   self.w3.win.destroy()
   # Focus on entry ???
   self.e2.grab_focus()
class MkWin:
   def __init__(self, trans=None):
   self.win = gtk.Window(type=gtk.WINDOW_TOPLEVEL)
   self.win.connect('destroy', self.doDestroy)
   self.win.connect('delete_event', self.doDestroy)
   if trans:
   self.win.set_transient_for(trans)
   self.win.set_decorated(False)
   self.win.set_modal(True)
   def doDestroy(self, wid=None, data=None):
   wid.destroy()
if __name__ == __main__:
   tt = Test()
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/