mirror of
https://github.com/Xevion/tcp-chat.git
synced 2025-12-06 03:16:44 -06:00
update dialog to accept faker default nickname launch sys.argv, prepare_json fix typehint/arg name, commit sizeof helper func, update launch.py for new client/main.py
This commit is contained in:
@@ -44,10 +44,12 @@ class NicknameDialog(QDialog, Ui_NicknameDialog):
|
||||
|
||||
|
||||
class ConnectionDialog(QDialog, Ui_ConnectionDialog):
|
||||
def __init__(self, *args, **kwargs):
|
||||
def __init__(self, nickname: str = None, *args, **kwargs):
|
||||
super(ConnectionDialog, self).__init__(*args, **kwargs)
|
||||
self.setupUi(self)
|
||||
|
||||
if nickname: self.nickname_input.setText(nickname)
|
||||
|
||||
self.connect_button.setDisabled(True)
|
||||
self.server_address_input.textEdited.connect(self.validation)
|
||||
self.port_input.textEdited.connect(self.validation)
|
||||
|
||||
Reference in New Issue
Block a user