Update parent_layers.py

This commit is contained in:
Alec Helbling
2023-11-04 14:32:22 -04:00
committed by GitHub
parent 4fc0251cfc
commit e1d9db27c6

View File

@ -7,8 +7,11 @@ class NeuralNetworkLayer(ABC, Group):
def __init__(self, text=None, *args, **kwargs):
super(Group, self).__init__()
self.title_text = kwargs["title"] if "title" in kwargs else " "
self.title = Text(self.title_text, font_size=DEFAULT_FONT_SIZE / 3).scale(0.6)
self.title.next_to(self, UP, 1.2)
if "title" in kwargs:
self.title = Text(self.title_text, font_size=DEFAULT_FONT_SIZE / 3).scale(0.6)
self.title.next_to(self, UP, 1.2)
else:
self.title = Group()
# self.add(self.title)
@abstractmethod