Skip to content

Commit 3388d46

Browse files
ComputerTech312James Trotter
authored andcommitted
Add files via upload
1 parent c2c130e commit 3388d46

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

main.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
from PyQt5.QtWidgets import QApplication
2+
from src.irc.irc_client import IRCClient
3+
from src.gui.connect_dialog import ConnectDialog
4+
from src.gui.main_window import MainWindow
5+
import sys
6+
from PyQt5.QtWidgets import QApplication, QDialog
7+
8+
if __name__ == '__main__':
9+
app = QApplication(sys.argv)
10+
11+
dialog = ConnectDialog()
12+
if dialog.exec() == QDialog.Accepted:
13+
host, port, nick, realname, channel = dialog.get_values()
14+
client = IRCClient(host, port, nick, realname, channel)
15+
client.connect_to_host()
16+
17+
window = MainWindow(client)
18+
window.show()
19+
20+
sys.exit(app.exec())

0 commit comments

Comments
 (0)