MCPcopy Create free account
hub / github.com/Apress/modern-pyqt / initializeUI

Method initializeUI

ch04_database_handling/sql_manager.py:21–32  ·  view source on GitHub ↗

Initialize the window and its contents.

(self)

Source from the content-addressed store, hash-verified

19 self.initializeUI()
20
21 def initializeUI(self):
22 """Initialize the window and its contents."""
23 self.setMinimumSize(1100, 800)
24 self.move(QApplication.desktop().screen().rect().center() - self.rect().center())
25 self.setWindowTitle("4.1 - SQL Management GUI")
26
27 self.login = LoginGUI(self)
28 self.login.show()
29
30 self.createConnection()
31 self.setupWindow()
32 self.setupToolbar()
33
34 def createConnection(self):
35 """Set up connection to the database. Check if the tables needed exist."""

Callers 1

__init__Method · 0.95

Calls 4

createConnectionMethod · 0.95
setupWindowMethod · 0.95
setupToolbarMethod · 0.95
LoginGUIClass · 0.90

Tested by

no test coverage detected