Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#this module contains the function needed for registering a new user | ||
import sqlite3 | ||
def register(newUser, newPass): | ||
con = sqlite | ||
|