21 lines
590 B
Python
21 lines
590 B
Python
from PySide6.QtCore import QAbstractTableModel, QModelIndex, Qt, Slot
|
|
from .ContactDAO import ContactDAO
|
|
import logging
|
|
|
|
class ContactModel:
|
|
def __init__(self):
|
|
super().__init__()
|
|
#self.logger = logging.getLogger()
|
|
print(f"*** File: {__file__}, __init__()")
|
|
self.__data = self.__getData()
|
|
|
|
def getContacts(self):
|
|
print(f"*** File: {__file__}, getContacts()")
|
|
logging.debug("No debug message")
|
|
return self.__data
|
|
|
|
def __getData(self):
|
|
print(f"*** File: {__file__}, __getData()")
|
|
ContactDAO().getContacts()
|
|
|