Replies: 2 comments 13 replies
-
We need to differentiate the Qt (application) parts and the rest. |
Beta Was this translation helpful? Give feedback.
13 replies
-
The consensus of the majority is as in the last @AndrewSazonov 's comment above. We are using the PEP-8 style throughout and the Qt style will only be used when calling Qt built-in methods in *.py files, and for qml and javascript code in *.qml and *.js files. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For code consistency use PEP-8 style where the most important conventions are:
Module
Name should always be snake_small_caps (file tree)
root_folder.first_folder
dandy_fine
and minusnever-ever
. Python will give strange errorsClass
Name should be CamelCase for the individual words.
BestClassEver
If acronym is part of the name it should be ALLCAPS
SWATCodeIsTheBest
Methods and variables
Public methods and variables should be snake_small_caps.
Private methods and variables should have a leading underscore _private_method
Assume we have initialized an object of the
MyClass
:Beta Was this translation helpful? Give feedback.
All reactions