Minor fixes and QoL improvements
This commit is contained in:
parent
230e23a70a
commit
d21d999a97
3 changed files with 6 additions and 3 deletions
|
|
@ -24,7 +24,7 @@ class PostgresqlDatabase(AbstractDatabase):
|
|||
try:
|
||||
import psycopg2 as pg
|
||||
except ImportError:
|
||||
log.error("Ошибка импорта psycopg2")
|
||||
log.error("psycopg2 import error")
|
||||
raise
|
||||
|
||||
DB_CONFIG = {
|
||||
|
|
@ -55,7 +55,7 @@ class MysqlDatabase(AbstractDatabase):
|
|||
try:
|
||||
import pymysql as pms
|
||||
except ImportError:
|
||||
log.error("Ошибка импорта pymysql")
|
||||
log.error("pymysql import error")
|
||||
raise
|
||||
|
||||
DB_CONFIG = {
|
||||
|
|
|
|||
|
|
@ -32,4 +32,4 @@ class NavigateRequest:
|
|||
context: Data to pass to the destination window.
|
||||
"""
|
||||
target: str
|
||||
context: NavigationContext
|
||||
context: NavigationContext = field(default_factory=NavigationContext)
|
||||
|
|
@ -21,6 +21,9 @@ class BaseWindow(QMainWindow):
|
|||
self._db = db
|
||||
self._composer = composer
|
||||
|
||||
self._setup()
|
||||
|
||||
def _setup(self):
|
||||
self._define_widgets()
|
||||
self._tune_layouts()
|
||||
self._connect_slots()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue