Re: [pygtk] printing from pygtk: is there a way to use gnome-print's print preview w/o using gnomeprint for layout?

2004-10-12 Thread Thomas Mills Hinkle
On Mon, 11 Oct 2004 10:59:59 -0400 Thomas Mills Hinkle
<[EMAIL PROTECTED]> wrote:

> Is there any way to simply hand gnomeprint an existing
> pdf or postscript file?

I notice now that example 11 in the gnomeprint examples seems to have at
one point provided this functionality:

# this is marked with GNOME_PRINT_UNSTABLE_API in the public headers
# OK. So this example becomes useless, I know.
#job.set_file(TEMP_FILE)

So what does GNOME_PRINT_UNSTABLE_API mean? Is this functionality gone
then? Does anyone know if or when it is to come back?

tom
___
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] Source documentation tool

2004-10-12 Thread Lucas Di Pentima
Christian Robottom Reis wrote:
Look for Ed Loper's epydoc -- http://epydoc.sf.net/ -- I used it to make
the Kiwi API reference, and it rocks.
Looks very good! but for what I can read on the website, it's for 
getting documentation out of python files, what I need is something 
that's compatible with the wrapper generators, that is, that parses the 
.c files generated by the pygtk wrapper tools, that's why I asked on 
this list :-)

Best regards,
--
Lucas Di Pentima - Santa Fe, Argentina - Jabber ID: [EMAIL PROTECTED]
LUNIX: Soluciones en GNU/Linux - http://www.lunix.com.ar
GnuPG Public Key:
http://random.sks.keyserver.penguin.de:11371/pks/lookup?op=get&search=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] The Great Master Plan for Python Bindings

2004-10-12 Thread Christian Robottom Reis
On Tue, Oct 12, 2004 at 09:28:37PM +0100, Gustavo J. A. M. Carneiro wrote:
>   First of all, we have the problem of gnome-python being proposed for
> inclusion in the gnome bindings.  Since it contains bindings[1] for
> libraries that do not belong to the GNOME Developer Platform, they
> should be split out of gnome-python.  I am personally in favour of this
> approach.

I am as well if this means something like the pygtk-extras package we
had discussed earlier this year. I don't think it's worth the hassle of
splitting everything up -- makes it hard for us, makes it hard for the
end-users who just want to pick up an extra package and go. Is there a
good argument *for* splitting everything up?

Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 3361 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/


Re: [pygtk] Source documentation tool

2004-10-12 Thread Christian Robottom Reis
On Tue, Oct 12, 2004 at 07:37:05PM -0300, Lucas Di Pentima wrote:
> For C API I use Doxygen, it works very good, but for the Python API I 
> don't know what to use, it should be some automatic tool like Doxygen, 
> so that's why I'm writing this message, to ask you if you use a tool 
> like Doxygen to generate the API docs on pygtk.

Look for Ed Loper's epydoc -- http://epydoc.sf.net/ -- I used it to make
the Kiwi API reference, and it rocks.

Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 3361 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] Source documentation tool

2004-10-12 Thread Lucas Di Pentima
Hello PyGTK hackers!
I'm developing an application[1] for GNOME that uses Python as its 
embedded plugin language, and pygtk as a support to allow plugin writers 
to integrate their plugins to the rest of the app's UI.

I've had written several GObjects in C and wrapped them to Python using 
your tools (h2defs, etc), and now I'm in the need to offer the plugin 
writers some API documentation as HTML or other mean.

For C API I use Doxygen, it works very good, but for the Python API I 
don't know what to use, it should be some automatic tool like Doxygen, 
so that's why I'm writing this message, to ask you if you use a tool 
like Doxygen to generate the API docs on pygtk.

Thanks in advance!
--
Lucas Di Pentima - Santa Fe, Argentina - Jabber ID: [EMAIL PROTECTED]
LUNIX: Soluciones en GNU/Linux - http://www.lunix.com.ar
GnuPG Public Key:
http://random.sks.keyserver.penguin.de:11371/pks/lookup?op=get&search=0x6AA54FC9
Key fingerprint = BD3B 08C4 661A 8C3B 1855  740C 8F98 3FCF 6AA5 4FC9
___
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] periodically perform an action

