Skip to content
Permalink
Browse files
Transferred files over from codio.
  • Loading branch information
vassellc2 committed Sep 1, 2022
1 parent 7eb18c7 commit 7db4bf466cda08ae7b477586bd3e22a50d4295df
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
22 main.py
@@ -0,0 +1,22 @@
#main file for project

from os import get_terminal_size as gts
def main():
#use os.get_terminal_size() here to determine width of the terminal window
#and format the welcome message accordingly

terminalWidth = gts()[0]
welcomeMessage = "Welcome to PyNews, an automated news emailing service"

print(welcomeMessage.center(80 if terminalWidth >= 80 else terminalWidth, "'").center(terminalWidth, " "))
print("".ljust(terminalWidth, "~"))
print("".ljust(terminalWidth, "~"))

#next will be login





if __name__ == "__main__":
main()
@@ -0,0 +1,5 @@
#this module contains the function needed for registering a new user
import sqlite3
def register(newUser, newPass):
con = sqlite

0 comments on commit 7db4bf4

Please sign in to comment.