[pygtk] vext - use pygtk, gtk3 and other libraries in a virtualenv

2015-07-11 Thread Stuart Axon
Hi,   Currently pygtk doesn't install in a virtualenv using 'pip install 
pygtk'.   I've made 'vext.pygtk' which lets you use the system pygtk.
To use it:
Install pygtk as normal.
In your virtualenv:
Make sure pip and setuptools are up to date$ pip install -U setuptools pip
Install:$ pip install vext.pygtk
For Gtk3:
$ pip install vext.gi

The project lives heregithub.com/stuaxo/vext
It's a bit of a hack, hopefully it's useful for someone, I've been using this 
for shoebot for the last few months and it seems to work OK for Windows and 
Linux at least (OSX is untested right now).
There are also vext modules for pyqt4, pygame and panda3d

CheersS___
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] pygtk Digest, Vol 138, Issue 1

2014-09-23 Thread Stuart Axon
Fantastic work :)   Does this work with virtualenv ?
 
S++


On Tuesday, September 23, 2014 5:00 AM, "pygtk-requ...@daa.com.au" 
 wrote:
 

>
>
>Send pygtk mailing list submissions to
>pygtk@daa.com.au
>
>To subscribe or unsubscribe via the World Wide Web, visit
>http://www.daa.com.au/mailman/listinfo/pygtk
>or, via email, send a message with subject or body 'help' to
>pygtk-requ...@daa.com.au
>
>You can reach the person managing the list at
>pygtk-ow...@daa.com.au
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of pygtk digest..."
>
>
>Today's Topics:
>
>   1. PyGObject 3.14.0 Released (Simon Feltman)
>
>
>--
>
>Message: 1
>Date: Mon, 22 Sep 2014 16:23:58 -0700
>From: Simon Feltman 
>To: gnome-announce-l...@gnome.org, PyGTK ,
>"python-hackers-l...@gnome.org" ,
>python-announce-l...@python.org
>Subject: [pygtk] PyGObject 3.14.0 Released
>Message-ID:
>
>Content-Type: text/plain; charset=UTF-8
>
>I am pleased to announce version 3.14.0 of the Python bindings for
>GObject Introspection. This is the first stable release in the 3.14 series.
>
>This major release includes refactoring, bug-fixes, performance improvements,
>and a few API additions. Thanks to all the contributors and a special shout-out
>to Garrett Regier for some excellent refactoring and marshaling unification 
>work
>for Python implemented virtual methods. This work enables out and inout array
>arguments for Python implemented virtual methods.
>
>Download
>
>The new release is available from ftp.gnome.org:
>
>https://download.gnome.org/sources/pygobject/3.14/pygobject-3.14.0.tar.xz 
>(703K)
>sha256sum: 779effa93f4b59cdb72f4ab0128fb3fd82900bf686193b570fd3a8ce63392d54
>
>Notable changes since PyGObject 3.12.0
>==
>- Gdk.Event supports setting union member fields directly based on the event
>  type (Christoph Reiter) (#727810)
>- GLib.GError and GLib.Error are now unified (Simon Feltman) (#712519)
>- Non-introspected signals support marshaling cairo objects
>  (Simon Feltman) (#694604)
>- GTypeClass methods show up as Python GObject class methods
>  (Johan Dahlin) (#685218)
>- Widget.style_get_property and Container.child_get_property return values
>  as Python native types when applicable, making the GValue argument optional.
>  (Simon Feltman) (#685076)
>- Windows build fixes (Alexey Pavlov) (#734284, #734289, #734286, #734287)
>- Support for arrays with length fields on structs (Simon Feltman) (#688792)
>- Fast path Python property access (Simon Feltman) (#723872)
>- Memory leak fixes when accessing properties which are boxed types
>  (Simon Feltman) (#726999)
>- [New API] Add gi.require_foreign (Simon Feltman) (#707735)
>- [New API] Add Gtk.Container.child_get/set overrides to match the C API
>  (Simon Feltman) (#685076)
>- [New API] Add Python implementation of Object.connect_data()
>  (Simon Feltman) (#701843)
>
>Contributors
>
>Alexey Pavlov, Andre Klapper, Andrew Grigorev, Christoph Reiter, Garrett 
>Regier,
>Ignacio Casal Quinteiro, Johan Dahlin, Martin Pitt, Olav Vitters, Paolo 
>Borelli,
>Piotr Iwaniuk, Simon Feltman, Tobias Mueller
>
>About PyGObject
>===
>GObject is an object system used by GTK+, GStreamer and other libraries.
>
>PyGObject provides a convenient wrapper for use in Python programs when
>accessing GObject libraries.
>
>Like the GObject library itself PyGObject is licensed under the GNU
>LGPL, so is suitable for use in both free software and proprietary
>applications. It is already in use in many applications ranging from
>small single purpose scripts up to large full featured applications.
>
>PyGObject now dynamically accesses any GObject libraries that uses
>GObject Introspection. It replaces the need for separate modules such as
>PyGTK, GIO and python-gnome to build a full GNOME 3.0 application. Once
>new functionality is added to gobject library it is instantly available
>as a Python API without the need for intermediate Python glue.
>
>
>--
>
>___
>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/
>
>
>End of pygtk Digest, Vol 138, Issue 1
>*
>
>
>___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

[pygtk] GAction ?

2014-01-10 Thread Stuart Axon
Hi,
   I've been trying to do a custom menu in GEdit, only just saw that GtkAction 
is deprecated in favour of GAction..

https://developer.gnome.org/gnome-devel-demos/3.8/gmenu.py.html.en#code


Is there an example anywhere of using this to make ordinary menus, not the 
application menu ?
 
S++___
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] Launching PyGTK app from a serial console

2013-08-07 Thread Stuart Axon
If you don't want to run XFCE in it's entirety - you could make your own X 
session, using something like this
https://wiki.ubuntu.com/CustomXSession


Either way you'll probably want to make your app full screen using 
window.fullscreen()

 
S++



>________
> From: Stuart Axon 
>To: Pygtk mailinglist  
>Sent: Wednesday, August 7, 2013 9:40 AM
>Subject: Re: [pygtk] Launching PyGTK app from a serial console
> 
>
>
>Hi Paul,
>   You just need to set DISPLAY correctly.    You can check what it's set to 
>in a terminal in XFCE:
>
>
>$ echo $DISPLAY
>:0
>
>
>Then in the terminal your connected on the serial console, set it to the same 
>thing;
>
>
>$ export DISPLAY :0
>
>
>
>
>Then test launching an any X app (I tested using gedit + it work).
>
>
> 
>S++
>
>
>Date: Mon, 5 Aug 2013 22:25:28 -0700
>>From: "Paul D. DeRocco" 
>>To: "PyGTK List" 
>>Subject: [pygtk] Launching PyGTK app from a serial console
>>Message-ID: 
>>Content-Type: text/plain;    charset="us-ascii"
>>
>>I've put pygtk onto a Gumstix Overo board, which uses the XFCE desktop
>>manager (GTK-based). At the moment, I'm using a Tobi expansion board and a
>>full-sized monitor, but eventually I want to switch to a Chestnut43 board
>>with a 4.3"
 LCD.
>>
>>At present, I can successfully launch a graphical Python app from a terminal
>>window on the screen, but on a tiny LCD I want the app to fill the screen,
>>so I want to launch from something else. If I try launching the Python app
>>from a serial console, it barfs because it doesn't know what to display it
>>on.
>>
>>Can anyone explain to me how PyGTK finds the windowing system so that it can
>>create its window? Is it something in the environment? I don't see any
>>likely candidate. Eventually, I may want to use an X server on another
>>machine to run a development console, in which case I'll still want my PyGTK
>>app to use the small LCD instead of putting itself up on my X server. But
>>for now, is there some way I can run Python from a serial console and have
>>it put up a PyGTK window on the only display?
>>
>>-- 
>>
>>Ciao,               Paul D. DeRocco
>>Paul     
           mailto:pdero...@ix.netcom.com 
>>
>>
>>
>>
>>--
>>
>>___
>>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/
>>
>>
>>End of pygtk Digest, Vol 126, Issue 3
>>*
>>
>>
>>
>
>___
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] Launching PyGTK app from a serial console

2013-08-07 Thread Stuart Axon
Hi Paul,
   You just need to set DISPLAY correctly.    You can check what it's set to in 
a terminal in XFCE:

$ echo $DISPLAY
:0

Then in the terminal your connected on the serial console, set it to the same 
thing;

$ export DISPLAY :0


Then test launching an any X app (I tested using gedit + it work).

 
S++


Date: Mon, 5 Aug 2013 22:25:28 -0700
>From: "Paul D. DeRocco" 
>To: "PyGTK List" 
>Subject: [pygtk] Launching PyGTK app from a serial console
>Message-ID: 
>Content-Type: text/plain;    charset="us-ascii"
>
>I've put pygtk onto a Gumstix Overo board, which uses the XFCE desktop
>manager (GTK-based). At the moment, I'm using a Tobi expansion board and a
>full-sized monitor, but eventually I want to switch to a Chestnut43 board
>with a 4.3" LCD.
>
>At present, I can successfully launch a graphical Python app from a terminal
>window on the screen, but on a tiny LCD I want the app to fill the screen,
>so I want to launch from something else. If I try launching the Python app
>from a serial console, it barfs because it doesn't know what to display it
>on.
>
>Can anyone explain to me how PyGTK finds the windowing system so that it can
>create its window? Is it something in the environment? I don't see any
>likely candidate. Eventually, I may want to use an X server on another
>machine to run a development console, in which case I'll still want my PyGTK
>app to use the small LCD instead of putting itself up on my X server. But
>for now, is there some way I can run Python from a serial console and have
>it put up a PyGTK window on the only display?
>
>-- 
>
>Ciao,               Paul D. DeRocco
>Paul                mailto:pdero...@ix.netcom.com 
>
>
>
>
>--
>
>___
>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/
>
>
>End of pygtk Digest, Vol 126, Issue 3
>*
>
>
>___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

[pygtk] With set_has_frame(True) window position is never updated

2013-06-03 Thread Stuart Axon
Not sure if this is a pygtk or gnome-shell bug, will post here first.

If set_has_frame(True) is called, then the window position is never updated 
when you move it, only the initial position of the window is reported.

Test program below:



#!/usr/bin/python

import gtk

class app(gtk.Window):

  def __init__(self):
    super(app, self).__init__()

    self.set_position(gtk.WIN_POS_CENTER)
    self.set_title("Window Position Test")
    #self.set_decorated(True)
    self.set_has_frame(True)
    self.set_resizable(True)
    #self.set_default_size(320, 50)
    self.connect("destroy", gtk.main_quit)
    self.connect("configure-event", self.update_pos)
    
    vbox = gtk.VBox(spacing=4)
    hbox = gtk.HBox(spacing=4)

    self.pos_label = gtk.Label()
    self.pos_label.set_label('Test')
    vbox.add(self.pos_label)

    self.add(vbox)

    self.update_pos()
    self.show_all()



  def update_pos(self, *args):
    ''' Get window position, display + log '''
    pos = str( self.get_position() )
    print( pos )
    self.pos_label.set_label( pos )


app()
gtk.main()
___
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] Porting to gobject and pygi questions?

2012-05-09 Thread Stuart Axon
In  
https://live.gnome.org/PyGObject/IntrospectionPorting#Step_1:_The_Great_Renaming

it mentions "change expose-event to draw and do drawing with cairo." is there a 
really minimal example of this somewhere ?


- My App uses gtk DrawingArea fairly extensively.


S++


>
> From: Tomeu Vizoso 
>To: Stuart Axon  
>Cc: Pygtk mailinglist  
>Sent: Wednesday, May 9, 2012 2:47 PM
>Subject: Re: [pygtk] Porting to gobject and pygi questions?
> 
>On Wed, May 9, 2012 at 1:49 PM, Stuart Axon  wrote:
>> Hello All,
>>
>>   Appologies for asking on the pygtk list but -
>>
>> I'm starting to port my app from pygtk to pygobject and running up against
>> various problems... however I can't work out where to ask questions about
>> pygi - the bugtracker on gnome says it's closed and I can't find a
>> mailinglist for it (!)
>
>Hi,
>
>all those links should be here:
>
>https://live.gnome.org/PyGObject
>
>If it's still not clear, please say so and the page will be completed.
>
>Regards,
>
>Tomeu
>
>
>___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

[pygtk] Porting to gobject and pygi questions?

2012-05-09 Thread Stuart Axon
Hello All,


  Appologies for asking on the pygtk list but -

I'm starting to port my app from pygtk to pygobject and running up against 
various problems... however I can't work out where to ask questions about pygi 
- the bugtracker on gnome says it's closed and I can't find a mailinglist for 
it (!)

 
S++___
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] pygtk and python3 (ctypes-gtk)

2011-01-07 Thread Stuart Axon
Will this work with virtualenv and pip? ... normal pygtk doesn't, and that 
would 
be a definite advantage.



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


[pygtk] Fw: Simplest example with multiprocessing.queue?

2010-11-16 Thread Stuart Axon


> To: Stuart Axon 
> Cc: Pygtk mailinglist 
> Sent: Tue, November 16, 2010 1:54:18 PM
> Subject: Re: [pygtk] Simplest example with multiprocessing.queue?
> 
> 
> On Nov 16, 2010, at 6:46 AM, Stuart Axon wrote:
> 
> > Kind of similar  to the other question:  Is there a very simple example for 
>using 
>
> >  pygtk with multiprocessing.Queue ?
> > 
> > I'd like to have one thread  put things in (possibly they will be functions 
>to be 
>
> > executed), on the  other end their taken out (or executed) to output onto a 
> > drawing area  (or similar).
> > 
> > S++
> > 
> 
> The python docs have an  example.
> 
> See 16.6.1.2 in  http://docs.python.org/library/multiprocessing.html
> 
> 
Cool, if I get something working with pycairo or pygtk I'll post it here (might 
be a little while).

> --
> Steve  McClure
> smccl...@racemi.com
> 
> > From: Steve McClure 



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


[pygtk] Simplest example with multiprocessing.queue?

2010-11-16 Thread Stuart Axon
Kind of similar to the other question:  Is there a very simple example for 
using 
pygtk with multiprocessing.Queue ?

I'd like to have one thread put things in (possibly they will be functions to 
be 
executed), on the other end their taken out (or executed) to output onto a 
drawing area (or similar).

 S++



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


[pygtk] DrawingArea and multiprocessing?

2010-05-19 Thread Stuart Axon
Has anybody successfully used a DrawingArea along with multiprocessing?

I'm trying to get it to work, but am a bit confused.


I was imagining I could run gtk.main in one thread, and update the drawing area 
in the other, is there a simple example somewhere?

(At the moment I just get no redraws)

 S++



  
___
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] Timeline widget?

2010-05-18 Thread Stuart Axon
I ll give it a go, although I want something more like the tine line in flash, 
or an audio or video editor with the option to zoom in.

On Wed May 19th, 2010 1:21 AM BST Luis A. Bastiao Silva wrote:

>Hi,
>
>Checkout: http://code.google.com/p/beauty-timeline/
>
>
>On Wed, May 19, 2010 at 1:12 AM, Stuart Axon  wrote:
>
>> Is there any project that has a Pygtk timeline widget I could use?
>>
>> Ideally, features like zooming would be nice.
>>
>>  S++
>>
>>
>>
>>
>> ___
>> pygtk mailing list   pygtk@daa.com.au
>> http://www.daa.com.au/mailman/listinfo/pygtk
>> Read the PyGTK FAQ: http://faq.pygtk.org/
>>
>
>
>Best Regards,
>-- 
>Luís A. Bastião Silva



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


[pygtk] Timeline widget?

2010-05-18 Thread Stuart Axon
Is there any project that has a Pygtk timeline widget I could use?

Ideally, features like zooming would be nice.

 S++



  
___
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] PyGtk on Windows (SOLVED)

2010-01-21 Thread Stuart Axon
> From: John Stowers 

> To: Stuart Axon 
> Cc: Pygtk mailinglist 
> Sent: Thu, January 21, 2010 1:04:15 PM
> Subject: Re: [pygtk] PyGtk on Windows (SOLVED)
> 
> 
> > Any idea if having a new pygtk has any bearing on getting python plugins 
> working in win32 gedit ?
> 
> I expect it will. The Gedit hackers seem to be commenting on that bug.
> Although Gtk+-2.18 is broken on windows, so it looks like the PyGtk
> +-2.16 release will be sufficient for their needs.
> 
> John

Cool, I'll see if I can track some down to find out.
:)

S++



  
___
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] PyGtk on Windows (SOLVED)

2010-01-21 Thread Stuart Axon
Awesome... just been having a play with this.

Trying to look into this (and not getting very far) has certainly been an eye 
opener WRT the different things that go into these bindings.

It works with shoebot, + having a recent version of pygtk and other libs for 
shoebot was where I wanted to get to in the first place.

Much Kudos !


Any idea if having a new pygtk has any bearing on getting python plugins 
working in win32 gedit ?

 S++



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


[pygtk] Tell pygtk setup.py where to find pygobject and friends ?

2010-01-20 Thread Stuart Axon
Hi,
  I came back to having a look at pygtk.   Pygobject seems to be working fine 
now, I've either forgotten or don't know how to tell setup.py where it's 
dependencies live though.

It's asking for some .pc files, I guess for now I can skip them:
pycairo.pc
Do I need to build pycairo seperately from pygtk ?
 
libglade-2.0.pc
I guess if I'm going to try and build the whole of pygtk I'll need to build 
this at some point


The fatal error is missing pygobject.h, can I tell it to use the one in 
Python26\include\pygtk-2.0  ?



--- full output ---

[C:\usr\pygtk-git\pygtk]python setup.py build
**
Building PyGTK using distutils is NOT SUPPORTED.
It's mainly included to be able to easily build win32 installers
You may continue, but only if you agree to not ask any questions
To build PyGTK in a supported way, read the INSTALL file

Build fixes are of course welcome and should be filed in bugzilla
**
Not supported, ok [y/N]? y
C:\usr\Python26\lib\site-packages\gtk-2.0\dsextras.py:354: DeprecationWarning: 
object.__new__() takes no parameters
  return object.__new__(cls,*args, **kwds)
* pycairo.pc could not be found, bindings for pangocairo will not be built.
* libglade-2.0.pc could not be found, bindings for gtk.glade will not be built.
running build
running build_py
running build_ext
building 'atk' extension
C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD 
/W3 /GS- /DNDEBUG -DPYGTK_MAJOR_VERSION=2
-DPYGTK_MINOR_VERSION=17 -DPYGTK_MICRO_VERSION=0 -DVERSION="""2.17.0""" 
-DPLATFORM_WIN32=1 -DHAVE_BIND_TEXTDOMAIN_CODESE
T=1 -DHAVE_NUMPY=1 -IC:/usr/gtk/include/atk-1.0 -IC:/usr/gtk/include/glib-2.0 
-IC:/usr/gtk/lib/glib-2.0/include -I. -Igt
k -IC:/usr/gtk/include/glib-2.0 -IC:/usr/gtk/lib/glib-2.0/include 
-IC:\usr\Python26\include -IC:\usr\Python26\PC /Tcatkm
odule.c /Fobuild\temp.win32-2.6\Release\atkmodule.obj
atkmodule.c
atkmodule.c(28) : fatal error C1083: Cannot open include file: 'pygobject.h': 
No such file or directory
error: command '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"' 
failed with exit status 2


S++



  
___
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] Pygtk and Windows... how to build for release?

