Re: [pygtk] values not being refreshed in an event handler

2005-04-13 Thread Christian Reis
On Wed, Mar 30, 2005 at 10:49:45AM -0500, Saurabh Wagh wrote: A very strange problem. I am designing an application to display the contents of a three dimensional data structure.( residing on server side ) [...] But When i click on any object ( say man, present on line 3 of buffer, ) not

Re: [pygtk] where is the control transfered ?

2005-04-13 Thread Christian Reis
On Sun, Apr 03, 2005 at 10:33:22PM +0200, Leeuw van der, Tim wrote: try: # call server except: # Do exception handling Except you don't want to do except: ... ever, but except FooError: ... Always trap specific exceptions, or you will not pass GO

Re: [pygtk] Callbacks for Click on label(Plz help with the signal name)

2005-03-24 Thread Christian Reis
On Wed, Mar 23, 2005 at 03:36:29PM -0800, Nalli Dinesh wrote: I am sure as of now, I don't want to use buttons with respect to labels, for one advantage that label provides over button, which is allowing pango markup language usable with the label names. You cannot use pango markup langauge

Re: [pygtk] Avoiding signal emission on changes from the backend

2005-03-24 Thread Christian Reis
On Thu, Mar 24, 2005 at 09:44:02AM -0500, Chetan Dandekar wrote: Let me describe this issue with an example. I have a gtk.SpinButton and a signal handler function 'on_value_changed' which is triggered by the signal 'value_changed'. I want this handler to be invoked if a user changes the

Re: [pygtk] gtk.Notebook

2005-03-23 Thread Christian Reis
On Tue, Mar 22, 2005 at 07:16:03PM +0200, Paul Malherbe wrote: It is a financial program. The basics are as follows: Page 1 The operator enters the details of e.g. a payment i.e. date, reference number amount, description etc. Page 2 The operator allocates the amount to one or more

Re: [pygtk] dialogs

2005-03-22 Thread Christian Reis
On Tue, Mar 22, 2005 at 05:55:23PM +, Keir Lawson wrote: I have set up a MessageDialog to display an error message, and want my app to quit when its close button is pressed. i use this code: resp = self.dialog.run() if resp == gtk.RESPONSE_CLOSE: gtk.main_quit() sys.exit()

Re: [pygtk] Verifying Entry inputs

2005-03-14 Thread Christian Reis
On Sat, Mar 12, 2005 at 03:32:28AM +0100, Jakub Piotr C?apa wrote: Correction: we're sorting out anonymous access to the repository. SVN isn't the piece of cake to serve that I would have hoped, but we're getting to it. We'll notify the list when it's ready. Why don't you serve SVN through

Re: [pygtk] Verifying Entry inputs

2005-03-11 Thread Christian Reis
On Sat, Feb 26, 2005 at 01:13:49PM +, John Gill wrote: Can you point me at the Kiwi2 code, I hadn't realised work had started on Kiwi2? Lorenzo has an SVN repository set up here at Async; Lorenzo, care to send the address to the list? Take care, -- Christian Robottom Reis |

Re: [pygtk] Why gtk.TRUE deprecated ?

2005-03-11 Thread Christian Reis
On Sun, Mar 06, 2005 at 02:29:38PM -0300, Johan Dahlin wrote: Is there any chance to deprecate gobject.TYPE_STRING, gobject.TYPE_INT etc. in near by future ? Unlikely. Preferably you should use str, int, long etc instead of the gobject type defs. However, the data types in gobject are

Re: [pygtk] Verifying Entry inputs

2005-03-11 Thread Christian Reis
On Sun, Feb 27, 2005 at 11:52:41PM +, Gustavo J. A. M. Carneiro wrote: On Sat, 2005-02-26 at 08:43 -0300, Christian Reis wrote: On Fri, Feb 25, 2005 at 11:08:00AM +, Gustavo J. A. M. Carneiro wrote: My solution, although also not perfect, was to place a small

Re: [pygtk] Verifying Entry inputs

