import sys

from PyQt5 import QtGui
from PyQt5.QtCore import QEvent, QPoint, Qt
from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import (QApplication, QDialog, QGroupBox, QMainWindow,
                             QTabWidget, QVBoxLayout, QWidget)

from sim2d_game_analyzer.fmdb_tab import FMDBTab


class MainWindow(QMainWindow):
    title = "Sim2d Game Analyzer"
    top = 500
    left = 100
    width = 70*4
    height = 130*4

    def __init__(self):
        QMainWindow.__init__(self)
        self.setGeometry(self.screen().geometry())
        self.setWindowTitle(self.title)
        self.setWindowIcon(QIcon("sim2d_game_analyzer/figures/icon.png"))
        vbox = QVBoxLayout()
        tabWidget = QTabWidget()

        tabWidget.setFont(QtGui.QFont("Sanserif", 12))
        self.fmdb_tab = FMDBTab()
        tabWidget.addTab(self.fmdb_tab, FMDBTab.NAME)
        vbox.addWidget(tabWidget)
        wid = QWidget(self)
        self.setCentralWidget(wid)
        wid.setLayout(vbox)


if __name__ == "__main__":
    app = QApplication(sys.argv)
    mainwindow = MainWindow()
    sys.exit(app.exec())

[((37, 10, 37, 32), 'PyQt5.QtWidgets.QApplication', 'QApplication', ({(37, 23, 37, 31): 'sys.argv'}, {}), '(sys.argv)', False, 'from PyQt5.QtWidgets import QApplication, QDialog, QGroupBox, QMainWindow, QTabWidget, QVBoxLayout, QWidget\n'), ((20, 8, 20, 34), 'PyQt5.QtWidgets.QMainWindow.__init__', 'QMainWindow.__init__', ({(20, 29, 20, 33): 'self'}, {}), '(self)', False, 'from PyQt5.QtWidgets import QApplication, QDialog, QGroupBox, QMainWindow, QTabWidget, QVBoxLayout, QWidget\n'), ((24, 15, 24, 28), 'PyQt5.QtWidgets.QVBoxLayout', 'QVBoxLayout', ({}, {}), '()', False, 'from PyQt5.QtWidgets import QApplication, QDialog, QGroupBox, QMainWindow, QTabWidget, QVBoxLayout, QWidget\n'), ((25, 20, 25, 32), 'PyQt5.QtWidgets.QTabWidget', 'QTabWidget', ({}, {}), '()', False, 'from PyQt5.QtWidgets import QApplication, QDialog, QGroupBox, QMainWindow, QTabWidget, QVBoxLayout, QWidget\n'), ((28, 24, 28, 33), 'sim2d_game_analyzer.fmdb_tab.FMDBTab', 'FMDBTab', ({}, {}), '()', False, 'from sim2d_game_analyzer.fmdb_tab import FMDBTab\n'), ((31, 14, 31, 27), 'PyQt5.QtWidgets.QWidget', 'QWidget', ({(31, 22, 31, 26): 'self'}, {}), '(self)', False, 'from PyQt5.QtWidgets import QApplication, QDialog, QGroupBox, QMainWindow, QTabWidget, QVBoxLayout, QWidget\n'), ((23, 27, 23, 72), 'PyQt5.QtGui.QIcon', 'QIcon', ({(23, 33, 23, 71): '"""sim2d_game_analyzer/figures/icon.png"""'}, {}), "('sim2d_game_analyzer/figures/icon.png')", False, 'from PyQt5.QtGui import QIcon\n'), ((27, 26, 27, 53), 'PyQt5.QtGui.QFont', 'QtGui.QFont', ({(27, 38, 27, 48): '"""Sanserif"""', (27, 50, 27, 52): '(12)'}, {}), "('Sanserif', 12)", False, 'from PyQt5 import QtGui\n')]