Skip to content

Commit

Permalink
Database properties entered by user for initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
bf2799 committed Jan 10, 2021
1 parent 8cf43a9 commit a3bcfa6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
from database import PPPLDatabase
import gui

db_host = input('Database Host Name: ')
db_user = input('Database Username: ')
db_password = input('Database Password: ')
pppl_db = PPPLDatabase()
a = gui.MainGUI(pppl_db)
pppl_db.connect_server('localhost', 'ben', 'benpassword123')
a.mainloop()
ui = gui.MainGUI(pppl_db)
pppl_db.connect_server(db_host, db_user, db_password)
ui.mainloop()
pppl_db.disconnect_server()

0 comments on commit a3bcfa6

Please sign in to comment.