Howto talk:Hacking Inkscape to add Canvas support

From FlightGear wiki
Jump to navigation Jump to search

CRUDable interface

from abc import ABC, abstractmethod
 
class AbstractCRUDClass(ABC):
 
    def __init__(self, value):
        self.value = value
        super().__init__()
    
    @abstractmethod
    def create(self):
        pass


    @abstractmethod
    def update(self):
        pass


    @abstractmethod
    def delete(self):
        pass

class MFDPage(AbstractCRUDClass):
    def create(self):
        return 
    def update(self):
        return 
    def delete(self):
        return 


class MFDPageElement(AbstractCRUDClass):
    def create(self):
        return 
    def update(self):
        return 
    def delete(self):
        return