[pygtk] PyGTK in the standard Library

2004-06-18 Thread Matthew Bull
I realise I'm quite new to this list but I've been working with PyGTK
for a while now and would welcome peoples feedback on something. please
put me straight if I'm treading on toes, or reiterating an old
discussion.

There have been several discussions on the list in the last few months
about trying to get PyGTK into the standard library, and whilst
attending europython recently I had an opportunity to steer
conversations in that direction with a lot of people to get a feel for
the (european at least) communities take on this, most of the people I
spoke to where non PyGTK folks, and the opinions seemed to be generally
favourable.

there where however a few buts...

1. Documentation -

this is something that has been discussed on the list quite a few times
and actually I think the exsisting free docs are perfectly adequate it
seemed to mostly come from people who had tried PyGTK back in the day
(when I seem to remember there wasn't a lot of documentation)

2. Windows -

many people seemed surprised that GTK ran on windows at all and others
had been put of by all the various different ways of doing it, I have
been reading the [Installation Problems on Win32] thread that seems to
be raging on so I'll just add my two pence worth from what I've gathered
so far the python community at large and the maintainers of the standard
libraries would want a simple drop it in installer for the basic gtk
runtime (a la dropline).

3.Idle -

Actually most people seemed to be oblivious to Idle but I can see it
would have to be ported to GTK (almost re-written) and this is where I
come in, I've already been doing some stuff with a simple text editor
written in python and PyGTK and I have some time available so if no one
else wants the job I'll take it on, help would be appreciated or if
someone else wants the job (or has already started it), my help is
offered.

So is this something the PyGTK community wants to see happen? I for one
would love to see PyGTK in the standard distro, (Tk is so long in
the tooth its untrue) and am willing to put in some work to see it
happen, so if its already happening put me to work!, if not could we
make it happen??

thanks for taking the time to read this

Matt

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


Re: [pygtk] How to hack gdesklets to work with 2.4

2004-06-18 Thread Jonathon McKitrick
On Fri, Jun 18, 2004 at 10:12:06AM +0200, Johan Dahlin wrote:
: fre 2004-06-18 klockan 02.32 skrev Jonathon McKitrick:
:  I don't use autoconf, but I'd like to install gdesklets, and it won't let
:  me, since it doesn't find pygtk.  I have the 2.4 beta installed.
: 
: You need to set PKG_CONFIG_PATH to the correct directory before running
: configure. If you installed PyGTK 2.3.x in /usr/local, it should be
: something like this:
: 
: export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
: 
: And before running you need to set pythonpath.
: 
: export PYTHONPATH=/usr/local/lib/pythonX.Y/site-packages
: 
: where X.Y is the python version, usually 2.3 these days.

And this will work on FreeBSD as well?



jm
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] PyGTK in the standard Library

2004-06-18 Thread Rubens Ramos
Well - I have to say - I just joined the list a very short 
time ago, and just contributed a bit here and there to pygtk, but
this email really inspired me to write about point n.3.

My dream would really to be able to see gnome apps using
a PyGTK-thing that worked like VBA - please dont kill me 
just yet, I will try to explain myself.

A thing I really miss in the whole Gnome experience,
is something like what you can do in Word, Powerpoint, and other
Windows apps that use COM and VB.

Now, I hear you say: But we can do that! We have bonobo! And
the app developer has to add support for plugins. All you
have to do is use your favorite editor/RAD and write the application.

This is what I think could be improved - If there was some sort
of VBA-like thing using PyGTK, that you can just attach to your
application, that would make things so nice.

I believe everything from an infrastructure point of view is already
there:

* Bonobo + the pygtk bonobo bindings
* PyGTK
* gtksourceview
* insert some GUI builder here

Well - I know - it is a lot of work to put these things together,
and then a lot of politics to convince people to use it. But I guess,
if I had time to do it, I would try.

One issue I see with the acceptance of this is that (I may be
completely wrong here) some people may see Mono as the silver bullet
for this problem. I am not that familiar with Mono to say for sure.

Ah. Feel much better now :)