2010-01-11 Thread Stuart Axon




- Original Message 
From: John Stowers 
To: Stuart Axon 
Cc: pygtk@daa.com.au
Sent: Mon, January 11, 2010 7:23:05 PM
Subject: Re: [pygtk] Pygtk and Windows... how to build for release?

On Mon, 2010-01-11 at 09:56 -0800, Stuart Axon wrote:
> There are seperate ones from the ones I got in the pygobject git ?
> 
> Or is it finding the binary versions of those that I have installed ?

Please do not top post (http://www.idallen.com/topposting.html)

Anyway, back to the problem at hand. It looks like you need a newer
version of glib - i.e. the C library. Assuming the merge went without
errors, *you* now have the most recent version of pygobject

John


Sorry about the topposting and lack of '>' it's how yahoo mail encourages one 
to work, it's not great but I can access it from anywhere and was quick to 
setup (I just use it for dev mailing lists).

I got glib version 2.22.4, and put that into my gtk installation + manually 
updated the .pc file (not great, but it seemed to work) - so do I need to build 
glib from git too?

If thats the case I'll try your earlier suggestion of getting stable stuff 
building first.



  
___
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] Pygtk and Windows... how to build for release?

2010-01-11 Thread Stuart Axon
I tried retrieving pygobject from git again and got the same result - heres 
what I did for pygobject (based on the instructions you gave for pygtk)

