Python and audio frequency analysis

2008-12-08 Thread manatlan
I'd like to make a kind of "spectrum analyzer" ... Which should display "bars" according bands of frequencies ... in real time... Is anybody know an audio processing lib in python for that ? -- http://mail.python.org/mailman/listinfo/python-list

Re: pytz and timezone specialists

2008-12-08 Thread manatlan
On 5 déc, 20:46, Ned Deily <[EMAIL PROTECTED]> wrote: > In article > <[EMAIL PROTECTED]>, > > > >  manatlan <[EMAIL PROTECTED]> wrote: > > Here is a really simple code : > > --- > > fro

pytz and timezone specialists

2008-12-05 Thread manatlan
Here is a really simple code : --- from datetime import datetime from pytz import timezone tz=timezone("Europe/Paris") d=datetime(2008,12,12,19,00,00,tzinfo=tz) print d.isoformat() d=datetime.now(tz) print d.isoformat()

Re: Great exercise for python expert !

2008-11-28 Thread manatlan
On 28 nov, 16:53, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > > I just want to make a jquery wrapper, and let people use it to write > > jquery call on the server side in a python way ... > > > o is a object, imagine a widget : like a textarea or input box > > "js" is a special attribut of "o",

Re: Great exercise for python expert !

2008-11-28 Thread manatlan
On 28 nov, 17:12, Peter Otten <[EMAIL PROTECTED]> wrote: > manatlan wrote: > > To explain better, here is another code > > class JQueryCaller(object): > >     def __init__(self,callback): > >         self.__callback=callback > >         self._s

Re: Great exercise for python expert !

2008-11-28 Thread manatlan
On 28 nov, 15:49, George Sakkis <[EMAIL PROTECTED]> wrote: > On Nov 28, 9:19 am, manatlan <[EMAIL PROTECTED]> wrote: > > > > > On 28 nov, 14:58, George Sakkis <[EMAIL PROTECTED]> wrote: > > > > On Nov 28, 5:36 am, manatlan <[EMAIL PROTECTED]&

Re: Great exercise for python expert !

2008-11-28 Thread manatlan
On 28 nov, 15:19, manatlan <[EMAIL PROTECTED]> wrote: > On 28 nov, 14:58, George Sakkis <[EMAIL PROTECTED]> wrote: > > > > > On Nov 28, 5:36 am, manatlan <[EMAIL PROTECTED]> wrote: > > > > I'd like to make

Re: Great exercise for python expert !

2008-11-28 Thread manatlan
On 28 nov, 14:58, George Sakkis <[EMAIL PROTECTED]> wrote: > On Nov 28, 5:36 am, manatlan <[EMAIL PROTECTED]> wrote: > > > > > I'd like to make a "jquery python wrapper" ... > > > here is my code : > > =

Great exercise for python expert !

2008-11-28 Thread manatlan
I'd like to make a "jquery python wrapper" ... here is my code : === #!/usr/bin/env python # -*- coding: utf-8 -*- class JQueryCaller(object): def __init__(self,callback): self.__callback=callback self._s=[]

Re: pygtk theme colors ?