--- Matthew Bull [EMAIL PROTECTED] wrote:
 I realise I'm quite new to this list but I've been working with PyGTK
 for a while now and would welcome peoples feedback on something. please
 put me straight if I'm treading on toes, or reiterating an old
 discussion.
 
 There have been several discussions on the list in the last few months
 about trying to get PyGTK into the standard library, and whilst
 attending europython recently I had an opportunity to steer
 conversations in that direction with a lot of people to get a feel for
 the (european at least) communities take on this, most of the people I
 spoke to where non PyGTK folks, and the opinions seemed to be generally
 favourable.
 
 there where however a few buts...
 
 1. Documentation -
 
 this is something that has been discussed on the list quite a few times
 and actually I think the exsisting free docs are perfectly adequate it
 seemed to mostly come from people who had tried PyGTK back in the day
 (when I seem to remember there wasn't a lot of documentation)
 
 2. Windows -
 
 many people seemed surprised that GTK ran on windows at all and others
 had been put of by all the various different ways of doing it, I have
 been reading the [Installation Problems on Win32] thread that seems to
 be raging on so I'll just add my two pence worth from what I've gathered
 so far the python community at large and the maintainers of the standard
 libraries would want a simple drop it in installer for the basic gtk
 runtime (a la dropline).
 
 3.Idle -
 
 Actually most people seemed to be oblivious to Idle but I can see it
 would have to be ported to GTK (almost re-written) and this is where I
 come in, I've already been doing some stuff with a simple text editor
 written in python and PyGTK and I have some time available so if no one
 else wants the job I'll take it on, help would be appreciated or if
 someone else wants the job (or has already started it), my help is
 offered.
 
 So is this something the PyGTK community wants to see happen? I for one
 would love to see PyGTK in the standard distro, (Tk is so long in
 the tooth its untrue) and am willing to put in some work to see it
 happen, so if its already happening put me to work!, if not could we
 make it happen??
 
 thanks for taking the time to read this
 
 Matt
 
 ___
 pygtk mailing list   [EMAIL PROTECTED]
 http://www.daa.com.au/mailman/listinfo/pygtk
 Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
 




__
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] How to hack gdesklets to work with 2.4

2004-06-18 Thread Johan Dahlin
 And this will work on FreeBSD as well?

Yes, it should work on all system where autotools passes.

-- 
Johan Dahlin [EMAIL PROTECTED]

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


Re: [pygtk] PyGTK in the standard Library

2004-06-18 Thread Gustavo J. A. M. Carneiro
  While I think that in principle this would be a good idea, there are
some management issues that would need to be resolved, such as:
1- PyGTK wraps GTK+ for Python. Which life-cycle do we follow, GTK's or
Python's?
2- Do we keep PyGTK's bugzilla, or use sourceforge's bug tracker (ugh!)
to integrate better with python;
3- What happens to pyorbit and gnome-python? They probably don't belong
in python, anyway, but I needed to raise this point...
4- Someone might bring up political question regarding the inclusion of
pygtk in detriment of pyqt; in particular, KDE's more intense
enthusiasts (=fanatics:) may stop liking python because of the inclusion
of pygtk;

 In spite of these issues, there are many advantages of including pygtk,
as you all know.  But it also depends on the degree of freedom that
python's maintainers would be willing to give to pygtk developers, I
think...

  Just my 0.02 ¤...

