Re: [pygtk] default path for a gnome file entry

2003-11-05 Thread Frederic Gobry
> What do you mean by "an empty Entry"? An entry with no text in it: if there is no text in the entry widget, the default directory is not used when one clicks on the Browse button. Frédéric pgp0.pgp Description: PGP signature ___ pygtk mailing li

[pygtk] default path for a gnome file entry

2003-10-31 Thread Frederic Gobry
Hi, I've a small problem using a GnomeFileEntry. I would like the file selector to open in a defined directory, and wrote the following snippet: import pygtk pygtk.require ('2.0') import gtk, gnome from gnome import ui gnome.init ('Test', '0.0') d = gtk.Dialog () f = ui.FileEntry ('history',

[pygtk] GtkHTML

2001-05-14 Thread Frederic Gobry
Hello, Is the support for GtkHTML somewhat unstable that it is not compiled by default ? I would like to extend my applications with it, but I would feel more comfortable knowing that the module will be available in the main distros (like Ximian...), in order not to receive too many complaints...

Re: [pygtk] about the Gnome 1.4 crashes

2001-05-08 Thread Frederic Gobry
> Is the "Help Chat" Ximian-specific? Would replacing gnome-libs with > non-Ximian packages fix the problem? Don't know (I've become tired of compiling all the packages, so I admit I use Ximian...) But if it is, the best solution would be to convince them they did something bad... Could anybod

[pygtk] about the Gnome 1.4 crashes

2001-05-08 Thread Frederic Gobry
The attached program causes the problem. According to gdb, an additional item, "Help Chat..." is added to the Help menu. As this item was not explicitely requested by the user, its attached data are probably not in Python's internal format, which causes a core dump in a Py_INCREF on it. Don't kn

Re: RE: [pygtk] For he's a jolly good fellow...

2000-04-18 Thread Frederic Gobry
Happy birthday James ! > As for his age ... Trusting the gnome pice of news,that's the sad thing... > 21. Yes. We are all old. sad. Well, it's hard to admit, but I must have slept too much during these 6 years after my 21st birthday... ;-) - To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTE

Re: [pygtk] GnomeDialog fix + i18n question

2000-03-26 Thread Frederic Gobry
> It works fine for me: >LANG=no ./solfege.py > with version 1.0.50 of PyGNOME Thanks. In the meantime, I noticed that gnome-libs has forgotten to install its po file when I installed it... Now it works perfectly ;-) Frédéric - To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

[pygtk] GnomeDialog fix + i18n question

2000-03-22 Thread Frederic Gobry
Hi, I fixed (in CVS) the bug I reported previously in GnomeDialog.button_connect. On another topic, is anybody using i18n with gnome-python ? I really would like to know if it's ok for everybody except me. I mean, do you get the gnome messages translated (in standard buttons, menus,...) ? Frédé

[pygtk] Problem with GnomeDialog

2000-03-21 Thread Frederic Gobry
Hi, I have problems with the GnomeDialogs: when I connect a button with the button_connect () method, I get random behaviors, depending on the __init__ code... For example : from gtk import * from gnome.ui import * class Essai (GnomeDialog): def __init__ (self): GnomeDialog.__init_

[pygtk] i18n

2000-03-20 Thread Frederic Gobry
Hi, I use gettext.py to translate the text of my interfaces. This does not work for buttons/menu items defined in gnome/uiconsts (like STOCK_MENU_OPEN) Do I have to perform some additional step to tell Gnome to translate them inside its own libraries, or are this message *not* translated at all

[pygtk] Re: pygtk checkins

