Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #19121 > unrolled thread

Re: First python project : Tuner

Started byJérôme <jerome@jolimont.fr>
First post2012-01-19 11:44 +0100
Last post2012-01-26 19:39 +0100
Articles 4 — 3 participants

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: First python project : Tuner Jérôme <jerome@jolimont.fr> - 2012-01-19 11:44 +0100
    Re: First python project : Tuner Rick Johnson <rantingrickjohnson@gmail.com> - 2012-01-19 08:32 -0800
    Re: First python project : Tuner Anssi Saari <as@sci.fi> - 2012-01-20 12:13 +0200
      Re: First python project : Tuner Jérôme <jerome@jolimont.fr> - 2012-01-26 19:39 +0100

#19121 — Re: First python project : Tuner

FromJérôme <jerome@jolimont.fr>
Date2012-01-19 11:44 +0100
SubjectRe: First python project : Tuner
Message-ID<mailman.4857.1326969719.27778.python-list@python.org>
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 
  "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.

- Frequency is now displayed on the main window under each key (it was already
  displayed in the selector widget)

- Pylint helped me improve a bit. Mostly conventions. And it still yields
  what I believe are false-positives. I didn't try to configure it not to.
  Thanks for telling me about Pylint. This tool is helpful.

- I also corrected the "is" misuse as "==".

- Most importantly, new 2.1 version comes with an absolutely pure french-free
  english-only screenshot, for your convenience.

http://devs.jolimont.fr/tuner/

http://devs.jolimont.fr/tuner/downloads/tuner_v2_1.py.html

-- 
Jérôme

[toc] | [next] | [standalone]


#19130

FromRick Johnson <rantingrickjohnson@gmail.com>
Date2012-01-19 08:32 -0800
Message-ID<9eaa8919-fa16-4684-923f-ab0baab2e0e0@m2g2000vbc.googlegroups.com>
In reply to#19121
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 code, we are not
advocating doing away with French (or any other language) either. As
long as you have an English screenshot you have met the expectations
of this community. Feel free to add as many screen-shots in as many
languages as required to serve your base.

[toc] | [prev] | [next] | [standalone]


#19160

FromAnssi Saari <as@sci.fi>
Date2012-01-20 12:13 +0200
Message-ID<vg3aa5iur3r.fsf@sci.fi>
In reply to#19121
Jérôme <jerome@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 more helpful.

You might mention that Debian Stable (Squeeze) doesn't have a new enough
PyGObject to run your code. There's no package python-gi and the version
of python-gobject is 2.21.4+is.2.21.3-1. 

[toc] | [prev] | [next] | [standalone]


#19496

FromJérôme <jerome@jolimont.fr>
Date2012-01-26 19:39 +0100
Message-ID<mailman.5133.1327602994.27778.python-list@python.org>
In reply to#19160
Fri, 20 Jan 2012 12:13:30 +0200
Anssi Saari a écrit:

> Jérôme <jerome@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 more helpful.
> 
> You might mention that Debian Stable (Squeeze) doesn't have a new enough
> PyGObject to run your code. There's no package python-gi and the version
> of python-gobject is 2.21.4+is.2.21.3-1. 

Thanks for telling me.

I've got the feeling that my move to Gtk3 was a bit too early.

Two reasons I decided to switch to pygobject :

* The advice on pygtk.org : "New users wishing to develop Python applications
  using GTK+ are recommended to use the GObject-Introspection features
  available in PyGObject."

* The fact that glade, that I wanted to use as well, now (from version 3.10)
  only supports GTK3 (or so I understand).

The documentation is not as prolific as for pyGTK, to say the least.

https://live.gnome.org/PyGObject points to

* A tutorial (work in progress) :
  http://readthedocs.org/docs/python-gtk-3-tutorial/en/latest/index.html

* A partial doc I don't really use :
  http://people.gnome.org/~johnp/girdocsalpha/Gtk/

* A few examples :
  http://developer.gnome.org/gnome-devel-demos/stable/

And as far as I heard, porting such applications to windows is not easy
either.

I would think it twice if I had to start a new project.

-- 
Jérôme

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web