git clone git://git.gnome.org/pygobject

cd pygobject

# add my repository
git remote add john git://github.com/nzjrs/pygobject.git
git fetch john

# create a branch for you to work in. This is initially identical to my
# branch
git checkout -b stu_work john/master-windows

# merge master into your new branch
git merge origin master



- Original Message 
From: Stuart Axon 
To: John Stowers 
Cc: pygtk@daa.com.au
Sent: Mon, January 11, 2010 5:56:02 PM
Subject: Re: [pygtk] Pygtk and Windows... how to build for release?

There are seperate ones from the ones I got in the pygobject git ?

Or is it finding the binary versions of those that I have installed ?



- Original Message 
From: John Stowers 
To: Stuart Axon 
Cc: pygtk@daa.com.au
Sent: Mon, January 11, 2010 10:30:29 AM
Subject: Re: [pygtk] Pygtk and Windows... how to build for release?

On Sun, 2010-01-10 at 17:44 -0800, Stuart Axon wrote:
> The git learning is great :)
> 
> I might try building stable stuff tomorrow, although I may as well try and 
> build HEAD too.
> 
> So far I got pygobject starting to build, but now I can see the real hassle, 
> that of course the problem is not the python, but the other stuff...
> 
> [C:\usr\pygtk-git\pygobject]python setup.py build
> **
> Building PyGObject using distutils is NOT SUPPORTED.
> It's mainly included to be able to easily build win32 installers
> You may continue, but only if you agree to not ask any questions
> To build PyGObject in a supported way, read the INSTALL file
> 
> Build fixes are of course welcome and should be filed in bugzilla
> **
> Not supported, ok [y/N]? y
> C:\usr\pygtk-git\pygobject\dsextras.py:354: DeprecationWarning: 
> object.__new__() takes no parameters
>   return object.__new__(cls,*args, **kwds)
> running build
> running build_py
> running build_clib
> building 'pyglib' library
> running build_ext
> building 'gio._gio' extension
> C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD 
> /W3 /GS- /DNDEBUG -DPYGOBJECT_MAJOR_VERSIO
> N=2 -DPYGOBJECT_MINOR_VERSION=21 -DPYGOBJECT_MICRO_VERSION=2 
> -DVERSION="""2.21.2""" -Iglib -IC:/usr/gtk/include/glib-2.0
>  -IC:/usr/gtk/lib/glib-2.0/include -Igobject -IC:/usr/gtk/include/glib-2.0 
> -IC:/usr/gtk/lib/glib-2.0/include -IC:\usr\Py
> thon26\include -IC:\usr\Python26\PC /Tcgio/gio.c 
> /Fobuild\temp.win32-2.6\Release\gio/gio.obj
> gio.c
> gmemoryoutputstream.override(44) : warning C4244: 'function' : conversion 
> from 'goffset' to 'Py_ssize_t', possible loss
> of data
> gio/gio.c(19534) : error C2065: 'G_TYPE_CONVERTER_FLAGS' : undeclared 
> identifier
> gio/gio.c(19535) : error C2065: 'G_TYPE_CONVERTER_RESULT' : undeclared 
> identifier
> gio/gio.c(19563) : error C2065: 'G_TYPE_ZLIB_COMPRESSOR_FORMAT' : undeclared 
> identifier
> error: command '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"' 
> failed with exit status 2

