-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathviews.py
34 lines (23 loc) · 801 Bytes
/
views.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# -*- coding: utf-8 -*-
"""This module provides views to manage the contacts table."""
import PyQt5
from PyQt5 import QtWidgets
from PyQt5.QtWidgets import (
QLabel, QLayout, QPushButton, QVBoxLayout
)
from .settings import window_title
from .components import AbstractWindow, SidebarLayout, MainLayout
class Window(AbstractWindow):
"""Main Window."""
def __init__(self, parent=None):
"""Initializer."""
super().__init__()
self.setWindowTitle(window_title)
self.setMenuItems()
self.setupUI()
def setupUI(self):
"""Setup the main window's GUI."""
# Lay out the GUI
self.sidebarLayout = SidebarLayout()
self.mainLayout = MainLayout()
self.setupMainLayout(self.sidebarLayout, self.mainLayout)