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, 'PyQt5.QtWidgets.QApplication', 'QApplication', (['sys.argv'], {}), False, 'from PyQt5.QtWidgets import QApplication, QDialog, QGroupBox, QMainWindow, QTabWidget, QVBoxLayout, QWidget\n'), (20, 'PyQt5.QtWidgets.QMainWindow.__init__', 'QMainWindow.__init__', (['self'], {}), False, 'from PyQt5.QtWidgets import QApplication, QDialog, QGroupBox, QMainWindow, QTabWidget, QVBoxLayout, QWidget\n'), (24, 'PyQt5.QtWidgets.QVBoxLayout', 'QVBoxLayout', ([], {}), False, 'from PyQt5.QtWidgets import QApplication, QDialog, QGroupBox, QMainWindow, QTabWidget, QVBoxLayout, QWidget\n'), (25, 'PyQt5.QtWidgets.QTabWidget', 'QTabWidget', ([], {}), False, 'from PyQt5.QtWidgets import QApplication, QDialog, QGroupBox, QMainWindow, QTabWidget, QVBoxLayout, QWidget\n'), (28, 'sim2d_game_analyzer.fmdb_tab.FMDBTab', 'FMDBTab', ([], {}), False, 'from sim2d_game_analyzer.fmdb_tab import FMDBTab\n'), (31, 'PyQt5.QtWidgets.QWidget', 'QWidget', (['self'], {}), False, 'from PyQt5.QtWidgets import QApplication, QDialog, QGroupBox, QMainWindow, QTabWidget, QVBoxLayout, QWidget\n'), (23, 'PyQt5.QtGui.QIcon', 'QIcon', (['"""sim2d_game_analyzer/figures/icon.png"""'], {}), False, 'from PyQt5.QtGui import QIcon\n'), (27, 'PyQt5.QtGui.QFont', 'QtGui.QFont', (['"""Sanserif"""', '(12)'], {}), False, 'from PyQt5 import QtGui\n')]