Looks like you need glib/gio from git.

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] Pygtk and Windows... how to build for release?

2010-01-11 Thread Stuart Axon
There are seperate ones from the ones I got in the pygobject git ?

Or is it finding the binary versions of those that I have installed ?



- Original Message 
From: John Stowers 
To: Stuart Axon 
Cc: pygtk@daa.com.au
Sent: Mon, January 11, 2010 10:30:29 AM
Subject: Re: [pygtk] Pygtk and Windows... how to build for release?

On Sun, 2010-01-10 at 17:44 -0800, Stuart Axon wrote:
> The git learning is great :)
> 
> I might try building stable stuff tomorrow, although I may as well try and 
> build HEAD too.
> 
> So far I got pygobject starting to build, but now I can see the real hassle, 
> that of course the problem is not the python, but the other stuff...
> 
> [C:\usr\pygtk-git\pygobject]python setup.py build
> **
> Building PyGObject using distutils is NOT SUPPORTED.
> It's mainly included to be able to easily build win32 installers
> You may continue, but only if you agree to not ask any questions
> To build PyGObject in a supported way, read the INSTALL file
> 
> Build fixes are of course welcome and should be filed in bugzilla
> **
> Not supported, ok [y/N]? y
> C:\usr\pygtk-git\pygobject\dsextras.py:354: DeprecationWarning: 
> object.__new__() takes no parameters
>   return object.__new__(cls,*args, **kwds)
> running build
> running build_py
> running build_clib
> building 'pyglib' library
> running build_ext
> building 'gio._gio' extension
> C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD 
> /W3 /GS- /DNDEBUG -DPYGOBJECT_MAJOR_VERSIO
> N=2 -DPYGOBJECT_MINOR_VERSION=21 -DPYGOBJECT_MICRO_VERSION=2 
> -DVERSION="""2.21.2""" -Iglib -IC:/usr/gtk/include/glib-2.0
>  -IC:/usr/gtk/lib/glib-2.0/include -Igobject -IC:/usr/gtk/include/glib-2.0 
> -IC:/usr/gtk/lib/glib-2.0/include -IC:\usr\Py
> thon26\include -IC:\usr\Python26\PC /Tcgio/gio.c 
> /Fobuild\temp.win32-2.6\Release\gio/gio.obj
> gio.c
> gmemoryoutputstream.override(44) : warning C4244: 'function' : conversion 
> from 'goffset' to 'Py_ssize_t', possible loss
> of data
> gio/gio.c(19534) : error C2065: 'G_TYPE_CONVERTER_FLAGS' : undeclared 
> identifier
> gio/gio.c(19535) : error C2065: 'G_TYPE_CONVERTER_RESULT' : undeclared 
> identifier
> gio/gio.c(19563) : error C2065: 'G_TYPE_ZLIB_COMPRESSOR_FORMAT' : undeclared 
> identifier
> error: command '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"' 
> failed with exit status 2