A Sex, 2004-06-18 às 10:27, Matthew Bull escreveu:
 I realise I'm quite new to this list but I've been working with PyGTK
 for a while now and would welcome peoples feedback on something. please
 put me straight if I'm treading on toes, or reiterating an old
 discussion.
 
 There have been several discussions on the list in the last few months
 about trying to get PyGTK into the standard library, and whilst
 attending europython recently I had an opportunity to steer
 conversations in that direction with a lot of people to get a feel for
 the (european at least) communities take on this, most of the people I
 spoke to where non PyGTK folks, and the opinions seemed to be generally
 favourable.
 
 there where however a few buts...
 
 1. Documentation -
 
 this is something that has been discussed on the list quite a few times
 and actually I think the exsisting free docs are perfectly adequate it
 seemed to mostly come from people who had tried PyGTK back in the day
 (when I seem to remember there wasn't a lot of documentation)
 
 2. Windows -
 
 many people seemed surprised that GTK ran on windows at all and others
 had been put of by all the various different ways of doing it, I have
 been reading the [Installation Problems on Win32] thread that seems to
 be raging on so I'll just add my two pence worth from what I've gathered
 so far the python community at large and the maintainers of the standard
 libraries would want a simple drop it in installer for the basic gtk
 runtime (a la dropline).
 
 3.Idle -
 
 Actually most people seemed to be oblivious to Idle but I can see it
 would have to be ported to GTK (almost re-written) and this is where I
 come in, I've already been doing some stuff with a simple text editor
 written in python and PyGTK and I have some time available so if no one
 else wants the job I'll take it on, help would be appreciated or if
 someone else wants the job (or has already started it), my help is
 offered.
 
 So is this something the PyGTK community wants to see happen? I for one
 would love to see PyGTK in the standard distro, (Tk is so long in
 the tooth its untrue) and am willing to put in some work to see it
 happen, so if its already happening put me to work!, if not could we
 make it happen??
 
 thanks for taking the time to read this
 
 Matt
 
 ___
 pygtk mailing list   [EMAIL PROTECTED]
 http://www.daa.com.au/mailman/listinfo/pygtk
 Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
-- 
Gustavo João Alves Marques Carneiro
[EMAIL PROTECTED] [EMAIL PROTECTED]
The universe is always one step beyond logic.

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


Re: [pygtk] PyGTK in the standard Library

2004-06-18 Thread Skip Montanaro

Matt There have been several discussions on the list in the last few
Matt months about trying to get PyGTK into the standard library, ...

Matt there where however a few buts...

Matt 1. Documentation -
...
Matt 2. Windows -
...
Matt 3.Idle -
...

4. Mac OSX - Is GTK available on Mac OSX without X11?  Tkinter does have the
   advantage that TkAqua is available for non-X environments.

-- 
Skip Montanaro
Got gigs? http://www.musi-cal.com/submit.html
Got spam? http://www.spambayes.org/
[EMAIL PROTECTED]
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


[pygtk] New subscriber, asking about embedding

2004-06-18 Thread Lucas Di Pentima
Hi there boys and girls!
I'm a new PyGTK user, I'm developing a C application using the GNOME 
framework, it's a VGA Planets client called GNOME War Pad 
(http://gwp.lunix.com.ar), and I'm starting to use PyGTK's codegen 
feature to wrap my GObjects inside Python objects...it works great 
although I'm just starting to do things with it.

What I need is to be able to share living objects between C and Python 
code, so the Python scrips could manipulate directly the game's objects. 
For example, I have a GwpShip GObject (C code), and from python I want 
to get an existing ship object to change some parameter, I don't know if 
there's a direct way to do that, I searched the docs on the website but 
didn't found any reference, anyone can help me?

Best regards,
--
Lucas Di Pentima - Santa Fe, Argentina - Jabber ID: [EMAIL PROTECTED]
LUNIX S.R.L. - Soluciones en GNU/Linux - http://www.lunix.com.ar
GnuPG Public Key:
http://search.keyserver.net:11371/pks/lookup?op=getsearch=0x6AA54FC9
Key fingerprint = BD3B 08C4 661A 8C3B 1855  740C 8F98 3FCF 6AA5 4FC9


signature.asc
Description: OpenPGP digital signature
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] New subscriber, asking about embedding

2004-06-18 Thread Lucas Di Pentima
Ouch! I think I've found the answer on the FAQ :-)
http://www.async.com.br/faq/pygtk/index.py?querytype=simplequery=PyGObjectreq=search
Lucas Di Pentima wrote:
Hi there boys and girls!
I'm a new PyGTK user, I'm developing a C application using the GNOME 
[...]
there's a direct way to do that, I searched the docs on the website but 
didn't found any reference, anyone can help me?

--
Lucas Di Pentima - Santa Fe, Argentina - Jabber ID: [EMAIL PROTECTED]
LUNIX S.R.L. - Soluciones en GNU/Linux - http://www.lunix.com.ar
GnuPG Public Key:
http://search.keyserver.net:11371/pks/lookup?op=getsearch=0x6AA54FC9
Key fingerprint = BD3B 08C4 661A 8C3B 1855  740C 8F98 3FCF 6AA5 4FC9


signature.asc
Description: OpenPGP digital signature
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] PyGTK in the standard Library

2004-06-18 Thread Matthew Bull
On Fri, 2004-06-18 at 13:41, Gustavo J. A. M. Carneiro wrote:
   While I think that in principle this would be a good idea, there are
 some management issues that would need to be resolved, such as:
   1- PyGTK wraps GTK+ for Python. Which life-cycle do we follow, GTK's or
 Python's?

Both this point and the one below are best answered by the library
developers, if they are in favour of the idea of course :^) (I should
make it clear I _use_ pyGTK, I'm not a developer) although to me
following the GTK lifecycle then the python 'standard' version being the
stable version at the time of the python release would make sense... GTK
and PyGTK release cycles seem to be much faster than pythons

   2- Do we keep PyGTK's bugzilla, or use sourceforge's bug tracker (ugh!)
 to integrate better with python;
   3- What happens to pyorbit and gnome-python? They probably don't belong
 in python, anyway, but I needed to raise this point...

they are essentially seperate right?? (although they do depend on pyGTK)
so not really an issue, for instance I use Gnome but I only have PyGTK
on my linux boxes

   4- Someone might bring up political question regarding the inclusion of
 pygtk in detriment of pyqt; in particular, KDE's more intense
 enthusiasts (=fanatics:) may stop liking python because of the inclusion
 of pygtk;

Interestingly I did have a few people say 'well what about PyQT' but no
one mentioned WxPython (which I expected) although even people using
PyQT pretty much agreed it wasn't really suitable its a very big
library and it includes a lot of stuff that is already in the standard
libs (qtsql for instance), and on linux I'm not sure that the packaging
would change, (most linux distros package tkinter seperately anyhow)

 
  In spite of these issues, there are many advantages of including pygtk,
 as you all know.  But it also depends on the degree of freedom that
 python's maintainers would be willing to give to pygtk developers, I
 think...
 
   Just my 0.02 ¤...
 
 A Sex, 2004-06-18 às 10:27, Matthew Bull escreveu:
  I realise I'm quite new to this list but I've been working with PyGTK
  for a while now and would welcome peoples feedback on something. please
  put me straight if I'm treading on toes, or reiterating an old
  discussion.
  
  There have been several discussions on the list in the last few months
  about trying to get PyGTK into the standard library, and whilst
  attending europython recently I had an opportunity to steer
  conversations in that direction with a lot of people to get a feel for
  the (european at least) communities take on this, most of the people I
  spoke to where non PyGTK folks, and the opinions seemed to be generally
  favourable.
  
  there where however a few buts...
  
  1. Documentation -
  
  this is something that has been discussed on the list quite a few times
  and actually I think the exsisting free docs are perfectly adequate it
  seemed to mostly come from people who had tried PyGTK back in the day
  (when I seem to remember there wasn't a lot of documentation)
  
  2. Windows -
  
  many people seemed surprised that GTK ran on windows at all and others
  had been put of by all the various different ways of doing it, I have
  been reading the [Installation Problems on Win32] thread that seems to
  be raging on so I'll just add my two pence worth from what I've gathered
  so far the python community at large and the maintainers of the standard
  libraries would want a simple drop it in installer for the basic gtk
  runtime (a la dropline).
  
  3.Idle -
  
  Actually most people seemed to be oblivious to Idle but I can see it
  would have to be ported to GTK (almost re-written) and this is where I
  come in, I've already been doing some stuff with a simple text editor
  written in python and PyGTK and I have some time available so if no one
  else wants the job I'll take it on, help would be appreciated or if
  someone else wants the job (or has already started it), my help is
  offered.
  
  So is this something the PyGTK community wants to see happen? I for one
  would love to see PyGTK in the standard distro, (Tk is so long in
  the tooth its untrue) and am willing to put in some work to see it
  happen, so if its already happening put me to work!, if not could we
  make it happen??
  
  thanks for taking the time to read this
  
  Matt
  
  ___
  pygtk mailing list   [EMAIL PROTECTED]
  http://www.daa.com.au/mailman/listinfo/pygtk
  Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

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


Re: [pygtk] PyGTK in the standard Library

2004-06-18 Thread Matthew Bull
On Fri, 2004-06-18 at 13:59, Skip Montanaro wrote:
 Matt There have been several discussions on the list in the last few
 Matt months about trying to get PyGTK into the standard library, ...
 
 Matt there where however a few buts...
 
 Matt 1. Documentation -
 ...
 Matt 2. Windows -
 ...
 Matt 3.Idle -
 ...
 
 4. Mac OSX - Is GTK available on Mac OSX without X11?  Tkinter does have the
advantage that TkAqua is available for non-X environments.

AFAIK no. but just to clear up a point I don't think anyones proposing
that PyGTK replace Tkinter at this point.

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


Re: [pygtk] how to print from pygtk?

2004-06-18 Thread Fernando San Martín Woerner
Ivan Brkanac escribió:
Hello
I would like to do some printing from pygtk (on windows)
how can it be done I haw data in text buffer and it needs to go to 
printer, as I searched
documentation I couldn't find anything

here in the pyGestor project we are using reportlab 
http://www.reportlab.org/, and acrobat reader as preview manager.

regards
--
Fernando San Martín Woernercounter.li.org Linux User #216550
Jefe Depto. InformáticaGalilea S.A.
Talca, VII Región Chile(56)71-224876
GNOME Foundation Membershiphttp://pygestor.gnome.cl
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] PyGTK in the standard Library

2004-06-18 Thread Skip Montanaro

 1- PyGTK wraps GTK+ for Python. Which life-cycle do we follow, GTK's
 or Python's?

Matt Both this point and the one below are best answered by the library
Matt developers, if they are in favour of the idea of course :^) (I
Matt should make it clear I _use_ pyGTK, I'm not a developer) although
Matt to me following the GTK lifecycle then the python 'standard'
Matt version being the stable version at the time of the python release
Matt would make sense... GTK and PyGTK release cycles seem to be much
Matt faster than pythons

I haven't used PyGTK enough to know, but is the GTK community's stance on
breakage similar to that in the Python community?  If not, simply shipping
with the stable version of PyGTK when Python is released may cause more
perceived Python breakage than that community normally expects.

Skip
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] PyGTK in the standard Library

