Re: First python project : Tuner

2012-01-26 Thread Jérôme
Fri, 20 Jan 2012 12:13:30 +0200 Anssi Saari a écrit: > Jérôme writes: > > > - I tried to clarify the dependencies of my program by adding > > "PyGObject (python-gi)." > > I believe PyGObject is the name, but python-gi being the name of the > > debian package (and possibly other distros' pac

Re: First python project : Tuner

2012-01-20 Thread Anssi Saari
Jérôme writes: > - I tried to clarify the dependencies of my program by adding > "PyGObject (python-gi)." > I believe PyGObject is the name, but python-gi being the name of the debian > package (and possibly other distros' package, I didn't check), I assumed it > would be more helpful.

Re: First python project : Tuner

2012-01-19 Thread Rick Johnson
On Jan 19, 4:44 am, Jérôme wrote: > - Most importantly, new 2.1 version comes with an absolutely pure french-free >   english-only screenshot, for your convenience. Thanks for this update. However, i need to stress that while the English language is fundamental to writing Python code, we are not

Re: First python project : Tuner

2012-01-19 Thread Jérôme
Tue, 17 Jan 2012 15:16:01 +0100 Jérôme a écrit: > Hi all. > > Like others before me, I'd like to show you my first python attempt, in the > hope in can get advices on how to improve my coding. Hi. Thank you for your useful advices. - I tried to clarify the dependencies of my program by adding

Re: First python project : Tuner

2012-01-17 Thread Chris Angelico
On Wed, Jan 18, 2012 at 7:38 AM, Rick Johnson wrote: > On Jan 17, 1:38 pm, Ben Finney wrote: >> You have attracted the attention of a troll. > > What is worse: A wolf, or a wolf in sheep's clothing? > > There is no "trolling" in my reply. A nice quip, yes. Trolling, no. Well, as we learn from In

Re: First python project : Tuner

2012-01-17 Thread Rick Johnson
On Jan 17, 1:38 pm, Ben Finney wrote: > Jérôme writes: > > Rick Johnson a écrit: > > > Besides, not everyone in this community is a "card carrying" > > > pacifist. > > ? > You have attracted the attention of a troll. What is worse: A wolf, or a wolf in sheep's clothing? There is no "trolling" i

Re: First python project : Tuner

2012-01-17 Thread Jean-Michel Pichavant
Jérôme wrote: Hi all. Like others before me, I'd like to show you my first python attempt, in the hope in can get advices on how to improve my coding. I started learning python and pyGTK last november. I had had a short experience of GTK with C, but had given up as I lacked time and I found it

Re: First python project : Tuner

2012-01-17 Thread Ben Finney
Jérôme writes: > Anyway, I was trying to bring people's attention to the python program > itself Welcome! You have some replies now, that's good. > Rick Johnson a écrit: > > Besides, not everyone in this community is a "card carrying" > > pacifist. > > ? You have attracted the attention of a

Re: First python project : Tuner

2012-01-17 Thread Jérôme
Tue, 17 Jan 2012 10:16:02 -0800 (PST) gst a écrit: > you have quite lot of such test: > > > if self._index is 0: > > I think it's better to compare with equality against 0 (or other > needed value) ; that is: > > if self._index == 0: Yes, I just saw that thanks to Alex Willmer's e-mail. I use

Re: First python project : Tuner

2012-01-17 Thread gst
On 17 jan, 15:16, Jérôme wrote: > Hi all. > hi, just my 2 cents: you have quite lot of such test: > if self._index is 0: I think it's better to compare with equality against 0 (or other needed value) ; that is: if self._index == 0: otherwise your code looks very nice to me, though I just ha

Re: First python project : Tuner

2012-01-17 Thread Jérôme
Tue, 17 Jan 2012 12:28:11 -0500 Rodrick Brown a écrit: > You would get more responses if you used one of those sites that displayed > the code right in the browser. Thanks for the tip. I thought people would rather open it in their own editor. (And I tend to avoid third-party hosting.) Here's a

Re: First python project : Tuner

2012-01-17 Thread Rodrick Brown
You would get more responses if you used one of those sites that displayed the code right in the browser. On Tue, Jan 17, 2012 at 12:26 PM, Jérôme wrote: > Tue, 17 Jan 2012 08:48:13 -0800 (PST) > Rick Johnson a écrit: > > > On Jan 17, 8:16 am, Jérôme wrote: > > > > > Any comment is welcome, be

Re: First python project : Tuner

2012-01-17 Thread Jérôme
Tue, 17 Jan 2012 08:48:13 -0800 (PST) Rick Johnson a écrit: > On Jan 17, 8:16 am, Jérôme wrote: > > > Any comment is welcome, be it about code optimization, coding style, > > pythonification, good practices, or simply program features and usability. > > Step one would be to show a screen shot i

Re: First python project : Tuner

2012-01-17 Thread Rick Johnson
On Jan 17, 8:16 am, Jérôme wrote: > Any comment is welcome, be it about code optimization, coding style, > pythonification, good practices, or simply program features and usability. Step one would be to show a screen shot in both English AND French language. Besides, not everyone in this communi

First python project : Tuner

2012-01-17 Thread Jérôme
Hi all. Like others before me, I'd like to show you my first python attempt, in the hope in can get advices on how to improve my coding. I started learning python and pyGTK last november. I had had a short experience of GTK with C, but had given up as I lacked time and I found it more difficult t