TR update: Contact book

上级 d8c6da52
......@@ -2,9 +2,4 @@
"""This module provides the rpcontacts package."""
import os
# Make sure Qt works on macOS Big Sur
os.environ["QT_MAC_WANTS_LAYER"] = "1"
__version__ = "0.1.0"
......@@ -35,5 +35,4 @@ def createConnection(databaseName):
return False
_createContactsTable()
return True
......@@ -11,7 +11,7 @@ from .views import Window
def main():
"""RP Contacts' main function."""
"""RP Contacts main function."""
# Create the application
app = QApplication(sys.argv)
# Connect to the database before creating any window
......
......@@ -144,7 +144,7 @@ class AddDialog(QDialog):
"Error!",
f"You must provide a contact's {field.objectName()}",
)
# self.data = None
self.data = None # Reset .data
return
self.data.append(field.text())
......
......@@ -2,9 +2,4 @@
"""This module provides the rpcontacts package."""
import os
# Make sure Qt works on macOS Big Sur
os.environ["QT_MAC_WANTS_LAYER"] = "1"
__version__ = "0.1.0"
......@@ -10,7 +10,7 @@ from .views import Window
def main():
"""RP Contacts' main function."""
"""RP Contacts main function."""
# Create the application
app = QApplication(sys.argv)
# Create the main window
......
......@@ -2,9 +2,4 @@
"""This module provides the rpcontacts package."""
import os
# Make sure Qt works on macOS Big Sur
os.environ["QT_MAC_WANTS_LAYER"] = "1"
__version__ = "0.1.0"
......@@ -10,7 +10,7 @@ from .views import Window
def main():
"""RP Contacts' main function."""
"""RP Contacts main function."""
# Create the application
app = QApplication(sys.argv)
# Create the main window
......
......@@ -2,9 +2,4 @@
"""This module provides the rpcontacts package."""
import os
# Make sure Qt works on macOS Big Sur
os.environ["QT_MAC_WANTS_LAYER"] = "1"
__version__ = "0.1.0"
......@@ -35,5 +35,4 @@ def createConnection(databaseName):
return False
_createContactsTable()
return True
......@@ -11,7 +11,7 @@ from .views import Window
def main():
"""RP Contacts' main function."""
"""RP Contacts main function."""
# Create the application
app = QApplication(sys.argv)
# Connect to the database before creating any window
......
......@@ -2,9 +2,4 @@
"""This module provides the rpcontacts package."""
import os
# Make sure Qt works on macOS Big Sur
os.environ["QT_MAC_WANTS_LAYER"] = "1"
__version__ = "0.1.0"
......@@ -35,5 +35,4 @@ def createConnection(databaseName):
return False
_createContactsTable()
return True
......@@ -11,7 +11,7 @@ from .views import Window
def main():
"""RP Contacts' main function."""
"""RP Contacts main function."""
# Create the application
app = QApplication(sys.argv)
# Connect to the database before creating any window
......
......@@ -2,9 +2,4 @@
"""This module provides the rpcontacts package."""
import os
# Make sure Qt works on macOS Big Sur
os.environ["QT_MAC_WANTS_LAYER"] = "1"
__version__ = "0.1.0"
......@@ -35,5 +35,4 @@ def createConnection(databaseName):
return False
_createContactsTable()
return True
......@@ -11,7 +11,7 @@ from .views import Window
def main():
"""RP Contacts' main function."""
"""RP Contacts main function."""
# Create the application
app = QApplication(sys.argv)
# Connect to the database before creating any window
......
......@@ -114,7 +114,7 @@ class AddDialog(QDialog):
"Error!",
f"You must provide a contact's {field.objectName()}",
)
# self.data = None
self.data = None # Reset .data
return
self.data.append(field.text())
......
......@@ -2,9 +2,4 @@
"""This module provides the rpcontacts package."""
import os
# Make sure Qt works on macOS Big Sur
os.environ["QT_MAC_WANTS_LAYER"] = "1"
__version__ = "0.1.0"
......@@ -35,5 +35,4 @@ def createConnection(databaseName):
return False
_createContactsTable()
return True
......@@ -11,7 +11,7 @@ from .views import Window
def main():
"""RP Contacts' main function."""
"""RP Contacts main function."""
# Create the application
app = QApplication(sys.argv)
# Connect to the database before creating any window
......
......@@ -144,7 +144,7 @@ class AddDialog(QDialog):
"Error!",
f"You must provide a contact's {field.objectName()}",
)
# self.data = None
self.data = None # Reset .data
return
self.data.append(field.text())
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册