Looks like you need glib/gio from git.

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] Pygtk and Windows... how to build for release?

2010-01-10 Thread Stuart Axon
The git learning is great :)

I might try building stable stuff tomorrow, although I may as well try and 
build HEAD too.

So far I got pygobject starting to build, but now I can see the real hassle, 
that of course the problem is not the python, but the other stuff...

[C:\usr\pygtk-git\pygobject]python setup.py build
**
Building PyGObject using distutils is NOT SUPPORTED.
It's mainly included to be able to easily build win32 installers
You may continue, but only if you agree to not ask any questions
To build PyGObject in a supported way, read the INSTALL file

Build fixes are of course welcome and should be filed in bugzilla
**
Not supported, ok [y/N]? y
C:\usr\pygtk-git\pygobject\dsextras.py:354: DeprecationWarning: 
object.__new__() takes no parameters
  return object.__new__(cls,*args, **kwds)
running build
running build_py
running build_clib
building 'pyglib' library
running build_ext
building 'gio._gio' extension
C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD 
/W3 /GS- /DNDEBUG -DPYGOBJECT_MAJOR_VERSIO
N=2 -DPYGOBJECT_MINOR_VERSION=21 -DPYGOBJECT_MICRO_VERSION=2 
-DVERSION="""2.21.2""" -Iglib -IC:/usr/gtk/include/glib-2.0
 -IC:/usr/gtk/lib/glib-2.0/include -Igobject -IC:/usr/gtk/include/glib-2.0 
-IC:/usr/gtk/lib/glib-2.0/include -IC:\usr\Py
thon26\include -IC:\usr\Python26\PC /Tcgio/gio.c 
/Fobuild\temp.win32-2.6\Release\gio/gio.obj
gio.c
gmemoryoutputstream.override(44) : warning C4244: 'function' : conversion from 
'goffset' to 'Py_ssize_t', possible loss
of data
gio/gio.c(19534) : error C2065: 'G_TYPE_CONVERTER_FLAGS' : undeclared identifier
gio/gio.c(19535) : error C2065: 'G_TYPE_CONVERTER_RESULT' : undeclared 
identifier
gio/gio.c(19563) : error C2065: 'G_TYPE_ZLIB_COMPRESSOR_FORMAT' : undeclared 
identifier
error: command '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"' 
failed with exit status 2



