Re: [pygtk] pygi - gtk drawingarea doesn't work?

2012-07-13 Thread David Ripton
box, and my Lubuntu 11.10 box. 'draw' should get called when the window is first exposed, and again any time the window is damaged. You have python-gobject installed, right? -- David Riptondrip...@ripton.net ___ pygtk mailing list pygtk@daa.com.au

Re: [pygtk] pygtk@daa.com.au

2012-06-19 Thread David Ripton
an EventBox. -- David Riptondrip...@ripton.net ___ 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] [jeenuv.otherinbox.com] Re: Drawing and signals

2010-06-10 Thread David Ripton
docs for Cairo. Follow the Python tutorials to learn the basics, and then learn how to translate the C API docs to Python. It's annoying to have to do that, but not really difficult. If you're unhappy with that situation then please contribute some PyCairo docs. -- David Riptondrip

Re: [pygtk] [jeenuv.otherinbox.com] Re: [jeenuv.otherinbox.com] Re: Drawing and signals

2010-06-10 Thread David Ripton
On 2010.06.10 22:44:40 +0530, Jeenu V wrote: On Thu, Jun 10, 2010 at 8:23 PM, David Ripton drip...@ripton.net wrote: Yes, of course you can just use PyCairo rather than a canvas.  It's just more work that way.  I ended up having to go this route at work because we're stuck on RHEL 5 which

Re: [pygtk] OSX support for end users?

2010-06-01 Thread David Ripton
for most users to install multiple dependencies. You need to bundle everything together for them using something like py2app. -- David Riptondrip...@ripton.net ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk

Re: [pygtk] pygtk.glade import problem

2010-04-30 Thread David Ripton
pygtk.glade does not seem to work: I get this error message: No module named glade. The canonical incantation is: import pygtk pygtk.require(2.0) import gtk import gtk.glade -- David Riptondrip...@ripton.net ___ pygtk mailing list pygtk

Re: [pygtk] Drawing on a gdk.Pixbuf using Cairo.

2010-03-02 Thread David Ripton
Pixbuf.get_pixels_array(). It does avoid depending on NumPy. There might be useful information about this in the version control logs or bug tracker, if you're willing to dig for it. -- David Riptondrip...@ripton.net ___ pygtk mailing list pygtk

Re: [pygtk] Saving and reading images from database

2009-11-13 Thread David Ripton
related to this on the net, maybe someone reading this has done this before? Have you already tried gtk.gdk.PixbufLoader? Of course, if all else fails, you can always write the blob out to a tempfile and then use gtk.gdk.pixbuf_new_from_file on the tempfile. -- David Riptondrip

Re: [pygtk] Pixmap save/load

2009-10-08 Thread David Ripton
load the program? http://www.pygtk.org/docs/pygtk/class-gdkpixbuf.html#function-gdk--pixbuf-new-from-file -- David Riptondrip...@ripton.net ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ

Re: [pygtk] PyGTK + Cairo + PNG file in the background

2009-09-11 Thread David Ripton
on. A context holds the cairo-specific state related to drawing on a single surface. Here are a couple of lines to get you started: surface = cairo.ImageSurface.create_from_png(path) ctx = cairo.Context(surface) -- David Riptondrip...@ripton.net ___ pygtk

Re: [pygtk] Takes two Ctl-C to kill?

2009-07-15 Thread David Ripton
the part of the program's run when two threads are active. When only one thread is active, it exits with a single ctrl-C. CentOS 5.3, PyGTK 2.10.4 -- David Riptondrip...@ripton.net ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au

Re: [pygtk] Socket listening

2009-05-07 Thread David Ripton
for networking and scheduling and PyGTK's APIs for the GUI and it all works. But of course that may be a much bigger change than you want. -- David Riptondrip...@ripton.net ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman

Re: [pygtk] ImportError: DLL load failed

2009-02-23 Thread David Ripton
less when upgrading the compiler is free) -- David Riptondrip...@ripton.net ___ 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] Help/Advice iwth install/setup issue?