2005-02-26 Thread Christian Reis
On Fri, Feb 25, 2005 at 09:11:56AM +0100, Hans-Joachim Widmaier wrote: I'd like to have Entry widgets that allow only numbers (float) as inputs, and only in a certain range. This verification should be done as soon as the user is done with editing. I tried the focus-out-event, but pygtk

Re: [pygtk] Verifying Entry inputs

2005-02-26 Thread Christian Reis
On Fri, Feb 25, 2005 at 11:08:00AM +, Gustavo J. A. M. Carneiro wrote: My solution, although also not perfect, was to place a small gtk.STOCK_DIALOG_WARNING icon inside the entry, and toggle between making it insensitive (=value OK) or sensitive (=bad value). Interesting! Can we see some

Re: [pygtk] Verifying Entry inputs

2005-02-26 Thread Christian Reis
On Fri, Feb 25, 2005 at 01:24:23PM +, Gustavo J. A. M. Carneiro wrote: It would be great having a repository for this pygtk friendly widgets if they are general enough... I was hoping kiwi2 could be such repository... ;-) It will be -- we're still crawling towards where we want to be,

Re: [pygtk] please help with setting accelerator for the menu item

2003-10-06 Thread Christian Reis
, and since GtkMenu *does* provide an API to get to its accel_group, I'm as to why get_accel_group() is returning None. It may very well be a bug. Take care, -- Christian Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331 ___ pygtk mailing list [EMAIL

Re: [pygtk] please help with setting accelerator for the menu item

2003-10-06 Thread Christian Reis
On Mon, Oct 06, 2003 at 03:03:42PM -0500, Alex Roitman wrote: On Mon, Oct 06, 2003 at 03:28:51PM -0300, Christian Reis wrote: Hmmm. You should save a reference to your AccelGroup, but I'm curious as to what happens when you set pass in group to add_accelerator(). I apologize, but I'm

Re: [pygtk] scrolling drawing area

2003-10-03 Thread Christian Reis
. Take care, -- Christian Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331 ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Re: [pygtk] delete selection

2003-10-03 Thread Christian Reis
it :-) Take care, -- Christian Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331 ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Re: [pygtk] TreeView column expanding

2003-09-30 Thread Christian Reis
].set_property ('editable', 1) Can you do something like set_child_packing() to change the packing of a renderer that was already packed? That would avoid needing the separate pack_start() call, if it exists/existed. Take care, -- Christian Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331

Re: [pygtk] check button callbacks

2003-09-29 Thread Christian Reis
care, -- Christian Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331 ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Re: [pygtk] check button callbacks

2003-09-29 Thread Christian Reis
On Mon, Sep 29, 2003 at 03:42:28PM +0200, liquid wrote: can you explain to me how I can make 'a' a class variable? Use self.a (and read the Python tutorial! :-) Take care, -- Christian Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331 ___ pygtk

Re: [pygtk] DateEdit Problem

2003-09-29 Thread Christian Reis
=faq23.014.htp Take care, -- Christian Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331 ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Re: [pygtk] problems with TreeView...

2003-09-29 Thread Christian Reis
On Sun, Sep 28, 2003 at 11:38:46AM +0100, Gustavo J A M Carneiro wrote: When you create the list store, use gobject.TYPE_STRING instead of gobject.TYPE_CHAR. - FAQ 13.36 (wow, 36 entries) http://www.async.com.br/faq/pygtk/index.py?req=showfile=faq13.036.htp Take care, -- Christian Reis

Re: [pygtk] Question about idle_add() and refreshing some widget..

2003-09-29 Thread Christian Reis
. And I'm not the best person to advise you on drawing, since I've only played with GtkDrawingArea once, and it wasn't a pretty sight :-) Take care, -- Christian Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331 ___ pygtk mailing list [EMAIL PROTECTED

Re: [pygtk] Re: right clicking on a GtkTreeStore row

