added some more examples

This commit is contained in:
John Lancaster
2025-06-05 22:37:56 -05:00
parent 5fca821637
commit cbd91c8873
7 changed files with 171 additions and 39 deletions

24
conf/apps/globals.py Normal file
View File

@@ -0,0 +1,24 @@
from enum import Enum
GLOBAL_VAR = "Hello, World!"
def global_function():
print('This is a global function.')
class GlobalClass:
def __init__(self):
self.value = 'This is a global class instance.'
def display(self):
print(self.value)
class ModeSelect(Enum):
MODE_A = 'mode_a'
MODE_B = 'mode_b'
MODE_C = 'mode_c'
GLOBAL_MODE = ModeSelect.MODE_C