[Pythoncad-developer] coding convention
CAD Application entire developed in Python
Status: Beta
Brought to you by:
matteoboscolo
From: Gertwin G. <ger...@gm...> - 2010-02-03 20:43:11
|
Hi all, Now the we start working on the best PythonCAD ever it is time to think about some coding convention. In the old wiki this is mentioned but it is not followed by us in the last months. I think the easiest thing to do is to follow the PyGTK coding conventions: example: class gtk.CellEditable(gobject.GInterface): def start_editing(event) def editing_done() def remove_widget() Lower case package, module (and file) names. Mixed upper and lower case for class names, each word starts with a capital letter. Functions and class members are lower case, words are divided by a underscore. Variable names are lower case, words are divided by a underscore. See the pygtk-demo for examples. Any comments? Regards, Gertwin |