diff options
Diffstat (limited to 'tawindow.py')
-rw-r--r-- | tawindow.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tawindow.py b/tawindow.py index a766f4c..46644dc 100644 --- a/tawindow.py +++ b/tawindow.py @@ -1115,7 +1115,10 @@ class TurtleArtWindow(): for b in blocks: if self._collapsed(b): self._collapse_stack(self._find_sandwich_top(b)) - return blocks[0] + if len(blocks) > 0: + return blocks[0] + else: + return None """ Adjust the dock x,y positions |