2003-09-29 Thread Christian Reis
On Thu, Sep 25, 2003 at 10:57:23AM +0100, Stephen Kennedy wrote: path, col, cellx, celly = treeview.get_path_at_pos( int(event.x), int(event.y) ) Question: Aren't event.x and event.y always integers? Take care, -- Christian Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331

[pygtk] Moved FAQ 13 entries, was Re: PyGTK FAQ

2003-09-29 Thread Christian Reis
distribution, but it has to be run with direct access to the files. I've used it to do the aforementioned split, for the record. Take care, -- Christian Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331 ___ pygtk mailing list [EMAIL PROTECTED] http

[pygtk] Re: problems with TreeView...

2003-09-29 Thread Christian Reis
On Mon, Sep 29, 2003 at 05:45:11PM +0200, Abel Daniel wrote: Christian Reis writes: - FAQ 13.36 (wow, 36 entries) http://www.async.com.br/faq/pygtk/index.py?req=showfile=faq13.036.htp Strange, I only see 21 in that category. Read my message about the FAQ updates :-) It's now FAQ 13.16

Re: [pygtk] Question about idle_add() and refreshing some widget..

2003-09-28 Thread Christian Reis
significantly? Have you tried profiling your application to see what's costly? Take care, -- Christian Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331 ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK

Re: [pygtk] Tooltips.

2003-09-26 Thread Christian Reis
care, -- Christian Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331 ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Re: [pygtk] Connecting Spinner Widget to Variable?

2003-09-26 Thread Christian Reis
, is there any equivalent in (py)GTK 2.x? Really? Do you have a reference for code that does this? I'm curious to see what the semantics are. Take care, -- Christian Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331 ___ pygtk mailing list [EMAIL PROTECTED] http

Re: [pygtk] libglade.XML.signal_autoconnect() problems

2003-09-26 Thread Christian Reis
, -- Christian Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331 ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Re: [pygtk] Making my own widget in Pygthon - Some more info

2003-09-26 Thread Christian Reis
that subclassing will work at all with 0.6, and some 1.99.x versions had Note that subclassing *does* work fine in 0.6 -- Kiwi uses it all over the place :-) Take care, -- Christian Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331 ___ pygtk mailing list [EMAIL

Re: [pygtk] GnomeDruid: how to go back to the first page after a signal has been emitted

2003-09-21 Thread Christian Reis
() if a 'cancel' or 'finish' has been emitted. Is this the right way to do it? Is there a better way? Have you tried using set_page() to get back to the first page when calling hide()? Take care, -- Christian Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331

Re: [pygtk] PyGTK, Win32 and py2exe: no luck

2003-09-21 Thread Christian Reis
Would it be possible to rewrite/merge both answers into a more complete one? Take care, -- Christian Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331 ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read

Re: [pygtk] gtk.Window.get_position()

2003-09-19 Thread Christian Reis
care, -- Christian Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331 ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Re: [pygtk] gtk.Window.get_position()

2003-09-19 Thread Christian Reis
: get_root_origin() reqires a gdk.Window but I've a gtk.Window, so how can I obtain the gdk.Window from a gtk.Window? That's a FAQ! Take care, -- Christian Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331 ___ pygtk mailing list [EMAIL PROTECTED] http

Re: [pygtk] libglade.XML.signal_autoconnect() problems

2003-09-17 Thread Christian Reis
manually), which connects and stores the IDs. Take care, -- Christian Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331 ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http

Re: [pygtk] getting mime information

2003-09-17 Thread Christian Reis
be submitted as a bug with the severity of enhancement. Sounds like the correct thing to do. Can you check if it hasn't been filed and do so, if not? Thanks! Take care, -- Christian Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331 ___ pygtk mailing list

Re: [pygtk] PyGTK, Win32 and py2exe: no luck

2003-09-11 Thread Christian Reis
-gtk' -- thanks. Take care, -- Christian Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331 ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Re: [pygtk] Install Problems

2003-09-10 Thread Christian Reis
that contain %s. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http

Re: [pygtk] Tutorial or API References ?