2009-02-05 Thread David Ripton
independent. You have to install everything again for 2.5. But if you don't actually need features or bugfixes from the newer version of a Python library, it's easier to use the same old version that CentOS uses, because you know all its C library prerequisities are already installed. -- David Ripton

Re: [pygtk] Layout of complex app

2009-01-28 Thread David Ripton
enough that one directory gets unwieldy, then I move files into subdirectories. When it's ready to deliver to endusers, then I make an installer and do proper packages. IMO it's easier that way, and modern version control systems don't punish moving files around like CVS did. -- David Riptondrip

Re: [pygtk] cairo speed

2008-12-03 Thread David Ripton
plateform. Do you think cairo will be better here? Yes. I just tested it, and Cairo was significantly faster on my box. (About 0.03s vs. 0.13s on average. YMMV.) My test program is here: http://ripton.net/blog/?p=32 -- David Ripton[EMAIL PROTECTED

Re: [pygtk] Threads sync

2008-11-22 Thread David Ripton
the appropriate queue and takes the appropriate action if it finds something there. -- David Ripton[EMAIL PROTECTED] ___ 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] gtk.Image write text inside Image

2008-11-07 Thread David Ripton
it into a pixbuf. PyGTK gets better every release, and its docs have improved too, so maybe it's no longer necessary to resort to PIL. But it's an option to consider. -- David Ripton[EMAIL PROTECTED] ___ pygtk mailing list pygtk@daa.com.au http

Re: [pygtk] python 2.6 compatibility

2008-10-20 Thread David Ripton
conclusively claim that there are no compatibility bugs to stomp, but I've been looking for problems and haven't seen any. 2.6 seems very compatible with 2.5. The main difference I've seen is lots of warnings from code that uses newly deprecated modules, in particular md5 and sha. -- David Ripton

Re: [pygtk] Checking version of PyGTK from withing Python

2008-05-19 Thread David Ripton
) if ver in x] ['check_version', 'gtk_version', 'pygtk_version', 'ver'] gtk.gtk_version (2, 10, 4) gtk.pygtk_version (2, 10, 1) gtk.ver (2, 12, 1) -- David Ripton[EMAIL PROTECTED] ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au

Re: [pygtk] Checking version of PyGTK from withing Python

2008-05-19 Thread David Ripton
On 2008.05.19 14:04:25 -0700, Mitko Haralanov wrote: On Mon, 19 May 2008 13:20:23 -0700 David Ripton [EMAIL PROTECTED] wrote: $ python [...] ['check_version', 'gtk_version', 'pygtk_version', 'ver'] [...] (2, 10, 4) [...] (2, 10, 1) [...] (2, 12, 1) I am sorry

Re: [pygtk] subclassing gtk.Bin

2005-11-10 Thread David Ripton
On 2005.11.10 18:57:42 -0500, spike grobstein wrote: actually,I thought I had pygtk 2.8, but apparently I only have 2.6.1... gentoo hasn't upgraded the pygtk package to 2.8 yet. I'm gonna have to do it manually, I guess. Gentoo has pygtk 2.8.2, in ~x86. -- David Ripton[EMAIL

Re: [pygtk] calling a program from a program

2005-11-09 Thread David Ripton
). Another option would be creating a second thread in the main program and spawning the child program from it, so the main thread can keep processing events. -- David Ripton[EMAIL PROTECTED] ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au

Re: [pygtk] trying to launch a pygame app from within my gtk app

2005-11-09 Thread David Ripton
with a full path, if your Python directory is not in the PATH.) -- David Ripton[EMAIL PROTECTED] ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Re: [pygtk] Threading on win32

2005-04-19 Thread David Ripton
that the version of the socket module included in Python 2.3+ includes the ability to use timeouts on both http (like timeoutsocket) and https (unlike timeoutsocket) connections. So, unless you're stuck on Python 2.2, there's no real need for timeoutsocket anymore. -- David Ripton[EMAIL PROTECTED

Re: [pygtk] List replies go to OP

2004-03-12 Thread David Ripton
-to-harmful.html -- David Ripton[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/