; 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.
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
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
(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]>
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.
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
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
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
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:/
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
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]>
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.
_
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
.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.
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
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
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
17 matches
Mail list logo