2003-09-09 Thread Christian Reis
On Tue, Sep 09, 2003 at 08:13:09AM +0200, Stephane Wirtel wrote: I am newbie in PyGTK, and i try to find docs or tutorials on gnome-python. Thus, where can i find documents or tutorials ? Hint: Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ Take care, -- Christian Reis, Senior

Re: [pygtk] 2 problems: gtk widgets and gnomecanvas group children

2003-09-09 Thread Christian Reis
self.label.set_text('Option: %d' % self.opt) if not self.block_toggle: self.block_toggle = 1 self.check.set_active(self.opt) self.block_toggle = 0 Don't know about gnomecanvas, but I suspect there's a better way. Take care, -- Christian Reis, Senior Engineer, Async

Re: [pygtk] Install Problems

2003-09-09 Thread Christian Reis
or something, perhaps? Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http

Re: [pygtk] 2 problems: gtk widgets and gnomecanvas group children

2003-09-09 Thread Christian Reis
(1) set_active(1) only emits a signal on the first time. Ah, that must be it. :-) Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk mailing list [EMAIL PROTECTED

Re: [pygtk] 2 problems: gtk widgets and gnomecanvas group children

2003-09-09 Thread Christian Reis
with type 'gtk.ToggleButton' Calling set_active... Done. Done. No, set_active() only emits a toggled signal when the state of the button is changed. That's why set_active() isn't followed by another Toggle called... message. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil

Re: [pygtk] TextView / TextBuffer autoscroll to end

2003-09-08 Thread Christian Reis
= gtk_text_buffer_get_mark(textbuf, end-of-buffer); gtk_text_view_scroll_to_mark(GTK_TEXT_VIEW(self-text_view), end_mark, 0, TRUE, 0.0, 1.0); } Scary. - FAQ 14.10 http://www.async.com.br/faq/pygtk/index.py?req=showfile=faq14.010.htp Take care, -- Christian Reis, Senior Engineer

Re: [pygtk] Warnings issued by get_property

2003-09-08 Thread Christian Reis
. the GtkContainer::child property is write-only, which is why you get weird results when trying to read it. The other cases are most likely similar. Would it be possible to raise a proper exception in this case explaining it is write-only? Take care, -- Christian Reis, Senior Engineer, Async

Re: [pygtk] [2.0.0] gtk/gtktreeview.override patch

2003-09-08 Thread Christian Reis
On Thu, Sep 04, 2003 at 01:08:52PM -0500, Albert Chin wrote: C++ comments invalid for C89 code. If you have CVS access, feel free to check this in Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL

Re: [pygtk] Cant get gnome-python bonobo module to work

2003-09-08 Thread Christian Reis
/pipermail/pygtk/2003-March/004618.html Summary: as James has posted before, IF you use Redhat 8, you need an updated RH8 RPM for libbonobo. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL

Re: [pygtk] [patch] GnomeVFS Async Api support

2003-09-06 Thread Christian Reis
of cvsutils: http://www.red-bean.com/cvsutils), or make a copy of the CVS directory and use a normal diff between trees. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL

Re: [pygtk] 'About' strangeness.