2004-06-18 Thread Volker Helm
Hi all,

as no nativ english speaker, I ask in advance for pardon because my bad
english.

 1. Documentation -
 
 this is something that has been discussed on the list quite a few times
 and actually I think the exsisting free docs are perfectly adequate it
 seemed to mostly come from people who had tried PyGTK back in the day
 (when I seem to remember there wasn't a lot of documentation)

Your're right. It isn't easy to get some things to work. So I tried handled 
tables, but the documentation failed to existed.

So I'm working with some scripts, to gasp the concept.

Second, as beginner it's difficult to understand the different ways to work
with pygtk as written in the tutorial. For experiened programmers is helpful
to find new styles.

 3.Idle -
 
 Actually most people seemed to be oblivious to Idle but I can see it
 would have to be ported to GTK (almost re-written) and this is where I
 come in, I've already been doing some stuff with a simple text editor
 written in python and PyGTK and I have some time available so if no one
 else wants the job I'll take it on, help would be appreciated or if
 someone else wants the job (or has already started it), my help is
 offered.
 So is this something the PyGTK community wants to see happen? I for one
 would love to see PyGTK in the standard distro, (Tk is so long in
 the tooth its untrue) and am willing to put in some work to see it
 happen, so if its already happening put me to work!, if not could we
 make it happen??


I thought a while ago about this question and tried to convert idle to gtk.
It was like hell, since I was new to python and gtk.

I think it the best to seperate the functionality of idle from the gui. 
So it would be quite easy to port it to anothers gui.
As disadvantage it would be a little bit slower by this way of programming.



Distribution:

If there is an easy way to get the modules pygtk and gtk itself, it would be
easier to distribute it separatly from python like the package win32all by 
Marc Hammond.


Bye,

Volker

-- 
Sie haben neue Mails! - Die GMX Toolbar informiert Sie beim Surfen!
Jetzt aktivieren unter http://www.gmx.net/info



-- 
Sie haben neue Mails! - Die GMX Toolbar informiert Sie beim Surfen!
Jetzt aktivieren unter http://www.gmx.net/info

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


Re: [pygtk] how to print from pygtk?

2004-06-18 Thread Fernando San Martín Woerner
Christian Robottom Reis escribió:
On Fri, Jun 18, 2004 at 03:11:28PM +0200, Ivan Brkanac wrote:
 

I would like to do some printing from pygtk (on windows)
how can it be done I haw data in text buffer and it needs to go to 
printer, as I searched
   

If you want to use GNOME's printing facilities, one alternative is using
the gnome-print bindings that Gustavo started a while ago. I'm not sure
in what state they are in, but I suspect they do work.
Another alternative (mentioned here already) is generating PS/PDF via
reportlab (www.reportlab.org) and printing using invocation of the lpr
binary itself.
 

i understand Ivan is working on win32 platform, so the gnome-print
bindings are unavaible, reportlab is the only one choice, on the other
hand if he is using linux the bindings should be a solution, there was
post in this mailing list from Pier Carteri with some code using
gnome-print and class PrinAssistant very useful, Ivan should check the
mail archive in october or november i guess
regards
--
Fernando San Martín Woernercounter.li.org Linux User #216550
Jefe Depto. InformáticaGalilea S.A.
Talca, VII Región Chile(56)71-224876
GNOME Foundation Membershiphttp://pygestor.gnome.cl
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] Codegen question