2000-03-13 Thread Frederic Gobry
> That would be a good idea. Done. On another topic, I think having a version number available as a (eventually set of) python variable would be a nice thing: I would enjoy being able to test it during the configuration of my own packages, so that I can issue explicit error messages (like the on

[pygtk] bug fixes

2000-03-07 Thread Frederic Gobry
Hi, I fixed a bug (in CVS) in the ui_info construction function (in GnomeUI) : it should solve some random crashes. I also added a .length field to the GtkStructure object, so that it is possible in the case of copy/paste to know if the data returned are valid or not (length > -1). The problem i

Re: [pygtk] how to adjust scrolledwindow pos

2000-03-01 Thread Frederic Gobry
Hi, > #Now 'text' is positioned at the top; how do I set it to the bottom. > #I looked for something like set_scroll_pos(pos), but couldn't find such. You should have a look at the section on GtkAdjustment in the Gtk documentation. It provides a generic class to deal with numerical ranges. For y

Re: [pygtk] I am pissed off

2000-02-25 Thread Frederic Gobry
> Now when I try to use any of the menu stuff it segfaults without > explanation. Happy to see I'm not the only one ;-) I guess there is really a bug, it's not in your code. But as far as I remember, the stack at crash time does not point into pygnome, so if there is a bug in it, it appears with

[pygtk] A last one on MDI

2000-02-21 Thread Frederic Gobry
Invoking a menu callback causes an Illegal instruction failure, or at least in the code attached to this mail. Am I doing something wrong ? Frédéric from gnome.ui import * from gtk import * mdi = GnomeMDI ('test', 'test') mdi.connect ('destroy', mainquit) mdi.set_menubar_template ([ UII

Re: [pygtk] Bugs in GnomeMDIGenericChild

2000-02-21 Thread Frederic Gobry
Re-re hi, in _wrap_gnome_mdi_generic_child_set_menu_creator, shouldn't PyGtk_CallbackMarshal be replaced with a specific marshaller ? The callback is expected to return a list, and the Gtk return type is GTK_TYPE_OBJECT, hence the current mismatch... Before testing this, you actually need to fix

[pygtk] Bug in GtkRet_FromPyObject

2000-02-21 Thread Frederic Gobry
I'm continuing my investigations on MDI ;-) In gtkmodule.c, line 3041, isn't there a break missing ? Frédéric PS : I've write access to the Gnome CVS. Is it ok to fix these kind of bugs without warning ? To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

[pygtk] Bugs in GnomeMDIGenericChild

2000-02-21 Thread Frederic Gobry
Hi, I've noticed some bugs in gnomeuimodule.c, line 966 and following: there are a series of calls to gnome functions with GNOME_MDI_GENERIC_CHILD(mdi) as argument, instead of GNOME_MDI_GENERIC_CHILD(PyGtk_Get (mdi)). Frédéric To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

[pygtk] typo in gnome.ui + gettext

2000-02-18 Thread Frederic Gobry
Hello, Line 1163 of gnome/ui.py, one should read: a[i] = _obj2inst(args[i]) instead of aa[i] = _obj2inst(args[i]) On another topic, what is the status of gettext.py ? Does anybody use it on sparc Solaris, with po files generated on this architecture ? I sent a patch a long ti

Re: [pygtk] 2 simple ctree questions

2000-01-20 Thread Frederic Gobry
> Are you using Python 1.5.2? If so, a change in module loading libdl > calls breaks the way imlib does image loader plugins. It's fixed > (well, at least patched to work) in Red Hat Linux's Python 1.5.2 > packages. Do you have a reference to the actual patch, as I need to install from the sour

Re: [pygtk] 2 simple ctree questions

2000-01-20 Thread Frederic Gobry
Hi ! > * How do I get and set the row with the current focus (ie different > from the current selections)? You get the focus row with tree.focus_row... I don't know if you can set it. > * How do I put pixmap into a row? An example would be really helpful. See the enclosed example... BTW, does

[pygtk] several questions

1999-08-16 Thread Frederic Gobry
Hello, I've several questions/bug reports concerning gnome-python... I've a threaded version of python, and I've tried to use mainiteration(). It works well, excepted when the function is called from a callback. In that case, it hangs. (see the attached example) I have to surround my call to thi