+ fix global logging

This commit is contained in:
oleting
2020-12-26 14:42:27 +01:00
parent de96db0806
commit 781fc6fe83
3 changed files with 4 additions and 5 deletions

View File

@@ -4,12 +4,11 @@ import logging
from draw.Iinstruction import Iinstruction
from interpreter import interpret_source as itp
from draw import code_to_image as cti
from gui.gui import gui
class NassiShneidermanDiagram:
def __init__(self, debug: bool=False) -> None:
def __init__(self, gui):
self.instructions: dict[str, Iinstruction] = {}
self.init_logging(gui.debug_mode)