.. I had a brief look at gio.c, line 19534
The flags G_TYPE_APP_INFO_CREATE_FLAGS seem to work, but the next don't... I 
really don't have a clue where the working ones come from (couldn't find gio.h 
- maybe it was here), or where they should be declared.

Still, will look more, but is a good 10 years since I did any C, hopefully I 
can find some time tomorrow to try doing some more.


- Original Message 
From: John Stowers 
To: Stuart Axon 
Cc: pygtk@daa.com.au
Sent: Mon, January 11, 2010 1:01:11 AM
Subject: Re: [pygtk] Pygtk and Windows... how to build for release?

On Sun, 2010-01-10 at 16:49 -0800, Stuart Axon wrote:
> Cheers all the git stuff worked, and I'm pretty sure my distutils.cfg is 
> correct for msvc now.
> 
> in pygobject I tried
> 
> python setup.py build
> 
> However it's complaining:
> 
> Warning: Too old version of glib-2.0
>  Need glib-2.0, but 2.22.3 is installed
> 
> I added some debug and it's looking for version 2.22.4 of glib...  since this 
> appears to be the development version, do I need to build this too (and 
> possibly gtk itself)

The answer is both probably, and it depends :-). If you want to build
pygtk version that is bleeding edge, then you will need newer versions
of everything. However you do not have to do this.

In the previous step you merged with orgin/master (HEAD). You could
instead just merge up to the last stable releases (my pygtk branch has
merged up to and including pygtk 2.16 IIRC).

repeating the previous steps (or resetting your tree back to the start)
you can then merge up to and including whatever commit/tag is recent
enough for you. For example, to update pygtk to 2.17 you need to do
something like

git checkout your-branch
git merge PYGTK_2_17_0

Sorry if this is becoming a git lesson, you have to learn it sometime!

John

> 
> ?
> 
> 
> 
> 
> - Original Message ----
> From: John Stowers 
> To: Stuart Axon 
> Cc: pygtk@daa.com.au
> Sent: Mon, January 11, 2010 12:06:47 AM
> Subject: Re: [pygtk] Pygtk and Windows... how to build for release?
> 
> On Sun, 2010-01-10 at 15:52 -0800, Stuart Axon wrote:
> > Ooops, immediately after found your one:
> > http://github.com/nzjrs/pygobject/blob/master-windows/
> 
> Correct.
> 
> 
>  


  
___
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] Pygtk and Windows... how to build for release?

2010-01-10 Thread Stuart Axon
Ooops, my itchy trigger email finger, found it... please ignore..



- Original Message 
From: Stuart Axon 
To: John Stowers 
Cc: pygtk@daa.com.au
Sent: Mon, January 11, 2010 12:49:36 AM
Subject: Re: [pygtk] Pygtk and Windows... how to build for release?

Cheers all the git stuff worked, and I'm pretty sure my distutils.cfg is 
correct for msvc now.

in pygobject I tried

python setup.py build

However it's complaining:

Warning: Too old version of glib-2.0
 Need glib-2.0, but 2.22.3 is installed

I added some debug and it's looking for version 2.22.4 of glib...  since this 
appears to be the development version, do I need to build this too (and 
possibly gtk itself)

?




- Original Message 
From: John Stowers 
To: Stuart Axon 
Cc: pygtk@daa.com.au
Sent: Mon, January 11, 2010 12:06:47 AM
Subject: Re: [pygtk] Pygtk and Windows... how to build for release?

On Sun, 2010-01-10 at 15:52 -0800, Stuart Axon wrote:
> Ooops, immediately after found your one:
> http://github.com/nzjrs/pygobject/blob/master-windows/

Correct.


  
___
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] Pygtk and Windows... how to build for release?

2010-01-10 Thread Stuart Axon
Cheers all the git stuff worked, and I'm pretty sure my distutils.cfg is 
correct for msvc now.

in pygobject I tried

python setup.py build

However it's complaining:

Warning: Too old version of glib-2.0
 Need glib-2.0, but 2.22.3 is installed

I added some debug and it's looking for version 2.22.4 of glib...  since this 
appears to be the development version, do I need to build this too (and 
possibly gtk itself)

?




- Original Message 
From: John Stowers 
To: Stuart Axon 
Cc: pygtk@daa.com.au
Sent: Mon, January 11, 2010 12:06:47 AM
Subject: Re: [pygtk] Pygtk and Windows... how to build for release?

On Sun, 2010-01-10 at 15:52 -0800, Stuart Axon wrote:
> Ooops, immediately after found your one:
> http://github.com/nzjrs/pygobject/blob/master-windows/

Correct.


  
___
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] Pygtk and Windows... how to build for release?

2010-01-10 Thread Stuart Axon
Ooops, immediately after found your one:
http://github.com/nzjrs/pygobject/blob/master-windows/



- Original Message 
From: Stuart Axon 
To: John Stowers 
Cc: pygtk@daa.com.au
Sent: Sun, January 10, 2010 11:51:23 PM
Subject: Re: [pygtk] Pygtk and Windows... how to build for release?

So for gobject, is it worth starting with this branch with windows build fixes:
http://git.codethink.co.uk/?p=pygobject;a=summary

?



- Original Message 
From: John Stowers 
To: Stuart Axon 
Cc: pygtk@daa.com.au
Sent: Sun, January 10, 2010 11:24:19 PM
Subject: Re: [pygtk] Pygtk and Windows... how to build for release?

