fix QStatusBar not updating, ConnectionOptions namedtuple settings func, Connect button basic logic, DEFAULT_IP/PORT

This commit is contained in:
Xevion
2021-01-25 11:36:23 -06:00
parent 9f317f3b96
commit 628aaea937
3 changed files with 42 additions and 5 deletions

View File

@@ -1,4 +1,5 @@
from typing import List
from collections import namedtuple
import os
import webcolors
@@ -9,6 +10,11 @@ HEADER_LENGTH = 10
MINIMUM_CONTRAST = 4.65
DATABASE = os.path.join(__BASE_DIR, 'messages.db')
DEFAULT_IP = "127.0.0.1"
DEFAULT_PORT = "5555"
ConnectionOptions = namedtuple('ConnectionOptions', ['ip', 'port', 'nickname', 'password', 'remember'])
class Types:
"""