Skip to content

Commit a3bcfa6

Browse files
committed
Database properties entered by user for initial release
1 parent 8cf43a9 commit a3bcfa6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

main.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
from database import PPPLDatabase
22
import gui
33

4+
db_host = input('Database Host Name: ')
5+
db_user = input('Database Username: ')
6+
db_password = input('Database Password: ')
47
pppl_db = PPPLDatabase()
5-
a = gui.MainGUI(pppl_db)
6-
pppl_db.connect_server('localhost', 'ben', 'benpassword123')
7-
a.mainloop()
8+
ui = gui.MainGUI(pppl_db)
9+
pppl_db.connect_server(db_host, db_user, db_password)
10+
ui.mainloop()
811
pppl_db.disconnect_server()

0 commit comments

Comments
 (0)