Re: [pygtk] Call For Testing: Updated PyGObject, Pycairo and PyGTK for Windows

2010-10-16 Thread Yann Leboulanger

On 10/16/2010 03:01 PM, steve_...@optusnet.com.au wrote:



* gtk+-2.22 sees the return of the windows theme! Please test
this by setting adding the following line to
C:\GTK\etc\gtk-2.0\gtkrc (for example)

gtk-theme-name = "MS-Windows"

Tried this, .. it seems to work.



things seems to work quite nicely! Great !

Some comments though: When installing pygobject and pygtk, at the end of the 
installer in the textview there is an error message:
close failed in file object destructor:
Error in sys.excepthook:

Original exception was:

But that doesn't prevent things to work.



You mean in the textview of the installer (lastpage?),  I didn't see any such 
error message. I am testing on XP with python 2.6.5.


Yes exactly.
I tested on win7.

--
Asterix
___
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] Call For Testing: Updated PyGObject, Pycairo and PyGTK for Windows

2010-10-16 Thread Pachi

 Seems to be working fine here too (on Vista), with the same harmless but ugly 
error message.

Regards,

Pachi

On 16/10/2010 11:10, Yann Leboulanger wrote:

On 10/16/2010 09:00 AM, John Stowers wrote:

Hi All,

I spent some time updating the windows installers for PyGObject, PyGTK
and Pycairo.

I would appreciate it if those interested tested these installers before
they go on the official GNOME servers. The installers are

* PyGObject 2.26 (for glib-2.26.0)
http://www.johnstowers.co.nz/files/win32/pygobject-2.26.0.win32-py2.6.exe
* Pycairo 1.8.10
http://www.johnstowers.co.nz/files/win32/pycairo-1.8.10.win32-py2.6.exe
* PyGTK 2.22 (for gtk+-2.22.0)
http://www.johnstowers.co.nz/files/win32/pygtk-2.22.0.win32-py2.6.exe

These require the installation of the appropriate dependencies.
However, to make this step easier, and until Tor updates the gtk+
bundle, Armin Burgmeier provided me with an interim gtk+ bundle [1].
This can be downloaded from the following address,
http://www.johnstowers.co.nz/files/win32/gtk
+-bundle-win32-devel-2.22.zip
Once extracted to C:\GTK (for example), you will need to add C:\GTK\bin
to your path.

The installers and dependencies will be removed from my site
and moved to the GNOME servers once verified that they work.

Some technical details about the installers
* Built against Python 2.6.6
* Source code comes from the 'windows' branch of each project
   (on git.gnome.org)
* They were built using wine-1.2+MinGW on Ubuntu 10.04
   as my laptop with a windows install is on loan. This means they
   have not been tested on a real windows install yet...
* Yes, this actually works.
* The script to generate the installers lives at
   http://gist.github.com/629505
* MinGW with GCC-4.5.0 was used for the compilation.
* gtk+-2.22 sees the return of the windows theme! Please test
   this by setting adding the following line to
   C:\GTK\etc\gtk-2.0\gtkrc (for example)

   gtk-theme-name = "MS-Windows"

Happy testing and good luck,

John

[1] Extracted from the well polished gtkmm windows installer
http://live.gnome.org/gtkmm/MSWindows

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



things seems to work quite nicely! Great !

Some comments though: When installing pygobject and pygtk, at the end of the 
installer in the textview there is an error message:
close failed in file object destructor:
Error in sys.excepthook:

Original exception was:

But that doesn't prevent things to work.

Second point : there seems to be a problem with styles:
tree.rc_get_style().bg[gtk.STATE_ACTIVE].to_string() return #, then 
I do
renderer.set_property('cell-background', col2)
and background is black, of course, but bg[gtk.STATE_ACTIVE] should not return 
Black, I don't use a black theme.

Thanks for this installers!!

___
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] Call For Testing: Updated PyGObject, Pycairo and PyGTK for Windows

2010-10-16 Thread steve_geo

>> * gtk+-2.22 sees the return of the windows theme! Please test
>>this by setting adding the following line to
>>C:\GTK\etc\gtk-2.0\gtkrc (for example)
>>
>>gtk-theme-name = "MS-Windows"
Tried this, .. it seems to work.


> things seems to work quite nicely! Great !
>
> Some comments though: When installing pygobject and pygtk, at the end of the 
> installer in the textview there is an error message:
> close failed in file object destructor:
> Error in sys.excepthook:
>
> Original exception was:
>
> But that doesn't prevent things to work.
>

You mean in the textview of the installer (lastpage?),  I didn't see any such 
error message. I am testing on XP with python 2.6.5.

I didn't have any problems with the limited testing I performed.

Good job

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


[pygtk] PyGObject timeout_add error

2010-10-16 Thread Timo
Hello,

Before porting my main project to PyGObject, I am writing a little
application first.
The problem is that I get an error when calling GLib.timeout_add() and I
can't figure out what's wrong.

This is a minimal example:
import pygtk
pygtk.require('2.0')
from gi.repository import Gtk, GLib

def update():
print "Update!"
return True

GLib.timeout_add(3000, update)

And the error message:
** (timeout_test.py:9304): CRITICAL **: g_arg_info_is_caller_allocates:
assertion `info != NULL' failed# This repeats 5 times
Traceback (most recent call last):
  File "timeout_test.py", line 9, in 
GLib.timeout_add(3000, update)
  File "/usr/lib/pymodules/python2.6/gtk-2.0/gi/types.py", line 40, in
function
return info.invoke(*args)
TypeError: Error invoking GLib.timeout_add: Invalid callback given for
argument function


This running on Ubuntu 10.10 with Python 2.6.6 and PyGobject 2.21.5

Cheers,
Timo
___
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] Confused by multiple selections

2010-10-16 Thread Alan
Champion Dieter, champion! It is working now.

Thanks for replying so quickly. The help is much appreciated.

___
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] Call For Testing: Updated PyGObject, Pycairo and PyGTK for Windows

2010-10-16 Thread Yann Leboulanger

On 10/16/2010 09:00 AM, John Stowers wrote:

Hi All,

I spent some time updating the windows installers for PyGObject, PyGTK
and Pycairo.

I would appreciate it if those interested tested these installers before
they go on the official GNOME servers. The installers are

* PyGObject 2.26 (for glib-2.26.0)
http://www.johnstowers.co.nz/files/win32/pygobject-2.26.0.win32-py2.6.exe
* Pycairo 1.8.10
http://www.johnstowers.co.nz/files/win32/pycairo-1.8.10.win32-py2.6.exe
* PyGTK 2.22 (for gtk+-2.22.0)
http://www.johnstowers.co.nz/files/win32/pygtk-2.22.0.win32-py2.6.exe

These require the installation of the appropriate dependencies.
However, to make this step easier, and until Tor updates the gtk+
bundle, Armin Burgmeier provided me with an interim gtk+ bundle [1].
This can be downloaded from the following address,
http://www.johnstowers.co.nz/files/win32/gtk
+-bundle-win32-devel-2.22.zip
Once extracted to C:\GTK (for example), you will need to add C:\GTK\bin
to your path.

The installers and dependencies will be removed from my site
and moved to the GNOME servers once verified that they work.

Some technical details about the installers
* Built against Python 2.6.6
* Source code comes from the 'windows' branch of each project
   (on git.gnome.org)
* They were built using wine-1.2+MinGW on Ubuntu 10.04
   as my laptop with a windows install is on loan. This means they
   have not been tested on a real windows install yet...
* Yes, this actually works.
* The script to generate the installers lives at
   http://gist.github.com/629505
* MinGW with GCC-4.5.0 was used for the compilation.
* gtk+-2.22 sees the return of the windows theme! Please test
   this by setting adding the following line to
   C:\GTK\etc\gtk-2.0\gtkrc (for example)

   gtk-theme-name = "MS-Windows"

Happy testing and good luck,

John

[1] Extracted from the well polished gtkmm windows installer
http://live.gnome.org/gtkmm/MSWindows

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



things seems to work quite nicely! Great !

Some comments though: When installing pygobject and pygtk, at the end of 
the installer in the textview there is an error message:

close failed in file object destructor:
Error in sys.excepthook:

Original exception was:

But that doesn't prevent things to work.

Second point : there seems to be a problem with styles:
tree.rc_get_style().bg[gtk.STATE_ACTIVE].to_string() return 
#, then I do

renderer.set_property('cell-background', col2)
and background is black, of course, but bg[gtk.STATE_ACTIVE] should not 
return Black, I don't use a black theme.


Thanks for this installers!!
--
Yann
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


[pygtk] Call For Testing: Updated PyGObject, Pycairo and PyGTK for Windows

2010-10-16 Thread John Stowers
Hi All,

I spent some time updating the windows installers for PyGObject, PyGTK
and Pycairo.

I would appreciate it if those interested tested these installers before
they go on the official GNOME servers. The installers are

* PyGObject 2.26 (for glib-2.26.0)
http://www.johnstowers.co.nz/files/win32/pygobject-2.26.0.win32-py2.6.exe
* Pycairo 1.8.10
http://www.johnstowers.co.nz/files/win32/pycairo-1.8.10.win32-py2.6.exe
* PyGTK 2.22 (for gtk+-2.22.0)
http://www.johnstowers.co.nz/files/win32/pygtk-2.22.0.win32-py2.6.exe

These require the installation of the appropriate dependencies.
However, to make this step easier, and until Tor updates the gtk+
bundle, Armin Burgmeier provided me with an interim gtk+ bundle [1].
This can be downloaded from the following address,
http://www.johnstowers.co.nz/files/win32/gtk
+-bundle-win32-devel-2.22.zip
Once extracted to C:\GTK (for example), you will need to add C:\GTK\bin
to your path.

The installers and dependencies will be removed from my site
and moved to the GNOME servers once verified that they work.

Some technical details about the installers
* Built against Python 2.6.6
* Source code comes from the 'windows' branch of each project
  (on git.gnome.org)
* They were built using wine-1.2+MinGW on Ubuntu 10.04
  as my laptop with a windows install is on loan. This means they
  have not been tested on a real windows install yet...
* Yes, this actually works.
* The script to generate the installers lives at
  http://gist.github.com/629505
* MinGW with GCC-4.5.0 was used for the compilation.
* gtk+-2.22 sees the return of the windows theme! Please test
  this by setting adding the following line to 
  C:\GTK\etc\gtk-2.0\gtkrc (for example)

  gtk-theme-name = "MS-Windows"

Happy testing and good luck,

John

[1] Extracted from the well polished gtkmm windows installer
http://live.gnome.org/gtkmm/MSWindows

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