[pygtk] Consuming events from an idle_add() call

2005-01-17 Thread Greg Ward
; loop in some other way so that it will work from idle_add()'ed code? Thanks -- Greg -- Greg Ward <[EMAIL PROTECTED]> http://www.gerg.ca/ This email message may have come into contact with peanuts.

Re: [pygtk] Stability of threading support?

2003-04-06 Thread Greg Ward
LOW_THREADS and Py_END_ALLOW_THREADS. Added those two lines of code and now everything works perfectly. I know how Python works, really, I do ... ;-> Thanks Thomas! Greg -- Greg Ward <[EMAIL PROTECTED]> http://www.gerg.ca/ MTV -- get off the air! -- Dead

Re: [pygtk] Stability of threading support?

2003-04-05 Thread Greg Ward
gtk.idle_add(self.eject_done) def eject_done (self): print "eject_done(): thread %r updating widgets" % get_thread_id() self.eject_button.set_sensitive(True) self.statusbar.pop(self.statusbar.get_context_id("")) Thanks! Greg -- Greg Ward

[pygtk] Stability of threading support?

2003-04-04 Thread Greg Ward
(I'm running Debian unstable with libgtk 2.2.1-3 and pygtk 1.99.16-1.) If so, can anyone tell me how to do it right, ie. how to write a background thread that manipulates the GUI? Thanks -- Greg -- Greg Ward <[EMAIL PROTECTED]>

Re: [pygtk] PyGTK & python versions

2003-03-24 Thread Greg Ward
very big bother to write code that works with both versions. pygtk's namespace has changed completely with 1.99.x. Greg -- Greg Ward <[EMAIL PROTECTED]> http://www.gerg.ca/ And now for something completely different.

Re: [pygtk] Should PyGtk be proposed for the Python 2.4 release?

2003-03-24 Thread Greg Ward
m by no means an expert here, just a competent hacker dipping his toes in the GUI pool for the first time in many years. (Last time I did this was with Perl/Tk 6-7 years ago.) Greg -- Greg Ward <[EMAIL PROTECTED]> http://www.gerg.ca/ I&#

Re: [pygtk] Updating the Display

2003-03-24 Thread Greg Ward
On 22 March 2003, Jesse Pavel said: > while gtk.events_pending(): > gtk.main_iteration() > > immediately after the dialog.show(), but that isn't > working. Wild-ass, ill-informed guess: would dialog.show_all() work any better? Greg -- Greg Wa

[pygtk] gtk_tree_selection_get_selected_rows()?

2003-03-21 Thread Greg Ward
ard. Is this a deliberate omission, a known oversight, or a minor detail that got left out by mistake? Greg -- Greg Ward <[EMAIL PROTECTED]> http://www.gerg.ca/ Vote Cthulhu -- why settle for a lesser evil? ___ pygtk

Re: [pygtk] Mishandled exception

2003-03-21 Thread Greg Ward
x27;m doing so now. I presume this: http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-python is the right place to do it? If so, a link from the pygtk home page might be a good idea... Greg -- Greg Ward <[EMAIL PROTECTED]> http:/

[pygtk] Mishandled exception

2003-03-21 Thread Greg Ward
t; asdf TypeError: could not get typecode from object I'm pretty sure this is just a case of some wrapper code forgetting to return NULL to its caller when an exception has been set. Oh yeah, this is GTK+ 2.2.1 and pygtk 1.99.15. James, is that enough info to track down the b

Re: [pygtk] Changing a SpinButton's maximum value

2003-03-21 Thread Greg Ward
eny-tiny itsy-bitsy little glitch: adjustment.upper = 5 barfs with TypeError: upper must be a double which is just the sort of annoying C-level detail that Python programmers don't normally have to deal with. Thanks for the help! Greg -- Greg Ward <[EMAIL PROTECTED]>

Re: [pygtk] Changing a SpinButton's maximum value

2003-03-20 Thread Greg Ward
blem anywhere, or of any standalone conversion utilities. I've asked for help on the glade-users list, but if anyone here has a tip, I'm all ears. Greg -- Greg Ward <[EMAIL PROTECTED]> http://www.gerg.ca/ Save energy: be apathetic. _

Re: [pygtk] Changing a SpinButton's maximum value

2003-03-20 Thread Greg Ward
that in a million years... Greg -- Greg Ward <[EMAIL PROTECTED]> http://www.gerg.ca/ Budget's in the red? Let's tax religion! -- Dead Kennedys ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa

[pygtk] Changing a SpinButton's maximum value

2003-03-20 Thread Greg Ward
.changed(), sb.set_adjustment(), sb.update(), etc. that make it work as expected. Am I missing some obvious wrinkly of GtkSpinButton and GtkAdjustment? (Oh yeah, I'm using GTK+ 1.2 and pygtk 0.6.11, mainly because I failed to notice the 'python2.2-gtk2' package in Debian unstable.

Re: [pygtk] Grabbing keyboard focus

2002-01-29 Thread Greg Ward
on it. Ahh, so grab_focus() just controls the GTK focus? That explains why it has no effect for me -- I'm interested in the X/GDK focus. Greg -- Greg Ward - programmer-at-large [EMAIL PROTECTED] http://starship.python.net

Re: [pygtk] Cannot import _gtk

2002-01-21 Thread Greg Ward
gdb to track down the source of the coredump. Fun fun fun. > This is on Solaris 7, python 2.1 installed, pygtk 0.6.8 installed in You should probably upgrade to Python 2.1.2; it fixes several bugs in Python 2.1. Good luck -- Greg -- Greg Ward - p

[pygtk] Grabbing keyboard focus

2002-01-21 Thread Greg Ward
ntil I ungrab. I don't really want this right now, but if I did, how would I access it with pygtk? From reading gtkmodule.c, it *looks* as though it's implemented as a method of GdkWindow -- but I don't have a GdkWindow, I have a GtkWindow! How do I get a GdkWindow from a GtkW