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 jer...@jolimont.fr 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

Re: First python project : Tuner

2012-01-20 Thread Anssi Saari
Jérôme jer...@jolimont.fr 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

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-19 Thread Rick Johnson
On Jan 19, 4:44 am, Jérôme jer...@jolimont.fr 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

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

Re: First python project : Tuner

2012-01-17 Thread Rick Johnson
On Jan 17, 8:16 am, Jérôme jer...@jolimont.fr 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

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 jer...@jolimont.fr 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

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 jer...@jolimont.fr wrote: Tue, 17 Jan 2012 08:48:13 -0800 (PST) Rick Johnson a écrit: On Jan 17, 8:16 am, Jérôme jer...@jolimont.fr wrote:

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 an

Re: First python project : Tuner

2012-01-17 Thread gst
On 17 jan, 15:16, Jérôme jer...@jolimont.fr 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,

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 used to

Re: First python project : Tuner

2012-01-17 Thread Ben Finney
Jérôme jer...@jolimont.fr 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

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 Rick Johnson
On Jan 17, 1:38 pm, Ben Finney ben+pyt...@benfinney.id.au wrote: Jérôme jer...@jolimont.fr 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

Re: First python project : Tuner

2012-01-17 Thread Chris Angelico
On Wed, Jan 18, 2012 at 7:38 AM, Rick Johnson rantingrickjohn...@gmail.com wrote: On Jan 17, 1:38 pm, Ben Finney ben+pyt...@benfinney.id.au 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,