On Sun, 2010-01-10 at 14:49 -0800, Stuart Axon wrote:
> Is your branch the branch here:
> http://github.com/nzjrs/pygtk
> ?

Yes
> 
> git clone git://github.com/nzjrs/pygtk.git
> 
> gives me an empty pygtk directory...

This is because my work is not in the master branch, so the (default)
checkout of master, after the clone, fails.

> 
> 
> Still very new at git.

note: I did this last night and it merged fine, but I did't bother
pushing anything because I could not even build test it. This is what
you need to do (small mistakes might be here, I am doing this from
memory)

# checkout gnome version of pygtk
git clone url/of/gnome/pygtk
cd pygtk
# add my repository
git remote add john git://github.com/nzjrs/pygtk.git
git fetch john
# create a branch for you to work in. This is initially identical to my
# branch
git checkout -b my-work john/master-windows
# merge master into your new branch
get merge origin master

That should get you going, same steps apply for pygobject (which you
need to do first)

John

> 
> 
> 
> - Original Message 
> From: John Stowers 
> To: Stuart Axon 
> Cc: pygtk@daa.com.au
> Sent: Sat, January 9, 2010 5:44:33 PM
> Subject: Re: [pygtk] Pygtk and Windows... how to build for release?
> 
> On Sat, 2010-01-09 at 09:39 -0800, Stuart Axon wrote:
> > Hi,
> >   I'd like to have a go at building PyGtk for Windows.  And doing whats 
> > necessary to build an official version.  I've installed Visual Studio 
> > express 2008, and have the latest PyGtk from Git.
> 
> Check out
> 
> https://bugzilla.gnome.org/show_bug.cgi?id=589671
> 
> I got this working fine on windows a few months ago - using the
> distutils build system.
> 
> I suggest you update my branch against master and then tell distutils to
> build using the VC compiler.
> 
> 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] Pygtk and Windows... how to build for release?

2010-01-10 Thread Stuart Axon
So for gobject, is it worth starting with this branch with windows build fixes:
http://git.codethink.co.uk/?p=pygobject;a=summary

?



- Original Message 
From: John Stowers 
To: Stuart Axon 
Cc: pygtk@daa.com.au
Sent: Sun, January 10, 2010 11:24:19 PM
Subject: Re: [pygtk] Pygtk and Windows... how to build for release?

On Sun, 2010-01-10 at 14:49 -0800, Stuart Axon wrote:
> Is your branch the branch here:
> http://github.com/nzjrs/pygtk
> ?

Yes
> 
> git clone git://github.com/nzjrs/pygtk.git
> 
> gives me an empty pygtk directory...

This is because my work is not in the master branch, so the (default)
checkout of master, after the clone, fails.

> 
> 
> Still very new at git.

note: I did this last night and it merged fine, but I did't bother
pushing anything because I could not even build test it. This is what
you need to do (small mistakes might be here, I am doing this from
memory)

# checkout gnome version of pygtk
git clone url/of/gnome/pygtk
cd pygtk
# add my repository
git remote add john git://github.com/nzjrs/pygtk.git
git fetch john
# create a branch for you to work in. This is initially identical to my
# branch
git checkout -b my-work john/master-windows
# merge master into your new branch
get merge origin master

That should get you going, same steps apply for pygobject (which you
need to do first)

John

> 
> 
> 
> - Original Message 
> From: John Stowers 
> To: Stuart Axon 
> Cc: pygtk@daa.com.au
> Sent: Sat, January 9, 2010 5:44:33 PM
> Subject: Re: [pygtk] Pygtk and Windows... how to build for release?
> 
> On Sat, 2010-01-09 at 09:39 -0800, Stuart Axon wrote:
> > Hi,
> >   I'd like to have a go at building PyGtk for Windows.  And doing whats 
> > necessary to build an official version.  I've installed Visual Studio 
> > express 2008, and have the latest PyGtk from Git.
> 
> Check out
> 
> https://bugzilla.gnome.org/show_bug.cgi?id=589671
> 
> I got this working fine on windows a few months ago - using the
> distutils build system.
> 
> I suggest you update my branch against master and then tell distutils to
> build using the VC compiler.
> 
> 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] Pygtk and Windows... how to build for release?

2010-01-10 Thread Stuart Axon
Is your branch the branch here:
http://github.com/nzjrs/pygtk
?

git clone git://github.com/nzjrs/pygtk.git

gives me an empty pygtk directory...


Still very new at git.



- Original Message 
From: John Stowers 
To: Stuart Axon 
Cc: pygtk@daa.com.au
Sent: Sat, January 9, 2010 5:44:33 PM
Subject: Re: [pygtk] Pygtk and Windows... how to build for release?

On Sat, 2010-01-09 at 09:39 -0800, Stuart Axon wrote:
> Hi,
>   I'd like to have a go at building PyGtk for Windows.  And doing whats 
> necessary to build an official version.  I've installed Visual Studio express 
> 2008, and have the latest PyGtk from Git.

Check out

https://bugzilla.gnome.org/show_bug.cgi?id=589671

I got this working fine on windows a few months ago - using the
distutils build system.

I suggest you update my branch against master and then tell distutils to
build using the VC compiler.

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] Pygtk and Windows... how to build for release?

2010-01-09 Thread Stuart Axon
Cool, I'll give this a go hopefully tomorrow...  + probably come back with 
questions on how to do the merging with git (I've only used mecurial when it 
comes to dvcs).

(This is the main reason I think I'm a bad choice (even though I'm choosing 
myself) for maintainer... I'm always off doing other things... maybe doing this 
will help focus me or someth).


S++


- Original Message 
From: John Stowers 
To: Stuart Axon 
Cc: pygtk@daa.com.au
Sent: Sat, January 9, 2010 5:44:33 PM
Subject: Re: [pygtk] Pygtk and Windows... how to build for release?