2003-09-02 Thread Christian Reis
a good usability practice to have it close the dialog (or any other modal dialog, for that matter). Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk mailing list [EMAIL

Re: [pygtk] 'About' strangeness.

2003-09-02 Thread Christian Reis
, can't we get a stack trace to show why exactly we crash when emit_stop_by_name() isn't called in the response handler? Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk

Re: [pygtk] ANNOUNCE: PyGTK 2.0.0

2003-09-02 Thread Christian Reis
, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Re: [pygtk] CVS branches and plans for the future.

2003-09-02 Thread Christian Reis
On Wed, Sep 03, 2003 at 11:50:41AM +1000, Malcolm Tredinnick wrote: Any comments? My only real request is to continue supporting Python 2.2. I was one of Seconded, for similar reasons as Malcolm's. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br

Re: [pygtk] Runing events outside of window

2003-09-01 Thread Christian Reis
. Unfortuatenly, at the point, time can run out, but the Don't you really want to use timeout_add here? http://www.async.com.br/faq/pygtk/index.py?req=showfile=faq20.007.htp Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL

Re: [pygtk] using pygtk to create plots on a server w/ no DISPLAY

2003-09-01 Thread Christian Reis
is running on the server is there any to draw, for example to a pixmap, and then save the figure as a PNG, and then embed it in the html, w/o X ever launching the window? Have you considered using Xvfb? It's pretty much designed to do what you want. Take care, -- Christian Reis, Senior Engineer, Async

Re: [pygtk] ANN: guis-1.2 a (pygtk based) GTK2 widget server

2003-09-01 Thread Christian Reis
, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Re: [pygtk] TreeView with gtk widgets

2003-08-28 Thread Christian Reis
the widget I want to have displayed? Yes, though people have been discussing the current known way is not exactly kosher. See the thread here: http://www.daa.com.au/pipermail/pygtk/2003-August/005731.html Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http

Re: [pygtk] extra_ivars assersion failure

2003-08-28 Thread Christian Reis
care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br

Re: [pygtk] Refreshing TextViews

2003-08-20 Thread Christian Reis
a blink of the text cursor. I'd like it to be green immediately :) Any way to do this? Have you tried connect_after? insert-text is triggered *before* the text is in the widget. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331

Re: [pygtk] Refreshing TextViews

2003-08-20 Thread Christian Reis
. Funky, eh? It indeed sounds odd. You might consider trying to run a loop: while gtk.events_pending(): gtk.mainiteration() The program is fairly short, so I'm including the python source here. I have updated it to use Christian Reis' suggestion of connect_after(), but the result

Re: [pygtk] Two nasty problems of mine

2003-08-17 Thread Christian Reis
gobject.timeout_add(100, timeout_func, (iter(xrange(1, 100)), label)) Another (simpler) option would be to call gtk.mainiteration() before the time.sleep() -- the FAQ has an entry on this. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55

Re: [pygtk] GTKList

2003-08-17 Thread Christian Reis
widget to do. b) If not, just create GtkListItems and then add them to the GtkList. It's not very complicated. I think the tutorial contains at least a simple entry on the GtkList. See also http://www.daa.com.au/pipermail/pygtk/2000-December/000548.html Take care, -- Christian Reis

Re: [pygtk] Two nasty problems of mine

2003-08-17 Thread Christian Reis
? ;) Hmmm. You might change the selection style, but I'm not sure it would allow you to see through it. The CList is deprecated in PyGTK-2.x, so you might want to consider using TreeView and co. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16

Re: [pygtk] Setting the Window Icon

2003-08-16 Thread Christian Reis
and file formats. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ

Re: [omniORB] Re: [pygtk] Conflicting omniORBpy and PyORBit

2003-08-14 Thread Christian Reis
up so that the next import CORBA loads the PyORBit version automatically. This is a matter of some sys.path hackery, as we do in ZODB -- ugly, perhaps, but a lot more effective than trying to steer people through a maze of sys.path problems. Take care, -- Christian Reis, Senior Engineer

Re: [omniORB] Re: [pygtk] Conflicting omniORBpy and PyORBit

2003-08-14 Thread Christian Reis
on special features of a particular ORB * need to interoperate with other bits of code using a particular ORB (this is the case for gnome programs wishing to manipulate in process Bonobo objects, which is why it can't use omniORB). Take care, -- Christian Reis, Senior Engineer, Async

Re: [pygtk] Gobject properties to PyObject attributes mapping

2003-08-14 Thread Christian Reis
__getattr__ in the if clause but __properties isn't set yet -- recursion Therefor you have to treat the internal properties list attribute in a special manner and that's why I couldn't hide it (__*). Yeah, my bad. Just do it a tiny bit differently: Christian Reis kiko at async.com.br wrote: You

Re: [pygtk] PyGTK+Thread problem (program freezes)

2003-08-14 Thread Christian Reis
but that was where we left the project. We moved to PyGTK with forks and execs and now all is stable after abandoning threads. Sounds good enough. If you have the time, give 1.99.17 (or CVS HEAD, which is even better) a spin and let us know if it worked out. Take care, -- Christian Reis

Re: [pygtk] Treeview Icons

2003-08-14 Thread Christian Reis
and clarifications are welcome. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK

Re: [pygtk] multiple windows?

2003-08-14 Thread Christian Reis
care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br

Re: [pygtk] Treeview Icons

2003-08-14 Thread Christian Reis
) Couldn't you have used a single GtkTreeViewColumn here for the text column? Or does this mean that if you need to add two attributes to the same column in a treeview, that all other columns need to be packed() and add_attribute()-ed? Take care, -- Christian Reis, Senior Engineer, Async Open Source

