Thread
:
Python: Why doesn't this work?
View Single Post
BrentDC
2009-05-20 , 19:37
Posts: 903 | Thanked: 632 times | Joined on Apr 2008
#
9
Thanks for all the replies! I followed everyones advice -- no seriously, I used Attila's run() function, daperl's gtk.gdk.threads_init() code, and daniel's threading and mainloop tips -- and now it actually works.
The only problem now, is I'm getting the strangest xlib crashes occasionally, I think my threading is "not quite right". I'll look into it.
A round of Thanks in me!
Edit: I (think) I fixed the crashing by wrapping all gtk calls in my clipboard class with gtk.gdk.threads_enter() and *_leave().
__________________
-Brent
Author of
TouchSearch
-- web searching software for Maemo 5.
Mobile Device lineage:
Palm Z22
->
Palm TX
->
Nokia N800
->
Nokia N900
Last edited by BrentDC; 2009-05-20 at
19:53
.
Quote & Reply
|
BrentDC
View Public Profile
Send a private message to BrentDC
Find all posts by BrentDC