Converts a color name to an RGB tuple, if possible.
(col)
| 201 | |
| 202 | |
| 203 | def checkColor(col): |
| 204 | "Converts a color name to an RGB tuple, if possible." |
| 205 | |
| 206 | if type(col) == type('') and col in dir(colors): |
| 207 | col = getattr(colors, col) |
| 208 | col = (col.red, col.green, col.blue) |
| 209 | |
| 210 | return col |
| 211 | |
| 212 | |
| 213 | def handleHiddenSlides(slides): |