Re: [pygtk] Cant load an .glade file.

2003-08-14 Thread Christian Reis
, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Re: [pygtk] Access glade's gtk.Tooltips group?

2003-08-14 Thread Christian Reis
care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br

Re: [pygtk] set_style(get_style.copy()) changes behavior?

2003-08-14 Thread Christian Reis
a number of modify_bg calls... It changes the style object attached to the widget -- the copy() clones the original style but returns a *new* style object. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL

Re: [pygtk] Loading and reloading

2003-08-14 Thread Christian Reis
-python. Yeah, feel free to add an item explaining this and the workaround. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk mailing list [EMAIL PROTECTED] http

Re: [pygtk] cooperative threads with generators

2003-08-14 Thread Christian Reis
On Thu, Aug 14, 2003 at 10:40:15AM +0100, Stephen Kennedy wrote: I've seen quite a few posts about threading problems in this group and am surprised to see that nobody recommended cooperative threading using generators. See - FAQ 20.9 Take care, -- Christian Reis, Senior Engineer, Async

Re: [pygtk] Changing the Stock Buttons

2003-08-14 Thread Christian Reis
: gtk.stock_add([(gtk.STOCK_SAVE_AS, Rename, 0, , )]) I've preemptively added this as FAQ 9.6, but anybody is free to correct it if I'm blundering through pygtk2 again. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL

Re: [pygtk] gnome.ui.Client connect shadows signal_connect

2003-08-14 Thread Christian Reis
() inherits from GObject. self.client.connect(save_yourself, self.session_save) Could you please open a Bugzilla report for this on bugzilla.gnome.org? Thanks. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL

Re: [pygtk] delete selection

2003-08-14 Thread Christian Reis
on that point..). It's probably safer to get the model and iter from selection and work using that. If someone knows, I'll update the FAQ with the rationale. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL

Re: [pygtk] libglade and custom widgets

2003-08-14 Thread Christian Reis
take a look at http://www.async.com.br/faq/pygtk/index.py?req=showfile=faq22.007.htp ? Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk mailing list [EMAIL PROTECTED

Re: [pygtk] Loading and reloading

2003-08-11 Thread Christian Reis
there ;) Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http

Re: [pygtk] Gobject properties to PyObject attributes mapping

2003-08-11 Thread Christian Reis
, key): if self.__properties and key in self.__properties: return self.get_property(key) else: return self.__dict__.get(key, None) Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL

Re: [pygtk] libglade and custom widgets

2003-08-10 Thread Christian Reis
://www.daa.com.au/pipermail/pygtk/2001-June/001418.html Did you take a look at http://www.async.com.br/faq/pygtk/index.py?req=showfile=faq22.007.htp ? Duh, never mind me and my replying-to-old-email thinkos. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br

Re: [pygtk] gnome.ui.Client connect shadows signal_connect

