Have you checked the following pages?
PyGTK FAQ:
http://www.async.com.br/faq/pygtk/index.py?req=index
(Relevant section: 20)
PyGTK reference:
http://www.pygtk.org/pygtk2reference/gdk-functions.html#function-gdk--threads-init
http://www.pygtk.org/pygtk2reference/gdk-functions.html#function-gdk--t
Hi,
I'm trying to use anything to avoid using gtk.main() as a main loop. The
reson is, when I start a new thread inside the gtk.main() loop, it seems not
to work at all. So I use this construct:
while 1:
while gtk.events_pending():
ret = gtk.main_iteration(block=False)
Bah.. Sorry for posting the same thing twice. There was a server hiccup
today, and I just assumed that my message had been lost.
Jody
On Sun, 05 Jun 2005 21:06:25 -0400, Jody Steele <[EMAIL PROTECTED]> wrote:
Simple question: Why? Every function cal that makes use of those pixels
expects in
Simple question: Why? Every function cal that makes use of those pixels
expects ints, and for that matter what would 0.2 of a pixel be (random
floating point number taken... i didn't actually get 0.2 as a return)
It's not a problem I'm having, I'm just really curious about this..
Jody Steel
One way to do it, maybe not the "correct" way, would to be create a
temporary file that contains the contents of the file you retrieved from
the URL, and then load that into the gtk.Image.
You probably want to look into the tempfile module.
Hope this helps.
Jody Steele
On Sun, 05 Jun 2005 15
Simple question: Why? Every function cal that makes use of those pixels
expects ints, and for that matter what would 0.2 of a pixel be (random
floating point number taken... i didn't actually get 0.2 as a return)
It's not a problem I'm having, I'm just really curious about this..
Jody Steele
P
Hi Guys .. need some help. My task is to fetch image from a url and
then display using gtk image.
I'm fetching image like
import urlib
f=urllib.urlopen("http://someserver.x.jpg";)
f.read() gives me a raw string. Now how do i display this using gtk image??
TIA
___
On Sun, 05 Jun 2005 05:42:57 -0400
"Jody Steele" <[EMAIL PROTECTED]> wrote:
> Assuming your ListStore is called list, I think a simple
> list.set_sort_column_id(,gtk.SORT_DESCENDING)
> after adding all the data to the model is all you need to do.
Thanks, it seems to work. Now I'm testing this
However, whenever we have multiple things selected (for example by hold
ctrl down and left clicking) and then right click, our selection
disappears to be replaced by only the row we are currently clicking on.
return True in the button-press-event, that will stop others from
receiving the click (
Hi,
Am Sonntag, den 05.06.2005, 03:48 -0400 schrieb Jody Steele:
> Hello again. ^^
>
> I swear eventually I'll know enough to answer questions intstead of just
> leeching answers myself. ;)
>
> So heres the situation this time. We have a TreeView, which has multiple
> selection enabled, and
On Sun, 05 Jun 2005 04:39:30 -0400, Nemesis <[EMAIL PROTECTED]> wrote:
Hi all,
I'm using a TreeView to show threaded news articles. I use 4 columns
"Subject", "From", "Date", "Score". The threaded model is built ordering
articles by date, so at the end I get a model ordered by the date of the
fi
Hi all,
I'm using a TreeView to show threaded news articles. I use 4 columns
"Subject", "From", "Date", "Score". The threaded model is built ordering
articles by date, so at the end I get a model ordered by the date of the
first article of each thread. I use the set_sort_column_id on these
column
Hello again. ^^
I swear eventually I'll know enough to answer questions intstead of just
leeching answers myself. ;)
So heres the situation this time. We have a TreeView, which has multiple
selection enabled, and a handler setup for button-press-event, which is
only concerned about right
13 matches
Mail list logo