2007-12-12 Thread manatlan
I've found ... In fact, you'll need to "realize" the window, and you should obtain the real gtk theme style (if you didn't realize the window, you obtain the default gtk theme style) (I post it here, so i could find it in the future again ;-) w = gtk.Window() w.realize() style=w.get_style()

pygtk theme colors ?

2007-12-12 Thread manatlan
I understand nothing ... I'm trying to get the color of a normal background window and when I change my themes (i switch between a light and a dark theme) i obtain always the same output below : style = gtk.Button().get_style() l=[gtk.STATE_NORMAL,gtk.STATE_ACTIVE,gtk.STATE_PRELIGHT,gtk.STATE_SEL

gnome/nautilus extensions ?

2007-12-12 Thread manatlan
Hello I'd like to create a new "nautilus extension" in python. I'd like to make a "nautilus side panel" ... is anybody has an example ? or just tell me where to find more info (google was not my friend on this search) -- http://mail.python.org/mailman/listinfo/python-list

Re: Dynamic subclassing ?

2007-05-13 Thread manatlan
On 13 mai, 10:04, manatlan <[EMAIL PROTECTED]> wrote: > On 12 mai, 18:57, Karlo Lozovina <[EMAIL PROTECTED]> wrote: > > > > > manatlan wrote: > > > I can't find the trick, but i'm pretty sure it's possible in an easy > > > way. >

Re: Dynamic subclassing ?

2007-05-13 Thread manatlan
On 12 mai, 20:47, Steven Bethard <[EMAIL PROTECTED]> wrote: > manatlan wrote: > > I've got an instance of a class, ex : > > > b=gtk.Button() > > > I'd like to add methods and attributes to my instance "b". > > I know it's possible

Re: Dynamic subclassing ?

2007-05-13 Thread manatlan
On 12 mai, 18:57, Karlo Lozovina <[EMAIL PROTECTED]> wrote: > manatlan wrote: > > I can't find the trick, but i'm pretty sure it's possible in an easy > > way. > > It's somewhat easy, boot looks ugly to me. Maybe someone has a more > elegant s

Re: Dynamic subclassing ?

2007-05-13 Thread manatlan
On 13 mai, 01:24, [EMAIL PROTECTED] (Alex Martelli) wrote: > manatlan <[EMAIL PROTECTED]> wrote: > > I've got an instance of a class, ex : > > > b=gtk.Button() > > > I'd like to add methods and attributes to my instance "b". > > I know i

Re: Dynamic subclassing ?

2007-05-12 Thread manatlan
On 12 mai, 18:38, "Daniel Nogradi" <[EMAIL PROTECTED]> wrote: > > I've got an instance of a class, ex : > > > b=gtk.Button() > > > I'd like to add methods and attributes to my instance "b". > > I know it's possible by hacking "b" with setattr() methods. But i'd > > like to do it with inheritance, a

Re: Dynamic subclassing ?

2007-05-12 Thread manatlan
On 12 mai, 17:00, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > manatlan a écrit : > > > I've got an instance of a class, ex : > > > b=gtk.Button() > > > I'd like to add methods and attributes to my instance "b". > > I know it's

Dynamic subclassing ?

2007-05-12 Thread manatlan
I've got an instance of a class, ex : b=gtk.Button() I'd like to add methods and attributes to my instance "b". I know it's possible by hacking "b" with setattr() methods. But i'd like to do it with inheritance, a kind of "dynamic subclassing", without subclassing the class, only this instance "b

PyGTK : a NEW simple way to code an app

2007-05-11 Thread manatlan
I was a fan of "SimpleGladeApp/tepache way" to build a pygtk app. I've build a new efficient/dynamic way to build a pygtk app ... Here is an example : = class Fen(GladeApp): """ Window win .title="Hello" @delete_event

Python bindings for picasaweb ...

2006-08-23 Thread manatlan
Just a post to announce some python bindings for picasaweb (photo's service of google). ---> PycasaWeb (GPL), http://manatlan.infogami.com/pycasaweb I think it may be usefull for linux users, because it's one of the only way to post pictures on picasaweb. And can be usefull to script batch with it

/usr/bin/env python, force a version

2005-10-06 Thread manatlan
I've got a trouble, and i think that anybody there can help me I've got a python script which i distribute in somes packages for *nix. This script is full of python and need python 2.4 ! And i'd like to display a message when the user doesn't have a python2.4 version. if i put, at the top of the

pygtk, gtk.treeview and virtuallist ?

2005-04-25 Thread manatlan
Hello, I'm new to pygtk (but i know wxpython very well) I'm trying to play with this example : http://www.pygtk.org/pygtk2tutorial/sec-CellRenderers.html#filelistingfig (the code is here : http://www.pygtk.org/pygtk2tutorial/examples/filelisting.py) I'd like to be able to use a virtual list (like

Re: "Mail receiver server"

2005-01-31 Thread manatlan
Kartic a écrit : manatlan said the following on 1/31/2005 5:46 PM: I like the idea, but how to connect the virtual smtp and a python script ? but ... There should be a way to be python only ... because i don't want to be very complex, i just want to get the subject of the email, to run

Re: "Mail receiver server"

2005-01-31 Thread manatlan
Mitja a écrit : On Mon, 31 Jan 2005 23:23:46 +0100, manatlan <[EMAIL PROTECTED]> wrote: in fact, i'd like to control "computer A" by sending smtp email from "computer B". What kind of server should i write on computer "B", a smtp server ? a pop se

"Mail receiver server"

2005-01-31 Thread manatlan
In an intranet/lan, i'd like to put a "python server script" (which run forever) on a computer A... On another computer B, I'd like to send smtp-email to the computer A ... (send to "[EMAIL PROTECTED]", for example ...126.52.12.12 is the ip address of "B") in fact, i'd like to control "compute