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
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/
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
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
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
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
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
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
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
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
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
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
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/
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
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
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
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/
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
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
) 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
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
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
). 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
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/
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
-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/
26 matches
Mail list logo