2004-06-18 Thread Johan Dahlin
 I tried replacing gint* with int* and got the same message, I 
 suppose I'm doing something wrong, any ideas?

You'll have to do something like this in your .override file:

%%
override gwp_ship_get_waypoint noargs
static PyObject *
_wrap_gwp_ship_get_waypoint (PyObject *self)
{
   int wp_x, wp_y;

   gwp_ship_get_waypoint (GWP_SHIP (self-obj), wp_x, wp_y);
 
   return Py_BuildValue((ii), wp_x, wp_y); 
}

-- 
Johan Dahlin [EMAIL PROTECTED]

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


Re: [pygtk] PyGTK in the standard Library

2004-06-18 Thread Christian Robottom Reis
On Fri, Jun 18, 2004 at 10:27:28AM +0100, Matthew Bull wrote:
 There have been several discussions on the list in the last few months
 about trying to get PyGTK into the standard library, and whilst
 attending europython recently I had an opportunity to steer
 conversations in that direction with a lot of people to get a feel for
 the (european at least) communities take on this, most of the people I
 spoke to where non PyGTK folks, and the opinions seemed to be generally
 favourable.
[snip numerous arguments in favor of including pygtk]

Summarizing the issues presented in this thread, we have the following
topics that want evaluation:

- Combined Release 

- API Stability

- Tkinter, KDE and Python advocacy

- Non-GTK+ packages

- MacOS functionality

- Use of Python's development infrastructure

- Distribution of documentation

I'm not even going to try fleshing these out, but whoever wants to argue
about inclusion needs to take these into serious consideration.

One thing that popped up were two potential projects that somebody with
some free time or a lot of love for Python and PyGTK could try tackling:

- IDLE Port

- Integrated RAD Tool

Thanks for chipping in with opinions and proposals,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


[pygtk] Windows capture webcam (offtopic)...

2004-06-18 Thread Phillip Neumann
Hello.

I know this is a little offtopic.. but i'm developing a program and want
to choose python as the prog. language. The only problem i have to
choose it, is that i need to capture images from a USB webcam. The
plataform is windows..
I have the ddls and all... If i could capture image from within python,
it would be grate, and definitly use python all the way.
What would be the (best) way to capture from a webcam device using
python?

Thanks you in advance,

-- 


Phillip Neumann
[EMAIL PROTECTED]

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


[pygtk] Image as background of textview

2004-06-18 Thread Tiago Cogumbreiro
Hello all, is it possible to add an image as a background of a textview
using pygtk?

If not is it possible to do it in C based Gtk+?

Thank you all in advance,

Tiago Cogumbreiro

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


Re: [pygtk] Windows capture webcam (offtopic)...

2004-06-18 Thread Christian Robottom Reis
On Fri, Jun 18, 2004 at 09:38:51PM +, Phillip Neumann wrote:
   I have the ddls and all... If i could capture image from within python,
 it would be grate, and definitly use python all the way.
   What would be the (best) way to capture from a webcam device using
 python?

If you have the driver DLLs, there might be a way to load and access
their API functions calldll from Mark Hammond's win32all package, but
don't quote me on that. It includes documentation in the download
package:

https://sourceforge.net/projects/pywin32/

There's an example of calldll use here:

http://groups.google.com/groups?selm=u8yxydzw1.fsf%40fitlinxx.com

Disclaimer: I don't know how to use Microsoft Word, let alone call APIs
in Win32 DLLs from Python. But then again, nobody else *really* does --
that is, apart from Mark.

Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/