On Sat, 2010-01-09 at 09:39 -0800, Stuart Axon wrote:
> Hi,
>   I'd like to have a go at building PyGtk for Windows.  And doing whats 
> necessary to build an official version.  I've installed Visual Studio express 
> 2008, and have the latest PyGtk from Git.

Check out

https://bugzilla.gnome.org/show_bug.cgi?id=589671

I got this working fine on windows a few months ago - using the
distutils build system.

I suggest you update my branch against master and then tell distutils to
build using the VC compiler.

John


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


[pygtk] Pygtk and Windows... how to build for release?

2010-01-09 Thread Stuart Axon
Hi,
  I'd like to have a go at building PyGtk for Windows.  And doing whats 
necessary to build an official version.  I've installed Visual Studio express 
2008, and have the latest PyGtk from Git.

The catch is that I have no experience in Visual Studio, only in building open 
source apps from commandline with gcc.

I'm pretty keen to see an up to date version of PyGtk available for Windows, if 
I can get some direction on how to get started building it, perhaps this could 
lead to a release.

I have to admit that I'm slightly reluctant to become a maintainer of PyGtk 
forever as I tend to do little bits on lots of different projects, but I'll 
certainly be up for building and testing the Windows PyGtk for a couple of 
versions at least.

My main motivation is to have modern versions of PyGtk and other libraries that 
shoebot needs available.


Any direction on building this with VS would be welcome, as I don't know what 
to do with it, and could find no documentation on building PyGtk with it.

Cheers
Stu



  
___
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] Pygtk newer than 2.12 on win32, blocking on what?

2009-12-25 Thread Stuart Axon
Cool... So if this is ready, is there anybody here on the list that can push
this to HEAD ?


Right... back to watching crappy xmas television :)

S++

> On Tue, 2009-12-22 at 15:30 -0800, Stuart Axon wrote:
> > Hi,
> >This might just be my interpretation, but...
> > 
> > It seems that until bug 22940 [ 
> > http://bugs.freedesktop.org/show_bug.cgi?id=22940 ]
> > is blocking versions of pygtk newer than 2.12 on windows:
> > 
> >   Although unofficial builds are around 
> >   
> > http://opensourcepack.blogspot.com/2009/09/pygtk-2160-python-25-win32-unofficial.html
> > 
> >   They don't have that nice 'feel' of official builds (well it didn't work 
> > for me)... 
> > 
> > What needs to happen to move this forward, and how can it be achieved?
> 
> I cleaned up the build stuff a while ago here;
> 
> https://bugzilla.gnome.org/show_bug.cgi?id=589671
> 
> But I no longer have a windows install. Someone else will need to update
> it to HEAD and finish it off.
> 
> 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] Pygtk newer than 2.12 on win32, blocking on what?

2009-12-25 Thread Stuart Axon
Ooops, sorry had that back to front... was thinking it needed commiting to
HEAD, just realised that the patches need to be fixed up to the latest
revision of HEAD.

If I get some time to I'll try and build PyGtk, although quite busy with
holiday stuff until some time in Jan (as I'm sure most people are :)

> Cool... So if this is ready, is there anybody here on the list that can push
> this to HEAD ?
> 
> 
> Right... back to watching crappy xmas television :)
> 
> S++
> 
> > On Tue, 2009-12-22 at 15:30 -0800, Stuart Axon wrote:
> > > Hi,
> > >This might just be my interpretation, but...
> > >
> > > It seems that until bug 22940 [ 
> > > http://bugs.freedesktop.org/show_bug.cgi?id=22940 ]
> > > is blocking versions of pygtk newer than 2.12 on windows:
> > >
> > >  Although unofficial builds are around
> > >  
> > > http://opensourcepack.blogspot.com/2009/09/pygtk-2160-python-25-win32-unofficial.html
> > >
> > >  They don't have that nice 'feel' of official builds (well it didn't work 
> > > for me)...
> > >
> > > What needs to happen to move this forward, and how can it be achieved?
> >
> > I cleaned up the build stuff a while ago here;
> >
> > https://bugzilla.gnome.org/show_bug.cgi?id=589671
> >
> > But I no longer have a windows install. Someone else will need to update
> > it to HEAD and finish it off.
> >
> > John
> >


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


[pygtk] Pygtk newer than 2.12 on win32, blocking on what?

2009-12-22 Thread Stuart Axon
Hi,
   This might just be my interpretation, but...

It seems that until bug 22940 [ 
http://bugs.freedesktop.org/show_bug.cgi?id=22940 ]
is blocking versions of pygtk newer than 2.12 on windows:

  Although unofficial builds are around 
  
http://opensourcepack.blogspot.com/2009/09/pygtk-2160-python-25-win32-unofficial.html

  They don't have that nice 'feel' of official builds (well it didn't work for 
me)... 

What needs to happen to move this forward, and how can it be achieved?


Collateral from this includes:  gedit python plugins on windows (and so shoebot 
on gedit on windows), glom on windows, and anybody interested in the newer apis.


Cheers
S++



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


[pygtk] Gtk main-iteration seems slow

2009-04-21 Thread Stuart Axon

Hi,
  I've been doing some basic profiling on shoebot, which uses pygtk + cairo, it 
seems that gtk-main_iteration seems to take the most amount of time.  
I did some benchmarks (drawing 100 frames, with main_iteration and without).

  Time per frame
  0.20332172   gtk.main_iteration
  0.21091801   gtk.main_iteration(block = False)
  0.018059428  No gtk.main_iteration

I've listed the code of the main drawing loop below, is there a way I can up 
the framerate to something closer to 60, not 5 ?
(on the other hand should gtk.main_iteration really be this slow??)

while 1:
# increase bot frame count
self.bot.next_frame()
# redraw canvas
self.drawingarea.redraw()

# respect framerate
completion_time = time()
exc_time = completion_time - start_time
start_time = completion_time
sleep(1. / (self.bot.framerate - exc_time))

while gtk.events_pending():
gtk.main_iteration()



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