Re: Thread lag

2009-04-25 Thread Yann Leboulanger
Piet van Oostrum wrote: >> Asterix (A) a écrit: > >> A> Hi, >> A> Here is a small class I use in my GTK application, to do some job in a >> A> thread.: > >> A> class ThreadInterface: >> A>def __init__(self, func, func_args, callback, callback_args): >> A> '''Call a function in a th

Re: [Py2exe-users] installer for py2exe files?

2009-04-22 Thread Yann Leboulanger
Gabriel Rossetti wrote: > Hello everyone, > > I am wanting to create an installer for my project. I first use py2exe > to create win32 executables and then would like to have an easy to use > (for the end user) installer. I would need the installer to launch a > script (a python script also tur

Re: Icon in a gtk.Entry

2008-01-25 Thread Yann Leboulanger
[EMAIL PROTECTED] wrote: > > Hello all, > > I have two thing I wish to accomplish, First, put an icon in a gtk.Entry as > in many search boxes. Second put a gtk.Checkbox in a gtk.ComboboxEntry. On > the later I thought I could get a handle to the Combobox tree and then add a > column and then

Re: creating .pyo with make

2008-01-24 Thread Yann Leboulanger
Diez B. Roggisch wrote: > Yann Leboulanger schrieb: >> Diez B. Roggisch wrote: >>> Yann Leboulanger schrieb: >>>> Yann Leboulanger wrote: >>>>> Hi, >>>>> >>>>> I use autoconf / automake to manage my python project, and I&

Re: creating .pyo with make

2008-01-24 Thread Yann Leboulanger
Diez B. Roggisch wrote: > Yann Leboulanger schrieb: >> Yann Leboulanger wrote: >>> Hi, >>> >>> I use autoconf / automake to manage my python project, and I'l like >>> make / make install to create / install .pyo files instead of .py files. >>

Re: creating .pyo with make

2008-01-23 Thread Yann Leboulanger
Yann Leboulanger wrote: > Hi, > > I use autoconf / automake to manage my python project, and I'l like make > / make install to create / install .pyo files instead of .py files. > > Is there something I should add to my Makefile.am files to do that? Or > should

creating .pyo with make

2008-01-23 Thread Yann Leboulanger
Hi, I use autoconf / automake to manage my python project, and I'l like make / make install to create / install .pyo files instead of .py files. Is there something I should add to my Makefile.am files to do that? Or should I do all that myself with py_compile module? Are there some examples so

Re: PyGTK, Glade, and ComboBoxEntry.append_text()

2008-01-22 Thread Yann Leboulanger
Greg Johnston wrote: > Hey all, > > I'm a relative newbie to Python (switched over from Scheme fairly > recently) but I've been using PyGTK and Glade to create an interface, > which is a combo I'm very impressed with. > > There is, however, one thing I've been wondering about. It doesn't > seem p

dbus bindings under Windows

2007-12-19 Thread Yann Leboulanger
Are there any python dbus bindings under windows ? -- http://mail.python.org/mailman/listinfo/python-list

Re: os.access() under windows

2007-12-03 Thread Yann Leboulanger
Martin v. Löwis wrote: > Just in case it's not clear what Tim is getting at: > > if a folder is marked read-only on Windows, it doesn't mean > that you can only read from it. The read-only bit is a legacy > thing, anyway, since you are supposed to use ACLs to mark > a folder as read-only (by only

Re: os.access() under windows

2007-12-03 Thread Yann Leboulanger
Tim Golden a écrit : > Well, that's not the case for files: if you set your > file's readonly attribute to True, then os.access (W_OK) > will return False and you won't be able to write to the > file: > The only issue (at least, the only one we're discussing here) is: > If os.W_OK on a directory

Re: os.access() under windows

2007-12-03 Thread Yann Leboulanger
Tim Golden a écrit : > > I'm happy to contribute a doc patch if I can imagine what > exactly to write. > "Don't use it under windows, always consider it's True"? Maybe it would be a good idea to remove support for windows for this function, or make it always return True? Current behaviour is w

Re: os.access() under windows

2007-12-03 Thread Yann Leboulanger
Martin v. Löwis a écrit : >> I create a folder test under e: >> >> then os.access('e:\\test', os.W_OK) returns True. Everything's ok. >> >> Now I move My Documents to this e:\test folder >> >> Then os.access('e:\\test', os.W_OK) returns False !! > > This description is, unfortunately, too imprecis

Re: os.access() under windows

2007-12-02 Thread Yann Leboulanger
Error: > print "couldn't write test file, continuing..." > > On Dec 1, 2007 1:48 AM, Yann Leboulanger <[EMAIL PROTECTED]> wrote: >> Hi, >> >> Under Windows XP os.access has a strange behaviour: >> >> I create a folder test under e: >

os.access() under windows

2007-12-01 Thread Yann Leboulanger
Hi, Under Windows XP os.access has a strange behaviour: I create a folder test under e: then os.access('e:\\test', os.W_OK) returns True. Everything's ok. Now I move My Documents to this e:\test folder Then os.access('e:\\test', os.W_OK) returns False !! but this works: f = open('e:\\test\\te