mirror of
https://github.com/Xevion/tcp-chat.git
synced 2025-12-06 15:16:43 -06:00
fix QStatusBar not updating, ConnectionOptions namedtuple settings func, Connect button basic logic, DEFAULT_IP/PORT
This commit is contained in:
@@ -1,8 +1,20 @@
|
||||
from typing import Tuple
|
||||
|
||||
from PyQt5.QtWidgets import QApplication
|
||||
|
||||
from client.dialog import ConnectionDialog
|
||||
from client.gui import MainWindow
|
||||
|
||||
app = QApplication([])
|
||||
app.setApplicationName("TCPChat Client")
|
||||
m = MainWindow()
|
||||
|
||||
app.exec_()
|
||||
# def connection_dialog() -> Tuple[str, int, str, str, bool]:
|
||||
# connect_dialog = ConnectionDialog()
|
||||
|
||||
|
||||
def main():
|
||||
app = QApplication([])
|
||||
app.setApplicationName("TCPChat Client")
|
||||
connect_dialog = ConnectionDialog()
|
||||
# m = MainWindow()
|
||||
app.exec_()
|
||||
if connect_dialog.connect_pressed:
|
||||
print(connect_dialog.settings)
|
||||
|
||||
Reference in New Issue
Block a user