Constants¶
o_ptb
provides some useful constant that you can use in your code.
- class +o_ptb.+constants.PTB_Colors¶
This is a collection of useful color constants.
Just type this in the command window to see what colors are available:
o_ptb.constants.PTB_Colors
If you want to use the black color, for example, you can reach it like this:
o_ptb.constants.PTB_Colors.black
- class +o_ptb.+constants.PTB_TextStyles¶
This is a collection of text style constants.
Just type this in the command window to see what colors are available:
o_ptb.constants.PTB_TextStyles
If you want to use the bold style, for example, you can reach it like this:
o_ptb.constants.PTB_TextStyles.Bold