2003-08-08 Thread Christian Reis
the derived method override and shadow the base class method? Oh, it *would* `shadow' the base class method, I was rather pointing out that it *shouldn't*! Could you please open a Bugzilla report for this on bugzilla.gnome.org? Done. Thanks. Take care, -- Christian Reis, Senior Engineer, Async Open

Re: [pygtk] PyGTK+Thread problem (program freezes)

2003-08-07 Thread Christian Reis
version of PyGTK is this? Recent threading fixes have improved the threading situation a *lot*, but there might be some leftovers.. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL

Re: [pygtk] Gobject properties to PyObject attributes mapping

2003-08-07 Thread Christian Reis
and probably not Pythonesque in style), but hopefully it will inspire someone to implement the feature properly. +1 by me. I'm for this change, and I've discussed it with other people on #pygtk before (Joe Shaw, IIRC, and Johan). Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil

Re: [pygtk] textview: how to insert characters?

2003-08-07 Thread Christian Reis
and connecting in a signal callback. I'm surprised it even works, actually; if you want to avoid the signal being emitted, you can use the venerable emit_stop_by_name() method (or whatever pygtk2 offers with compatible semantics if it's not there). Take care, -- Christian Reis, Senior Engineer, Async

Re: [pygtk] GObject properties

2003-08-06 Thread Christian Reis
no other standalone docs now.. I'm a bit unsure of what to do here. Sorry, if this belongs to the basics. No, it's pretty interesting. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL

Re: [pygtk] Re: pygnome warnings when LANG set

2003-08-06 Thread Christian Reis
, but it should take the chartype correctly. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read

Re: [pygtk] Access glade's gtk.Tooltips group?

2003-08-02 Thread Christian Reis
is not wrapped as a PyObject, which is not safe. JamesH very recently pointed out that get_data() wasn't safe when returning non-PyObjects. If you can get us a stack trace we can be sure that's the current case. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br

Re: [pygtk] bug in TreeView?

2003-07-30 Thread Christian Reis
. If anybody else can help test, we'd appreciate it. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman

Re: [pygtk] TypeError: destroy() takes no arguments (1 given)

2003-07-30 Thread Christian Reis
() alone wasn't what you wanted to call, and that you need to do that one extra thing when closing that window. The lambda solution is a simplified way of providing that proxy, but I swear by defining explicit callback functions, even if all they do is call a gtk method. Take care, -- Christian Reis

Re: [pygtk] converting an Numeric array to a Pixbuf

2003-07-30 Thread Christian Reis
, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Re: [pygtk] custom widget in GLADE?

2003-07-30 Thread Christian Reis
it somewhere... Added as FAQ 22.7, thanks. http://www.async.com.br/faq/pygtk/index.py?req=showfile=faq22.007.htp Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk mailing list

Re: [pygtk] Patch for rare segfault

2003-07-30 Thread Christian Reis
); if (doc_descr == NULL) To avoid dropped patches, it's the best idea to file a bug on bugzilla.gnome.org and attach it there. That way we can make sure it's not read with the D key when everybody's too busy to try it. Take care, -- Christian Reis, Senior Engineer, Async Open Source

Re: [pygtk] TypeError: destroy() takes no arguments (1 given)

2003-07-30 Thread Christian Reis
no arguments (1 given) Note also FAQ 3.12: http://www.async.com.br/faq/pygtk/index.py?req=showfile=faq03.012.htp Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk mailing list

Re: [pygtk] bug in TreeView?

2003-07-30 Thread Christian Reis
://perso.wanadoo.es/perepujal/trace_with_python2.2.gz No, the output of gdb's 'where' or 'bt' command, after the dump. http://users.actcom.co.il/~choo/lupg/tutorials/debugging/debugging-with-gdb.html Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko

Re: [pygtk] connect_while_alive() in pygtk2?

2003-07-29 Thread Christian Reis
handler ids, and remove the id when disconnected. All you need to do is then check if the id is present before calling disconnect. That should avoid the warning. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL

Re: [pygtk] connect_while_alive() in pygtk2?

2003-07-29 Thread Christian Reis
and only call disconnect if it is. Does a function to check if a handler is connected exist in the C api? Not sure, check out the docs for GObject. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL

Re: [pygtk] Changing the colour of row selection in gtk.TreeView

2003-07-28 Thread Christian Reis
on how list selections are styled? At least your app will be consistent with others running on the platform. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk mailing

  1   2   3   4   >