Re: [pygtk] glc

2002-02-12 Thread Alexandre Fayolle
l out what I need, paste it into my projects and > work on it from there. I think gladepyc does a similar job. http://www.fcoutant.freesurf.fr/gladepyc.html Alexandre Fayolle -- LOGILAB, Paris (France). http://www.logilab.com http://www.logilab.fr http://www.logilab.org Narval, the first

[pygtk] how to get the glade file

2002-02-06 Thread Alexandre Fayolle
th.dirname(my_application.__file__), 'my_application.glade') It does the job, but I'm not sure that this ios the right way of doing things. Any comments ? Alexandre Fayolle -- LOGILAB, Paris (France). http://www.logilab.com http://www.logilab.fr http://ww

Re: [pygtk] glade and libglade

2002-02-05 Thread Alexandre Fayolle
On Tue, 5 Feb 2002, Alexandre Fayolle wrote: > So it looks like the > GtkMenuItem > fichier1 > GNOMEUIINFO_MENU_FILE_TREE... are > causing a breakage somewhere, since this is where I got the > pixmaps from. > > Anyone has an idea on how to solve this? OK, answerin

Re: [pygtk] glade and libglade

2002-02-05 Thread Alexandre Fayolle
On Tue, 5 Feb 2002, Alexandre Fayolle wrote: > [alf@gemini glade]$ python glade.py grammar_editor.glade > > GLib-CRITICAL **: file gstring.c: line 329 (g_string_prepend): assertion > `val != NULL' failed. > IMLIB ERROR: Cannot allocate XImage buffer > > Gdk-CRITICAL

[pygtk] glade and libglade

2002-02-05 Thread Alexandre Fayolle
tried to upgrade to glade 0.6.4, but resolving the dependencies is proving to be quite a nightmare, so if there's an easier way, I'd rather try it. Alexandre Fayolle -- LOGILAB, Paris (France). http://www.logilab.com http://www.logilab.fr http://www.logilab.org Narval, the first softwa

[pygtk] glc

2002-02-05 Thread Alexandre Fayolle
Does anyone here know if glc (http://glc.sf.net/) is still maintained? Alexandre Fayolle -- LOGILAB, Paris (France). http://www.logilab.com http://www.logilab.fr http://www.logilab.org Narval, the first software agent available as free software (GPL

Re: Threads on win32 (Re: [pygtk] Porting PyGTK on Win32)

2002-01-25 Thread Alexandre Fayolle
enables the other threads to get some CPU by forcing a context switch. But I have not deved deep enough in the intricacies of python threading lib and win32gtk's to be sure of what's going wrong in the first place. Alexandre Fayolle -- LOGILAB, Paris (France). http://www.logilab.com

Threads on win32 (Re: [pygtk] Porting PyGTK on Win32)

2002-01-24 Thread Alexandre Fayolle
You should adjust the value of the period of the timeout so that your app still runs smoothly. Another limitation of gtk on Win32 is that the input_add function does not work. The callback function gets called each time an event occurs in the app, so you should avoid it. Alexandre Fayol

Re: [pygtk] how to sort properly by column and display right-justifiedtext?

2001-10-23 Thread Alexandre Fayolle
gs, using str(number).rjust(width), where width is the max width of the column. This should get you the list sorted correctly. If you want to use the data afterwards, you need to convert it back to an integer. Alexandre Fayolle -- LOGILAB, Paris (France). http://www.logilab.com http://

Re: [pygtk] Compiled versions of _gtk.pyd and libglade.pyd forPython2.1.1

2001-10-17 Thread Alexandre Fayolle
ttp://hans.breuer.org/ports/default.htm Python 1.5.2 and 2.0 only. Alexandre Fayolle -- LOGILAB, Paris (France). http://www.logilab.com http://www.logilab.fr http://www.logilab.org Narval, the first software agent available as free software (GPL). ___

Re: [pygtk] Compiled versions of _gtk.pyd and libglade.pyd forPython2.1.1

2001-10-17 Thread Alexandre Fayolle
6.8 all set, but I am having some > problems with these 2 DLLs. ftp://ftp.logilab.org/pub/win32/pygtk/pygtk_py21/setup.exe This gets you an installer that sets up gtk and pygtk/libglade. Alexandre Fayolle -- LOGILAB, Paris (France). http://www.logilab.com http://www.logilab.fr http://w

[pygtk] GtkCList.set_compare_func()

2001-10-13 Thread Alexandre Fayolle
Hello, I could not find the set_compare_func() method in the GtkCList class. How can I sort a column holding numerical values ? Alexandre Fayolle -- LOGILAB, Paris (France). http://www.logilab.com http://www.logilab.fr http://www.logilab.org Narval, the first software agent available as

[pygtk] [ANN] xmltools 1.3.4

2001-09-28 Thread Alexandre Fayolle
ftp://ftp.logilab.org/pub/xmltools/ Alexandre Fayolle -- LOGILAB, Paris (France). http://www.logilab.com http://www.logilab.fr http://www.logilab.org Narval, the first software agent available as free software (GPL). ___ pygtk mailing list [EMAIL

Re: [pygtk] Help installing pygtk, libglade in Windows - please(fwd)

2001-06-21 Thread Alexandre Fayolle
tell me where libglade for windows can be found I'll be glad(e) to include it. ;o) Alexandre Fayolle -- http://www.logilab.com Narval is the first software agent available as free software (GPL). LOGILAB, Paris (France). ___ pygtk mailing list [EMAIL

Re: [pygtk] weird problems with diacritics and GtkText

2001-06-10 Thread Alexandre Fayolle
On Sun, 10 Jun 2001, James Henstridge wrote: > On Sun, 10 Jun 2001, Alexandre Fayolle wrote: > > I seem to have omitted some crucial piece of information : the client is > > running on a win2K box, and the server on a linux machine. I tried to > > reproduce this with th

Re: [pygtk] weird problems with diacritics and GtkText

2001-06-10 Thread Alexandre Fayolle
On Sat, 9 Jun 2001, Alexandre Fayolle wrote: > Now, if the input has some diacritic characters, it is properly echoed. If > the response has some diacritic characters, it is *not* displayed in the > GtkText widget, though the print statement on the console shows perfectly > norma

[pygtk] weird problems with diacritics and GtkText

2001-06-09 Thread Alexandre Fayolle
27;m stuck, and will appreciate any input on the matter (we are supposed to demo the piece of code on monday, and, though everything else works fairly well, this one bug is really annoying) TIA Alexandre Fayolle -- http://www.logilab.com Narval is the first software agent available as free software (

[pygtk] New version of the windows installer

2001-06-09 Thread Alexandre Fayolle
/win32/pygtk/ Cheers, Alexandre Fayolle -- http://www.logilab.com Narval is the first software agent available as free software (GPL). LOGILAB, Paris (France). ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk

[pygtk] Windows installer available

2001-05-21 Thread Alexandre Fayolle
generated with Inno Setup. The Python20 version was not tested locally, so any feedback is welcome. It is my hope that this installer will help people using pygtk on windows. The script to generate the installer with Inno Setup is available on request. Alexandre Fayolle -- http://www.logilab

Re: [pygtk] GtkTree?

2001-05-04 Thread Alexandre Fayolle
h returns float values in the [0,1] range...) Alexandre Fayolle -- http://www.logilab.com Narval is the first software agent available as free software (GPL). LOGILAB, Paris (France). ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/m

Re: [pygtk] GtkTree?

2001-05-03 Thread Alexandre Fayolle
n individual row in a GtkCList After the widget is realized, I allocate a new color: my_col=window.get_colormap().alloc(65535,51400,51400) and then I use list.ser_background(row,my_col), with row being the row number of the list. Since a GtkCTree is a GtkCList, this should work too? Alexandre Fayo

Re: [pygtk] how to contribute

2001-03-29 Thread Alexandre Fayolle
of the application I'm working on. I think I'll give a try to gladepyc soon. Cheers, Alexandre Fayolle -- http://www.logilab.com Narval is the first software agent available as free software (GPL). LOGILAB, Paris (France). ___ pygtk mailing list

Re: [pygtk] Find a row from CTreeNode

2001-01-24 Thread Alexandre Fayolle
this, since all GtkCList methods requiring a row number are available in GtkCTree with the GtkCTreeNode as an argument (the name of the method is then prefixed by 'node_'. May I ask why you need to access this information? Alexandre Fayolle -- http://www.logilab.com Narval is the firs

RE: [pygtk] Win32 Question

2001-01-19 Thread Alexandre Fayolle
10:51:12) [MSC 32 bit (Intel)] on win32 > Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam Beware: the current version on hans.breuer.org is for python 2.0, however an alternate version of _gtk.pyd for pythopn 1.5.2 is available. If you're using the python 2.0 version, th

Re: [pygtk] Win32 Question

2001-01-19 Thread Alexandre Fayolle
e file, but as I'm running win32 It needs the gtk+ DLLs. You can grab them from Tor Lillquist (sorry about the spelling) win32 gtk+ port, as said on Hans Breuer's page, that is http://user.sgic.fi/~tml/gimp/win32/downloads.html. Alexandre Fayolle -- http://www.logilab.com Narval

Re: [pygtk] CTrees, ctyles and colours

2001-01-19 Thread Alexandre Fayolle
s directly, but if I do that I end up with black > on black. Anyone know what's going on? Try using values between 0 and 65535 for a try. This should solve your problem. Alexandre Fayolle -- http://www.logilab.com Narval is the first software agent

Re: [pygtk] python2, unicode and GtkCTree

2001-01-11 Thread Alexandre Fayolle
On Thu, 11 Jan 2001, James Henstridge was catching up with his mail, and he wrote: > Alexandre Fayolle wrote: > > > > A long time ago (last millenium, that is), the supreme authority on pygtk, > > James Henstridge, wrote: > > > > > you should be able to pass

Re: [pygtk] Win32 && Python2.0

2001-01-11 Thread Alexandre Fayolle
/hans.breuer.org/ports, since the current port of PyGtk for Win32 only works with Python 2.0 (there's a .pyd file provided for Python 1.5.2 for those who need it, though). Alexandre Fayolle -- http://www.logilab.com Narval is the first software agent available as free soft

[pygtk] GtkToolbar style

2001-01-09 Thread Alexandre Fayolle
at 6.2 box. Alexandre Fayolle -- http://www.logilab.com Narval is the first software agent available as free software (GPL). LOGILAB, Paris (France). ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk

[pygtk] python2, unicode and GtkCTree

2001-01-05 Thread Alexandre Fayolle
au/msg01963.html) I'm having troubles when adding unicode strings to a CTree: File "c:\python20\gtk.py", line 1348, in insert_node is_leaf, expanded) TypeError: sequence item not a string Is this one of the pygtk functions where unicode is not handled ? Best wishes for 2001!

Re: [pygtk] How do I figure out how big a string is going to beusing a font?

2001-01-05 Thread Alexandre Fayolle
On Thu, 4 Jan 2001, Edward Muller wrote: > How do I figure out how big a string is going to be using a font? Use the GdkFont.extents(string) method. Check the GdkFont class in description.py (should be in /usr/doc/pygtk-xxx) for more info. Alexandre Fayolle -- http://www.logilab.

Win32 problem with input_add (Re: [pygtk] g_source_add equivalent)

2000-11-24 Thread Alexandre Fayolle
On Thu, 23 Nov 2000, Alexandre Fayolle wrote: > On Tue, 21 Nov 2000, James Henstridge wrote: > > > Use the input_add function. It should do what you want. > > OK, it works perfectly under linux. However, I'm having troubles when I > test the code under WinNT. I g

Re: [pygtk] g_source_add equivalent

2000-11-23 Thread Alexandre Fayolle
d(self.soap_socket,GDK.INPUT_READ, self.handle_incoming_soap_request) Maybe ther's a problem in the pygtk win32 port, or in the gtk win32 port itself. Any help on where to look for the bug would be precious. Thanks Alexandre Fayolle -- http://www.logilab.com Narval is the first sof

Re: [pygtk] g_source_add equivalent

2000-11-21 Thread Alexandre Fayolle
On Tue, 21 Nov 2000, James Henstridge wrote: > Use the input_add function. It should do what you want. Yes, it looks great. Do you have any information about the arguments that are passed to the callback function? Alexandre Fayolle -- http://www.logilab.com Narval is the first softw

[pygtk] g_source_add equivalent

2000-11-20 Thread Alexandre Fayolle
done because this won't work on win32 for some obscure reason. I could also add a timeout and poll from the socket, but I'd rather not if I can avoid it. Alexandre Fayolle -- http://www.logilab.com Narval is the first software agent available as free software (GPL). LOGILAB

Re: [pygtk] python 2.0 support

2000-11-16 Thread Alexandre Fayolle
On Thu, 16 Nov 2000, D-Man wrote: > > For what system? Redhat 6.2 and windows. Alexandre Fayolle -- http://www.logilab.com Narval is the first software agent available as free software (GPL). LOGILAB, Paris (France). ___ pygtk mailin

[pygtk] python 2.0 support

2000-11-16 Thread Alexandre Fayolle
Is there a release of Pygtk compiled for Python 2.0 available somewhere? Alexandre Fayolle -- http://www.logilab.com Narval is the first software agent available as free software (GPL). LOGILAB, Paris (France). ___ pygtk mailing list [EMAIL

[pygtk] [ANNOUNCE] xmltools

2000-11-08 Thread Alexandre Fayolle
arval project. The home page is http://www.logilab.org/xmltools/ Alexandre Fayolle -- http://www.logilab.com Narval is the first software agent available as free software (GPL). LOGILAB, Paris (France). ___ pygtk mailing list [EMAIL PROTECTED]

Re: [pygtk] have anybody tried to adapt pygtk to work on Win32?

2000-11-05 Thread Alexandre Fayolle
val, which is available at ftp://ftp.logilab.org/pub/win32/Win32Gtk-shared-libs.tgz (it features only the required DLLs, without the header files stuff) : just unpack it to your system32 directory (or actually anywhere in your PATH), and here it goes. Alexandre Fayolle -- http://www.logilab.com Narv

Re: [pygtk] TypeError exception without traceback

2000-11-03 Thread Alexandre Fayolle
ettrace(trace) Maybe you can adapt the test at the beginning to suit your need. Alexandre Fayolle -- http://www.logilab.com Narval is the first software agent available as free software (GPL). LOGILAB, Paris (France). ___ pygtk mailing list

[pygtk] Threading problem using pygtk on Win32

2000-11-02 Thread Alexandre Fayolle
t case what would be required to implement the thread support on win32 ? I'm not yet very familiar with the innards of the python bindings of gtk nor with the win32 port of GTK+, but I'm ready to get my shirt wet, since I really need this feature. Any help/suggestion welcome. Alexandre Fayolle

[pygtk] subclasses and attributes

2000-10-26 Thread Alexandre Fayolle
t the first one to encounter the problem. Are there any workarounds ? -- Alexandre Fayolle http://www.logilab.com LOGILAB, Paris (France). ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk

Re: [pygtk] Moving CPU hog into another thread

2000-10-23 Thread Alexandre Fayolle
7;s found in the queue, the gui is updated. -- Alexandre Fayolle http://www.logilab.com LOGILAB, Paris (France). ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk

[pygtk] GtkCTreeNode bug in 0.6.6

2000-09-30 Thread Alexandre Fayolle
ction (where tree is a GtkCTree): File "Narval/narval/gui/XmlEditor.py", line 125, in add_attribute_activated if self.tree.selection.children: AttributeError: children -- Alexandre Fayolle http://www.logilab.com - "Mais où est donc Ornicar ?"

Re: [pygtk] Questions about accelerators.

2000-09-29 Thread Alexandre Fayolle
On Fri, 29 Sep 2000, Dave Belfer-Shevett wrote: > This is -OUTSTANDING- information. I have just one teeny weeny question, > which will cement me as a Newbie. :) We where all newbies once. > On Fri, 29 Sep 2000, Alexandre Fayolle wrote: > > struct GdkEventKey > > {

Re: [pygtk] Questions about accelerators.

2000-09-29 Thread Alexandre Fayolle
g from the key press. When text is being input, in a GtkEntry for example, it is these characters which should be added to the input buffer. When using Input Methods to support internationalized text input, the composed characters appear here after the pre-editing has been com

Re: [pygtk] GtkCTree Doesn't Work

2000-09-18 Thread Alexandre Fayolle
t is fine) Cheers Alexandre, who might have been asking the same question just one month ago... -- Alexandre Fayolle http://www.logilab.com - "Mais où est donc Ornicar ?" - LOGILAB, Paris (France). ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk

[pygtk] CTree silly question

2000-09-05 Thread Alexandre Fayolle
nd, I'm interested...) -- Alexandre Fayolle Logilab ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk

[pygtk] GtkBox.pack_start() problem

2000-09-03 Thread Alexandre Fayolle
7;label 3' in that order (instead of the expected 'label 2', 'label 1', 'label 3') Any help appreciated (as you might have guessed, I'm trying to pack a widget at the beginning of my VBox...) -- Alexandre Fayolle Logilab ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk

Re: [pygtk] expanded tree item

2000-08-22 Thread Alexandre Fayolle
d. Eyrolles, ISBN 2-212-09115-X). It covers most features of GTK+ 1.2, with the notable exception of drag and drop. Alexandre Fayolle http://alexandre.fayolle.free.fr ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk

Re: [pygtk] expanded tree item

2000-08-21 Thread Alexandre Fayolle
lusion in gtk 2.0 ? (in other words, is it better for me to wait, or shall I start working on such things now if I know I'll need them in some near future?) Alexandre Fayolle ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk

Re: [pygtk] expanded tree item

2000-08-21 Thread Alexandre Fayolle
En réponse à Aaron Optimizer Digulla <[EMAIL PROTECTED]>: > Quoting Alexandre Fayolle <[EMAIL PROTECTED]>: > > > How can I know if a GtkTreeItem is expanded ? > > Use ctree.get_node_info(node)[7]. It's != when the node is > expanded. This is a GtkCTree yo

[pygtk] expanded tree item

2000-08-21 Thread Alexandre Fayolle
Hello, How can I know if a GtkTreeItem is expanded ? Thanks Alexandre Fayolle ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk