|
|
@@ -32,7 +32,7 @@ class _Display(object): |
|
|
|
return "<CacaDisplay>" |
|
|
|
|
|
|
|
def __del__(self): |
|
|
|
if self._dp > 0: |
|
|
|
if self._dp > 0 and _lib is not None: |
|
|
|
self._free() |
|
|
|
|
|
|
|
def _free(self): |
|
|
@@ -43,6 +43,7 @@ class _Display(object): |
|
|
|
|
|
|
|
return _lib.caca_free_display(self) |
|
|
|
|
|
|
|
|
|
|
|
class Display(_Display): |
|
|
|
""" Display objects, methods are libcaca functions with display_t as first |
|
|
|
parameter. |
|
|
|