2004-10-12 Thread Jonathan Brandmeyer
On Tue, 2004-10-12 at 14:16, Martijn Brouwer wrote:
> Hi,
> I would like to have my pygtk program call a function once every xx
> seconds. My purpose is to update some information, say, every 30
> seconds. In an plain python program I would call sleep(xx) between the
> function calls. Since I am new to programming in event driven
> interfaces, I do not know to do this in a gtk interface.
> I guess, the gtk.mainloop has to take care for calling my function. How
> do I achieve this.

See gtk.timeout_add().

HTH,
-Jonathan Brandmeyer

___
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] The Great Master Plan for Python Bindings

2004-10-12 Thread Gustavo J. A. M. Carneiro
  Dear pygtk hackers, with special emphasis on the pygtk/gnome-python
development team, we need to devise a plan to restructure the next cycle
of the python bindings of libraries based on the glib/gtk stack.

  First of all, we have the problem of gnome-python being proposed for
inclusion in the gnome bindings.  Since it contains bindings[1] for
libraries that do not belong to the GNOME Developer Platform, they
should be split out of gnome-python.  I am personally in favour of this
approach.

  In any case, some people think it is time for a deeper reorganization
of the packaging system.  One possibility is to split everything up as
much as possible, i.e., one-to-one mapping between python modules and
packages (tarballs).  As it is, I strongly oppose this approach, as it
makes the python bindings much harder to build.

  But there is one variant that looks especially interesting.  There is
an autoconf macro AC_CONFIG_SUBDIRS which should allow us to create a
"meta package" gnome-python which includes many subpackages, pygnome-
vfs, pygconf, pygnome-canvas, etc.  This way, we could have the best of
both worlds: the convenience of a single package to install everything,
and the flexibility of just getting the package for the library you
want.

  Unfortunately, the above approach still means a lot of duplicated
effort to maintain many packages instead of just one.  Also, I think it
will require a small bit of API breakage for gnome-python apps.

  Any opinions on this?

[1] gtkhtml2, gnome.applet, nautilus, gnomeprint, gnomeprint.ui
-- 
Gustavo J. A. M. 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] periodically perform an action

2004-10-12 Thread Christian Robottom Reis
On Tue, Oct 12, 2004 at 08:16:53PM +0200, Martijn Brouwer wrote:
> I would like to have my pygtk program call a function once every xx
> seconds. My purpose is to update some information, say, every 30
> seconds. In an plain python program I would call sleep(xx) between the
> function calls. Since I am new to programming in event driven
> interfaces, I do not know to do this in a gtk interface.
> I guess, the gtk.mainloop has to take care for calling my function. How
> do I achieve this.

Read the FAQ:

http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq20.007.htp

I should rewrite the title or add a new FAQ for your specific question,
though.

Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 3361 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/


Re: [pygtk] periodically perform an action

2004-10-12 Thread Erik Grinaker
Martijn Brouwer wrote:
I would like to have my pygtk program call a function once every xx
seconds. My purpose is to update some information, say, every 30
seconds. In an plain python program I would call sleep(xx) between the
function calls. Since I am new to programming in event driven
interfaces, I do not know to do this in a gtk interface.
I guess, the gtk.mainloop has to take care for calling my function. How
do I achieve this.
You can set a function to be called at regular intervals with 
gobject.timeout_add()

http://www.pygtk.org/pygtk2reference/gobject-functions.html#function-gobject--timeout-add
Make sure your callback (the function to be called) returns TRUE, 
otherwise it will be removed from the timeout list.

___
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] periodically perform an action

2004-10-12 Thread Martijn Brouwer
Hi,
I would like to have my pygtk program call a function once every xx
seconds. My purpose is to update some information, say, every 30
seconds. In an plain python program I would call sleep(xx) between the
function calls. Since I am new to programming in event driven
interfaces, I do not know to do this in a gtk interface.
I guess, the gtk.mainloop has to take care for calling my function. How
do I achieve this.

Bye,

Martijn Brouwer



___
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] FileChooserDialog on Win32

2004-10-12 Thread Chris Lambacher
Hi,

I am having a problem with FileChooserDialogs in win32.  I am using
the win32 aio installer which worked as expected with version
2.4-rc17, but other versions do not work.  The action area does not
seem to be generating events so clicking on the open or cancel buttons
do not work.  I am using libglade and have not tried it without
libglade yet to see if the problem is isolated to libglade, though I
suspect it is since the glade tool does not have a problem with its
file chooser and it should be using the same libraries.  Did something
change that I need to take into account?  It supprises me that I could
possibly be the only person using a FileChooserDialog with libglade in
PyGTK on win32.

Thanks in advance for the help,
Chris

-- 
Christopher Lambacher
[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] Using pygtk.'s cut and paste

2004-10-12 Thread Toshio
I've started trying to add cut and paste to my application but I'm
running into problems.  Can anyone help explain how it works?  It looks
like Ctrl-C, Ctrl-X, and Ctrl-V automatically Copy, Cut, and Paste in my
tests involving an entry box and a label.  This is pretty much what (I
think) I want.

In my real app, though, I have a menu bar with Gnome stock items for
Cut, Copy, and Paste.  The accelerators there seem to be interfering
with this default behaviour.  I can remove the Gnome stock items in
glade and replace with equivalents that don't have accelerators but this
leads to two other problems:

1) Cosmetic: The menu items then do not show the accelerators (provided
through the default behaviour) for Cut, Copy, and Paste.

2) This doesn't solve the case when the user uses the menus to activate
Cut, copy, paste.

I think what I need is to know how to activate the default actions (or
the equivalent) from the menu's cut/copy/paste signal handlers.

-Toshio
-- 
___SUBLIME___
  t  o  s  h  i  o  +  t  i  k  i  -  l  o  u  n  g  e  .  c  o  m
  GA->ME 1999


signature.asc
Description: This is a digitally signed message part
___
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] gnome_authentication_manager_init

2004-10-12 Thread Erik Grinaker
On Tue, 2004-10-12 at 09:39 +0200, Murray Cumming wrote:
> >   No, because no one warned me this API was missing.  Now, as
> > punishment, you have to wait 6 months for gnome-python 2.10 ;-)
> 
> Let's not scare people too much. Although you have to wait 6 months for a
> stable version of gnome-python that has this, you can have it much sooner
> in an unstable test version, or from cvs, particularly if you submit a
> patch.

Well, that wouldn't really be of much help, as the app is distributed
under the GPL - ie it gets quite a few users, most of which won't have
the development version installed.


-- 
Erik Grinaker <[EMAIL PROTECTED]>

"We act as though comfort and luxury were the chief requirements of
life, when all that we need to make us happy is something to be
enthusiastic about."
  -- Albert Einstein

___
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] gnome_authentication_manager_init

2004-10-12 Thread Erik Grinaker
On Mon, 2004-10-11 at 22:27 +0100, Gustavo J. A. M. Carneiro wrote:
> Seg, 2004-10-11 às 21:49 +0200, Erik Grinaker escreveu:
> > Hi all
> > 
> > I'm rewriting file handling in my app to use gnome-vfs, and I would like
> > gnome-vfs to use the new authentication dialogs that were introduced in
> > gnome 2.6.
> > 
> > In C, as I understand it, you only need to call
> > gnome_authentication_manager_init() from libgnomeui, and this would Just
> > Work. But I can't seem to find this in pygnome at all.
> > 
> > Is this wrapped by pygnome, and if not, why?
> 
>   No, because no one warned me this API was missing.  Now, as
> punishment, you have to wait 6 months for gnome-python 2.10 ;-)

Hehe, sorry about that :) I knew I should have started this port
earlier. Oh well, not the end of the world.


> You could also wrap it in a small custom python C module for the time
> being..

Yeah, that would work. That way I could get my feet wet with this
wrapping business too. I'll give it a shot.


-- 
Erik Grinaker <[EMAIL PROTECTED]>

"We act as though comfort and luxury were the chief requirements of
life, when all that we need to make us happy is something to be
enthusiastic about."
  -- Albert Einstein

___
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] gnome_authentication_manager_init

2004-10-12 Thread Murray Cumming
>   No, because no one warned me this API was missing.  Now, as
> punishment, you have to wait 6 months for gnome-python 2.10 ;-)

Let's not scare people too much. Although you have to wait 6 months for a
stable version of gnome-python that has this, you can have it much sooner
in an unstable test version, or from cvs, particularly if you submit a
patch.

> You could also wrap it in a small custom python C module for the time
> being..
>
> Mental note: need to run h2defs through libgnome* headers and merge in
> any API additions in development branch of gnome-python.

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